Re: Call C++ dll from perl uisng Win32API

2009-03-03 Thread Rob Dixon
anupama.anuna...@gmail.com wrote: > I'm trying to use the Win32::API module to call a simple test case > DLL > (call it "Test.dll"). > > Test.cpp file > extern "C" __declspec(dllexport) int test(int x) > { >x *= 2; > return x; > } > > Test.h file > > extern "C" __declspec(dllexport) int

Call C++ dll from perl uisng Win32API

2009-03-03 Thread anupama . anunag15
I'm trying to use the Win32::API module to call a simple test case DLL (call it "Test.dll"). Test.cpp file extern "C" __declspec(dllexport) int test(int x) { x *= 2; return x; } Test.h file extern "C" __declspec(dllexport) int test(int); #note compling the above Cpp code using VC++ compli