LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling primary dll which calls secondary dll

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

0 Kudos
Message 1 of 3
(2,835 Views)
I want to add one more thing that in the tutorial of

Writing Win32 Dynamic Link Libraries (DLLs) and Calling Them from LabVIEW

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?

0 Kudos
Message 2 of 3
(2,812 Views)

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.

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
0 Kudos
Message 3 of 3
(2,789 Views)