Theodore H.Smith <[EMAIL PROTECTED]> wrote:
> But can you access unix functions?
>
> Does this code compile for Win32?
>
> int main(void)
> {
> int pfd = 0;
> fprintf(stdout, "Probably better not to execute this code!!\n");
> if ((pfd = open("/path/to/file.txt", O_WRONLY | O_CREAT | O_TRUNC,
> S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH)) == -1)
> {
> perror("Cannot open file\n"); exit(1);
> }
> return 0;
> }
Yes. I copied that into a plugin main function, compiled and linked.
I just needed to add MLS Extras and a few include lines.
Gruß
Christian
--
Over 1100 classes with 22000 functions in one REALbasic plug-in.
The Monkeybread Software Realbasic Plugin v8.5.
<http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>