hello
i compile with c program embeded call perl function on visual studio 2005
platform.
source code following line.
#include <EXTERN.h> /* from the Perl distribution */
#include <perl.h> /* from the Perl distribution */
static PerlInterpreter *my_perl; /*** The Perl interpreter ***/
int _tmain(int argc, char * argv[])
{
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);
call_argv("showtime", G_DISCARD | G_NOARGS, NULL);
perl_destruct(my_perl);
perl_free(my_perl);
PERL_SYS_TERM();
return 0;
}
and then finish build succesfully.
showtime.pl have following source code.
sub showtime {
print time;
}
\debug>test showtime.pl
Can't open perl script "s": No such file or directory
and win32 debugger catch this problem.
thans in advance.
--
CashFlow
To be rich.
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs