I'm getting this exception when I try to get the address of a function in a dll written in vc++ 6.0. The dll is a compiled winamp plugin and I can't change the plugin source.
Is there any way in vb.net 2005 to call a function declared as:Code:System.Runtime.InteropServices.MarshalDirectiveException was unhandled Message="Method's type signature is not PInvoke compatible." Source="Winamp Plugin Host" StackTrace: at Winamp_Plugin_Host.OutputPlugin.GetProcAddress(Int32 hModule, String& lpProcName) at Winamp_Plugin_Host.OutputPlugin..ctor(String FromFile) in C:\Documents and Settings\Jack Schitt\Desktop\design\programming\Winamp Plugin Host\PluginClasses.vb:line 76
...hopefully using LoadLibraryEX, GetProcAddress, and FreeLibrary...Code:__declspec( dllexport ) Out_Module * winampGetOutModule()




Reply With Quote