06-08-2012 11:23 AM
We build a basic .exe program and it runs great. We build our program with a couple .dlls that works fine running in labview and it takes 1 minute to open the .exe and then the .dll functions don't instantiate. We think this may be an issue with using Windows 7. We are running as administrator. Thank your for your help. We didn't see this topic in other searches but I hope it has been an issue before and will be an easy fix.
Ryan
06-08-2012 11:28 AM
Windows 32 bit DLLs can not be counted on to work with Windows 7. You may have to find a windows 7 version of the driver DLL or if it's internally developed, re-write the DLL for Windows 7. No easy solutions to this if the DLL is not Windows 7 compatable. Are you running the application in Windows 7 32 bit mode?
06-08-2012 11:34 AM
We are using Windows 7 64-bit but labview is 32-bit. The dll's work perfectly if we just run it in labview. We only get the issue when we creat an .exe. If we put a disable block around the vi's that use the dlls then it works fine.
06-08-2012 01:01 PM
Is the DLL a .NET version. Labview prior to 11 has issues with .net above 2.0 and will not work with them. When they are re-compiled with .net 2.0 they work fine. Just a thought? Also where is the DLL located?
06-08-2012 01:19 PM
We are using Labview 2011 so that souldn't be an issue. The dlls are located in the c: under Program Files (x86). When the exe is created, a copy of the dll is created in the same folder as the exe.
06-08-2012 01:33 PM
Unfortunately you don't provide anywhere near enough information to be able to help you. All you've said is that you have an exe that uses a DLL and it doesn't work under Windows 7. You haven't told us what the DLL is, or what it does. Nor have you indicated whether it works on other operating systems. You need to provide more information rather than having us play guessing games.
06-08-2012 01:34 PM
@SunshineDesign wrote:
Windows 32 bit DLLs can not be counted on to work with Windows 7.
Really? And can you substantiate this claim? Considering that Windows 7 has been out for over a year, with almost all old program still able to work under it, most of which were 32-bit, using 32-bit DLLs.
06-08-2012 01:41 PM
The program we are trying to run on Windows 7 was an updated version of one that we currently run on XP with the same dlls. One dll is an inhouse creation for database interaction and the other is for a flow meter from an outside party. Both currently are run on XP machines from and older version of the program. And they both work when run inside of labview on Windows 7. We only get an issue when we create a exe and try to run it.
06-08-2012 02:12 PM
Have you tried including the dll files as part of your exe build and installer?
-AK2DM
06-08-2012 02:15 PM
Yes, when we are creating the exe you can preview it and it has the dlls in the same folder as the exe. And likewise when we create the exe it places the dlls in the same folder as the exe.