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.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Help wrapping older DLLs for use in .NET

I am having some challenges testing and evaluating the DLL wrapping feature in Measurement Studio. I am simply trying to make a few older libraries (written in C++ with Visual Studio 6) accessible in .NET using the "driver/library wrapper" utility. I have been attempting to get Measurement Studio installed and configured to do a sample "wrapping" of one of our existing libraries, but I have not been successful as of yet. When I select the "wrapper" utility, I am eventually prompted for *.fp files that do not exist on my computer and I cannot proceed.
 
I appreciate any assistance that can be provided.
 
Thanks!
Sheldon Beasley
0 Kudos
Message 1 of 3
(3,057 Views)
The instrument driver wizard is not designed for creating wrappers for just any C DLL. It was designed to create wrappers for instrument drivers creating using LabWindows/CVI. Each instrument driver comes with a function panel (.fp file) that the wizard uses to extract information to create the wrappers in the first place.

If the libraries you are trying to wrap are not instrument drivers with fp's, than I'm afraid this tool might not be very useful for you.

Bilal Durrani
NI
0 Kudos
Message 2 of 3
(3,038 Views)
Sheldon -
I recommend that you look to Microsoft help and the .NET community at large for help with this problem. Here is a good starting point in MSDN - http://msdn2.microsoft.com/en-us/library/zbz07712(VS.80).aspx. You might want to also check out http://www.pinvoke.net/.
0 Kudos
Message 3 of 3
(3,020 Views)