From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for a function which get activated when a dll is called.

Hi,

My project consist of several dlls. I'm looking for a function that is called automatically when a dll is activated. Preferably once. I'd like this routine to get some parameters from the TestStand. Otherwise, I have to build a special functions and called it from CVI upon FileLoad or some other place...

Does anybody know of such function?

Thanks

Rafi
0 Kudos
Message 1 of 4
(2,821 Views)
Look here and here.
0 Kudos
Message 2 of 4
(2,813 Views)
Hi Al and thanks for answering,

I saw the examples and learn that using DllMain can handle stuff automatically when that specific dll is loaded. The problem is, I want it to get some data from TestStand. But I need a context number in order to get stuff from TestSTand don't I?

Please correct me if I'm wrong or show me the way to do it.

Thanks
Rafi
0 Kudos
Message 3 of 4
(2,790 Views)
Hi Rafi,

Check this Q&A thread:

http://forums.ni.com/ni/board/message?board.id=180&message.id=14048

Gil
0 Kudos
Message 4 of 4
(2,748 Views)