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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"The system cannot execute the specified program."

Status
Not open for further replies.

komyg

Programmer
Dec 13, 2005
68
BR
Hi, I have made a program in Visual C++ 2008 Express and it worked fine on my machine, then I tried to execute it on another machine and got this error: "The system cannot execute the specified program."

I have already installed the "Microsoft Visual C++ 2008 Redistributable Package", but I still could not executed.

I have also checked the other computer and it has all the Dot Net frameworks up to the 3.5, although I compiled the program to the 2.0 framework.

Finally the program uses another C++ dll. I have placed it on the same folder as the program, but I could not register it.

PS: I'm using Windows XP on both machines.

Please help me!

Thanks,
Komyg

 
Is it a Debug or Release .exe?
If it's a Debug build, it's probably looking for the debug version of the DLL's. So try the Release build.

Otherwise, run the Depends tool to see which DLL's your program needs to run, then make sure all of those DLL's are on the target system.
 
Hi, I have just discovered that as well.

I was indeed compiling the program as a Debug build and not a Release build, then I changed it so that it would compile as a Release build and everything worked fine.

Thanks for your help,
Komyg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top