UtilityBase
Your guide to Amiga development |
|
|
|
|
|
|
| |
| |
| |
|
|
|
Online members:
kas1e 13 min(s) ago Georg 44 min(s) ago
13 guests are online.
You are an Anonymous user. You can register for free by clicking here. |
|
|
| |
| |
| |
| |
| |
| |
UtilityBase needs your
help!
AmigaAnywhere Tutorial - Part 2 Source window1.c by Nicolas Mendoza
window1.c
#include <elate/taort.h> // Include system headers #include <elate/ave/ave.h> // Include all AVE headers #include <unistd.h> // Needed by for sleep()
int main(void) {
ave_dev_data_t ave; // declare pointer to AVE data
ave_app_t *app; // declare pointer to application AVO
ave = ave_dev_lookup("device/ave/window1"); // Do we have a running AVE, if not start one.
if(!iselateerrno(ave.ave)) { // If the AVE opened proceed
 app = ave_dev_open(ave.ave,ave.residual, 0, 0); // Create an application AVO
 if(!iselateerrno(app)) {
  printf("Application opened succesfully!\n"); // Print an encouraging message :)
  sleep(10); // Wait 10 seconds
  ave_dev_close(ave.ave,app); // Close our application AVO and destroy it's childs, if this is the last application close the AVE device too.
 }
}
return(0);
} |
|
|
|
UtilityBase is a site focused on development for Amiga systems,
spanning over all different Amiga clones, that be AmigaOS 3.x, 4.x,
MorphOS, AROS or AmigaDE/Anywhere. News syndication:  Contact address: mail@utilitybase com
|
|
|