NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL Modal window in the background

Hi all!

I have a Borland C++ made DLL, which creates a modal window. The DLL function hasn't got any teststand specific parameters, since it is designed for general use.

My problem is the following: I have a sequence, where I put i.e. a built-in message popup (modal) before the DLL function call. In this case my modal window is in the background, and the focus is on the teststand window.

I've read the application notes dealing about this problem, but the solution written down there is via parameter passing the engine object (in my case this couldn't be done, because my DLL function is not just for teststand).

Could anyone please help me in the problem?

Thanks
Dave
0 Kudos
Message 1 of 2
(3,086 Views)

Dave,

Could you add the SeqContext parameter, but ignore it if it's zero? Then non-TestStand uses could just pass in a zero and it would ignore the TestStand specific code that makes the dialog modal to the TestStand execution it was called from. Another way might be to create two versions of the function, one for TestStand that includes the SeqContext, and one for non-TestStand use, and that one statically sets the SeqContext to zero and ignores the TestStand modal functions. This method is similar to the many of the 'FunctionName' and 'FunctionNameEx' functions that allow for different uses of the same functionality (although all the examples I tried looking for where examples of obsolete (deprecated) functions).

I can't think of any other way you could do this without adding parameters.

-Jack

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