in reply to Import a DLL from C# to Perl
With this code I was able to call the dll from a C code.
This C program you wrote to call your C++ wrapper that calls the C# function, did you build this C program using Visual Studio?
You don't mention which distribution of Perl you are using. Even on MS Windows, Perl is usually not built using Visual Studio. And since XS modules and Inline::C (and other Inline:: code) need to be built with the same tool chain as Perl was built with, presumably the XS, Inline::C or Inline::CPP code was not built with Visual Studio.
Maybe this Compiling perl on windows with visual studio thread is helpful to you.
Update: syphilis is correct in pointing out that Win32::API would not have been built with Visual Studio, either. What I neglected, though someone else did mention, is that C# uses .NET as well as the Windows API. According to a friend of mine, building .NET applications without Visual Studio can be very hard.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Import a DLL from C# to Perl
by syphilis (Archbishop) on May 09, 2018 at 00:08 UTC | |
by paulorfmmb (Acolyte) on May 09, 2018 at 12:30 UTC |