Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to install VC++ MFC app

Problem Description :
I have an MFC application in Visual C++ 6.0 that includes CWGraph, CWSlide and CWKnob. It's compiled using shared DLL's.
I used InstallShield to make a distribution CD that includes the exe and DLL files. The installed app runs on the PC on which I developed the app. This PC has LabView
Prof. Dev. Sys 6.0 installed.
When I install on a 'clean' machine the app get's an error "Application failed to initialize properly (0xC0000142). Click OK to terminate". No window
is ever opened. I used a utility program to find what DLL's were loaded on my development PC and included those in the distribution.
Do you have any info that could help me? Does the target PC for the installation need a NI license?

Thanks for any
and all pointers,

Regards, Brian
0 Kudos
Message 1 of 7
(4,241 Views)
The UI controls require several merge modules to build a reliable installer. Take a look at the "Distributing Applications Developed with Measurement Studio for Visual C++" topic in the Measurement Studio reference and make sure that your installer includes all of the required merge modules. You can find it under Visual C++ Help->Tutorials->Distributing and Installing Measurement Studio Applications in the Measurement Studio reference table of contents.

- Elton
0 Kudos
Message 2 of 7
(4,241 Views)
I read both documents suggested (thanks Elton) and after following those steps unfortunately still have a DLL intialization problem. My app was developed in VC++ and linked to nidaq32.lib, nidex32.lib and gpib-32.obj. It wasn't developed in a Labview IDE. I read several comments about "the installer doing everything needed". I am running InstallShield for VC++ standalone. This requires I enter all the dependent DLL and OCX files.
The DLL's my app is using are NIBFFRU.DLL
NICFQ32.DLL,NIDAQ32.DLL,NIMDSU.DLL,NIPALU.DLL,NIPALUT.DLL,NIPSM.DLL,NIRPC.DLL,NISCALE.DLL and NISTCU.DLL.
The exception error I get (0xc00000142) is a DLL initialization failure, and not the failure to find a DLL.

P.S. I inheirited this app from someone who left the company so I ca
n't answer any 'why was it done this way' questions.

Any suggestions very welcome,
Regards, Brian
0 Kudos
Message 3 of 7
(4,241 Views)
Further input on my progress (or lack thereof) ...
I installed the NiInstallers (DAQ, GPIB & VISA) on the target machine and still receive the same exception error that a DLL can't initialize ...
0 Kudos
Message 4 of 7
(4,241 Views)
Did you install DAQ on the machine, meaning did you install the NI-DAQ driver software? Which .dll are you getting the initialization error for?

- Elton
0 Kudos
Message 5 of 7
(4,241 Views)
From the \Redist\NiInstallers\DAQ folder of the CVI & Measurement Studio CD I installed NiDaq6.9. Is this what you mean? I'm downloading from the link you gave nidaq70.zip and will take a look at that.

I don't know what DLL is causing the problem, none is given in the error message. I believe all DLLs are being found but one or more is then not initializing properly.

Thanks for your help,
Brian
0 Kudos
Message 6 of 7
(4,241 Views)
SUCCESS!!
I uninstalled the NiDaq69 & Visa NiInstalls and installed NiDaq70 from the download you suggested. It now loads OK and appears to be working fine.

Thanks for your help,
Brian
0 Kudos
Message 7 of 7
(4,241 Views)