c++ exe error on some computers

G

Guest

Hi,

I wrote and compiled back in 2003 a console C++ application in visual studio
6. Now, I've made some minor changes to some the program, converted the
solution to Visual Studio .net 2005. On two out of ten computers I get the
following error running the program.

"The system cannot execute the specified program."

All computers are running XP prof, .net 2.0 with all latest updates.

Anyone who knows what can be wrong. Missing DLL's or something. Is there
anyway to ensure that the exe file will pack all needed code.. and so on?

regards Jesper.
 
B

Bruno van Dooren

you can link statically to the runtime lib instead of dynamically
project settings -> c/c++ -> code generation -> runtime library.

but if your systems are truly identical, this is not the source of your
problems.

kind regards,
Bruno.
 
B

Bruno van Dooren

forgot to add: if your app is an MFC app, go to
configuration properties -> general -> use of MFC and set to 'Use MFC in a
static DLL'.

kind regards,
Bruno.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top