07-01-2008 04:28 AM
07-01-2008 05:20 AM
Hi, Jérôme
You can include Visual C++ 2008 Redistributable into installer as normal executable.
Read here:
How Do I Make My LabVIEW-built Installer Run an Executable After Installation?
best regards,
Andrey.
07-01-2008 07:21 AM
07-01-2008 07:44 AM
Hi, I think you don't need to build additional setup project in MSVC. Just download this executable: Microsoft Visual C++ 2008 Redistributable Package , add it to LabVIEW project, as described above, and run it at the end of installation. That's all.
Andrey.
07-04-2008 10:12 AM
07-04-2008 10:35 AM
Hi, Jérôme,
When you wrote "...it doesn't work" then it assumed at least two important parts: what you expected to see and what you saw instead?
From my point of view your DLL is OK. I will recommend to make following:
- change return type of your "connectHID" function from void to int
- put return 1 immediately at the beginning.
- check that 1 returned to LabVIEW on your XP machine.
- 1 is returned? If so, then your DLL fully OK.
In additional you should think a little bit about error handling. Functions SetupDiGetClassDevs(...), SetupDiEnumDeviceInterfaces(...), etc may return error codes, you should check it, and then return error codes to LabVIEW for further check and handling... So you can immediately get point where execution on the XP machine differ from execution under Vista...
best regards,
Andrey.
07-10-2008 04:43 AM