LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with dll and registry

Hi all;

I am trying to create a dll using Application Builder. The function uses VIs that open a key in the Windows registry to read a value and then closes it. Depending on the value, it will display a dialog box using the "One Button Dialog".

The VI work fine, but after building the dll, if I test it by calling it from another VI stop responding (behaves like if it was in an infinite loop). Also (and of course) the application that will call the dll returns an error.

Is there a problem using VIs that access the registry inside a LabVIEW dll?

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 1 of 3
(2,770 Views)
Well, the problem was not with the registry VIs. Instead, is with the "One Button Dialog" VI, which don't want to show. I created my own dialog window following an example from another question. It works fine. Now, I just need to figure out how to make it to work with the application that will call it.

Is there a page with the conversions from win32 most common data types to LabVIEW data types? I know the manual "Using External Code in LabVIEW" has some (HWND is equivalent to uInt32, etc.)
.

Enrique
www.vartortech.com
0 Kudos
Message 2 of 3
(2,770 Views)

The "Using External Code in LabVIEW" is probably the best source of information, but you might also look at the following:

Writing Win32 DLLs and Calling Them From LabVIEW [broken link removed]

If you are using LabVIEW 7.0, there is a new example called "Call DLL.vi" that lets you choose different types of datatypes and then see how they interface with LabVIEW.

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