Hi,
Glenn Linderman wrote:
Is the replacement OS? Who needs a GUI?
Not OS no, as written for part of larger project.
But if I were to start from scratch to implement the idea, it would end
up looking something like :
hPerlLib = LoadLibrary( pathToPerlDll);
numopts = argc + 2;
dynamicargv = malloc(numopts * sizeof (char*));
dynamicargv[0] = argv[0];
dynamicargv[1] = (char *)pBufferIncPath;
dynamicargv[2] = (char *)pBufferScriptPath;
for (i = 1; i < argc; i++)
dynamicargv[i + 2] = argv[i];
returnval = RunPerl(numopts, dynamicargv, environ);
FreeLibrary(hPerlLib);
free(dynamicargv);
return returnval;
If there is any real interest I'd be happy to knock out some working
code - but my C skills are V. limited and I thought anyone with
rudimentary C would be able to do a better job with the idea.
Or the
deployed application is packaged by some installer, but has the
structure mentioned, thus not depending on installed Perls?
This.
Regards
Mark