Hi,
I'm trying to call a 3rd party vendor's C DLL from vb.net 2005 and am getting P/Invoke errors. I'm successfully calling other methods but have hit a bottle-neck on one of the more complex. The structures involved are horrendous and in an attempt to simplify the troubleshooting I'd like to create a C++ DLL to replicate the problem.
Can somebody provide the smallest code snippet for a C++ DLL that can be called from .Net? I'm getting a "Unable to find entry point named XXX in DLL" error in my C++ dll. It should be simple to resolve but I'm not a C++ programmer.
I'd like to use a .net declaration for the DLL of
Declare Function Multiply Lib "C:\MyDll\Debug\MyDLL.DLL" Alias "Multiply" (ByVal ParOne As Integer, ByVal byvalParTwo As Integer) As Integer