hello,
i builit successfully perlembed source on visual studio 2005.
#include <EXTERN.h> /* from the Perl distribution */
#include <perl.h> /* from the Perl distribution */
static PerlInterpreter *my_perl; /*** The Perl interpreter ***/
int main(int argc, char **argv, char **env)
{
PERL_SYS_INIT3(&argc,&argv,&env);
my_perl = perl_alloc();
perl_construct(my_perl);
PL_exit_flags |= PERL_EXIT_DESTRUCT_END;
perl_parse(my_perl, NULL, argc, argv, (char **)NULL);
perl_run(my_perl);
perl_destruct(my_perl);
perl_free(my_perl);
PERL_SYS_TERM();
}
but,
i can't embed perl interpreter to MFC program.
simple reason is that MFC has not main function.
a detailed reason is that i can't get parameter(int argc, char **argv) of
main function.
declare
int argc = 1;
char *argv[] = {"test.exe"};
-> test is program name.
it occur compile error like this(error C2664: 'Perl_win32_init' : cannot
convert parameter 2 from 'char *(*)[1]' to 'char ***')
how do i release this problem ?;;
--
CashFlow
To be rich.
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs