10-14-2009 03:25 AM
Hi all
I have a visual C++ file which calls a dll named mpusbapi.dll . The visual C++ file has some additional
functions also. I want to make this visual C++ file itself a dll and then call this dll from call library function
in labview. Please guide me in making this visual C++ file dll.
To make functions visible in call library function what do i use.
_declspec (dllexport) or Extern C
I have also read the tutorial of making Writing a DLL with Microsoft Visual C++
Are there any steps required in doing this? Please tell
Regards
10-14-2009 08:51 AM
What is this for
BOOL WINAPI DllMain (
HANDLE hModule,
DWORD dwFunction,
LPVOID lpNot)
{
return TRUE;
}
Is it necessary to write this in order to create our own dll?
10-15-2009 02:02 PM
mhs100,
There are multiple ways to do this, here is one method:
http://decibel.ni.com/content/docs/DOC-1690
You will see this method using the Extern "C" _declspec option.