For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > March 2005 > no main, perlembed env









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author no main, perlembed env
Toolscripts

2005-03-28, 3:56 pm

perlembed for perl-5.8.6 :
I'm trying to do something like this:

int useargs(int argc, char **argv, char **env)
{
PERL_SYS_INIT3(&argc,&argv,&env);
....
}

The trouble is I don't think I'm supposed to retrieve the env pointer in the wxWidgets SDK I'm using. Basically I can't seem to get ahold of env and it crashes. This is a windows gui app and perl is a part that should be able to be disabled, in case it's dll is unavailable etc.
Any tips on how i should get env, reconstruct it since i can find individual enviromental vars, or bypass sys init?

--t
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com