Hi
Hi
 
Do you know a ``cheapest to deliver'' solution for linking a DLL (say made with VC++ ) to perl code using XS.
I have been trying tu understand the perlxstut materials and all that, but nothing seems to work quite for me.
I can link to some baby functions but no dynamic linking where I can use my C/C++ code.
 
What I am doing now is
 
1) modifying the Makefile.pl file to include the 'LIB' of my VC++ project (Myproject.lib)
2) Modifying the .xs file to include the header file of the project (Myproject.h)
3) Adding wrapper code to MyPerlProject.xs so as to define a function declared in Myproject.h as a XSUB (as explained in perlxstut).
 
Is there  something really obvious that I am missing?
 
My interetest is to build a prototype code for wrapping a C/C++ financial lib written in C/C++ as a collection
of perl functions. The prototype code will then be ported to a LINUX once the function is debugged and used on
an SQL server.
I am at a loss as to how to call my DLL's from Perl.
Any suggestions?
Thanks
Marco Avellaneda
 

Reply via email to