I have been asked to write a DLL that exports functions through __stdcall. I'd really like to do this using Visual Basic.NET (2010 currently) as that is my preferred programming environment.
I've spent quite a long time searching for samples on how to do this, but every hit I found was about the opposite direction - how to call __stdcall C/C++ functions within VB.NET
I'm writing a DLL that will be used by an existing piece of software and they have outlined a series of functions that I must 'export' from my DLL. I've got sample code in C++, but, again, am hoping to make something in VB.NET.
In C++ the function looks like this:
LONG __stdcall XT_Init(DWORD nVersion, DWORD nFlags, HANDLE hMainWnd, void* lpReserved)
I need to know how to make an equivalent of this in VB.NET.
I've created a Class Library project and added a "COM Class" item to it.
I'm hoping this is posible but am apparently clueless.