03-27-2007 03:54 PM
Hi guys,
I hope you don't mind if I jump in this conversation for a bit. I'm curious as to how this is panning out. If I understand correctly, Slowpoke is attempting to build a .dll that calls another .dll. Do either of you know if this has been attempted before by any other users?
At this point, the suspicion is that the Noise Tool library is not being linked properly. Am I correct in this assessment? I'd like to see if I can be of any help.
Regards,
Emilie Kopp | Applications Engineer | National Instruments
04-02-2007 09:46 AM
Hi Emilie,
The more the merrier! Actually, what I'm trying to do is call a DLL from an executable, but you are correct in that the problem seems to lie with file linking. I can call the DLL fine from a LabVIEW VI in development mode, but when I make an executable from the DLL and the calling VI, the call fails. The problem seems to lie with at least one of the Sound Output VIs in the lvsound2.dll. In addition, I have discovered a similar linking problem with the Write to Measurement File Express VI. I determined this by rebuilding the DLL VIs block by block and recreating the DLL and executable, repeating this process until I got a failure.
Oddly enough, when I rebuild the DLLs themselves as executables, they work fine.
Emilie, I will gratefully accept any assistance you can offer. Michael, if I scared you away or drove you insane or both, I'm sorry. Looks like I owe you a beer or two!
I don't know if anyone else has tried calling a DLL from another DLL, but I've considered giving it a shot, just for fun.
Thanks,
Slowpoke
04-03-2007 09:52 AM
Hi Slowpoke,
So here's a thought:
If the sound.dll is linked incorrecly, there might have been some change in the default settings of your LV installation. Exactly what this change is or why it was caused, I am at a loss. But, a very simple (and admittedly "dumb") solution would be to repair your installation of LV. It's not the most pleasant of actions to take (as it takes some time) but at least we would start with a clean slate, verifying that LV is in the default state, including any links to dll's.
I figure it's worth a shot. Your call.
Cheers,
Emilie Kopp | Applications Engineer | National Instruments
04-09-2007 03:51 PM
04-12-2007 10:37 AM
04-17-2007 11:27 AM