Hi,
I am trying to access a function in test.dll from within a VB.net 2005 program.
I have only a header file of a C programm stating :
const char* __stdcall Fctnname (void);
Could anybody tell me how to declare this function in VB.net?
Declare Auto Function newFctnname Lib "test.dll" Alias "Fctnname" () As <MarshalAs(UnmanagedType.LPStr)> String
doesnt work and produces a fatal runtime error
thanks a lot
Marc
I am trying to access a function in test.dll from within a VB.net 2005 program.
I have only a header file of a C programm stating :
const char* __stdcall Fctnname (void);
Could anybody tell me how to declare this function in VB.net?
Declare Auto Function newFctnname Lib "test.dll" Alias "Fctnname" () As <MarshalAs(UnmanagedType.LPStr)> String
doesnt work and produces a fatal runtime error
thanks a lot
Marc