remove("Doiv");
Does indeed work, (thankyou)
It was the remove(myfile); that would sometimes cause the warning....
What is the fastest way to make sure i only delete the file
after it's usage.....
For example, the commandline test works fine......
But my .dll, actually writes an object file, and then manipulates
that file, and then should remove it.....
However in the .dll, the remove statement, is read before my local-evaluate commands (specific host functions).... So the plugin failes, because it's deleted directly after it's created, i'm guessing because the C compiler, works this way......
Code:
FILE *myfile;
myfile = fopen("Void","wb");
fwrite(Obj, 1, 400, myfile);
fclose(myfile);
local->evaluate( local->data, "LastItem" );
remove("Doiv");
return AFUNC_OK;
What's the easiest method, to make sure it's only deleted
after the local-evaulate command is issued first.....
Thanks...