04-13-2009 02:30 PM
I am trying to import a DLL created with Cygwin. This is a test DLL created by one of my collegue to validate the import process.
When I use the import Wizzard, everything run ok. It recognise and build the structure based on the header file.
When I click ok to generate the wrapper, the progress bar shows but nothing happens. I have to terminate the program (not responding).
I found in the discussion forum that many users were having similar problem. I also found an interesting article on the subject: http://zone.ni.com/devzone/cda/tut/p/id/5412
Following this, I reinstalled Cygwin with the packages mentioned in the article :
I also place the Cygwin path in the system path variable. I have also found that if the Cygwin path is not in the system path variable, the wizzard complete ok but the DLL is not able to run (cygwin1.dll is missing).
Any help will be appreciated.
RD
04-14-2009 01:00 PM
Hi RD,
A couple questions:
1) Can you please provide us with the DLL you are trying to import.
2) What version of LabVIEW are you using?
3) Can you provide a link to the discussion forum you mentioned
thanks!
04-14-2009 01:54 PM
I Claire, I am using Labview 8.6 the demo version.
What I did is to do a scan of the bulletin board. http://forums.ni.com/ni/board/message?board.id=170&message.id=384919&requireLogin=False
I Can't say if this is the same problem I am experiencing but it looks very similar
I have a Dell Latitude D830
I have attached a copy of the DLL and an executable that is the core of the DLL.
Hope this will help you figure it out.
RD
04-21-2009 01:37 PM
Hi Richard,
It don't think you are doing this correctly. The Header file doesn't seem to be correct. Please see How Do I Call a Dynamic Link Library (DLL) from LabVIEW? Please also see Integrating External Code with the Import Shared Library Wizard which has an example DLL and .h file.
04-21-2009 01:41 PM
Claire, the first link in your message is incorrect. It calls back the message board and not the article you wanted me to look at.
RD
04-21-2009 02:06 PM