Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Failed to initialise error

Status
Not open for further replies.

dremos

Programmer
Jun 17, 2002
3
AU
Hi,

Ok, i just started using Visual C++. I've been using Java all along but now I'm teaching myself C++.

The problem I have is occurs when I write a simple managed C++ project...it's a simple console based i/o program. using the simple .h files <iostream> <string> that's about it.

It compiles and runs fine on the PC that I write it on, but when I try to execute the .exe file on another system, all I get is a messagebox that says 'failed to initialise application' with an ok button.

I don't have any idea why this is happening, can someone please tell me how to solve this presumably simple problem.

Thanks in advance,
Faraz.
 
You should use Release Application for another Computers. Debug runs only on PCs they have Visual Studio installed. Go to menu item 'Set active Configuration' and select Release in dialog appeared.
 
Thanks for your help, I'll get onto it straight away. :)
 
Hi,

I just tried doing that. I compile it in 'release' mode and I still get the error:

'The application failed to initialise properly (0x0000135). Click on OK to terminate the application'

It's the same error that I get in the debug exe.

Any help will be appreciated, thanks,
Faraz.
 
Such Errors comes if You use wrong values in InitInstance() (by MFC) or bad resource/property for a window. You can become such Error if You change compiler/linker options (but it is not too easy). Try to compile a with AppWizard generated Application (without any changes). If it works, try to add Your code step by stem still You have the Error. Do not remove standard code before You do know exactly what is it. If the with AppWizard generated Application does not work, You must reinstall VC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top