Question about creating modules



Hi,

I'm new to perl and need a little help. I'm using ActiveState Perl under
windows. I've tried creating a module from a C++ source using swig and the
methods outlined in both the perl documentation and the swig documentation.
I have VC++ installed and making the dll files works successfully. However
when I try to load the module the perl interpreter seems to loop forever.
The problem seems to occur at the bootstrap stage. Unfortunately I don't
know enough to make a good guess as too what's going on.

I'll try to give a little background as to what I'm trying to achieve. I
have a DLL that I want access from perl. The glue that I need between perl
and the DLL is really just a class definition with a list of pure functions
(some using VARIANT's) that correspond to a virtual table as setup by the
DLL I want to call. The module I'm trying to create only contains 2
functions one to create an instance of the class object and one to destroy
it. SWIG seemed to be what I needed but having produced the necessary file
nd done what I can. I seem to be stuck.

I'm using version 5.8.8 of perl and I have stripped out everything in my C++
code, recompiled and made the library and still it wont load.

Can anybody help?

Leon


.



Relevant Pages

  • Re: Win32::API cannot load any DLL?
    ... I've decided to try SWIG as my solution. ... as Ruby to load my dll without any problem. ... I hope you tried to run the script as 'perl msdll.pl' not 'perl msdll.dll' ...
    (comp.lang.perl.misc)
  • Re: SWIG sample compile problem
    ... Alex wrote: ... > I'm using Cygwin and ActiveState perl to try to compile a sample ... > I first do swig -perl5 hello.i which works fine. ...
    (comp.lang.perl.misc)
  • Win32::Daemon and SWIG
    ... i'v written a software that can de/encrypt perlscripts and start them ... Then I made that usable for perl with SWIG. ... Now I tried making a Win32 Service out of it with Win32::Daemon. ...
    (comp.lang.perl.modules)
  • Re: Question about creating modules
    ... I'm new to perl and need a little help. ... I've tried creating a module from a C++ source using swig and the ... With ActiveState perl you really should be using 6.0 ... There's a good example of accessing a dll in the Inline::C cookbook ...
    (comp.lang.perl.modules)
  • Trouble with writable shareable psect in library
    ... I'm attempting to compile and link a simple C language test routine into ... a shareable library using SWIG 1.3.21 so that it can be run from a Perl ...
    (comp.os.vms)