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

C Deployment in Visual Studio

Status
Not open for further replies.

NedG

Programmer
Feb 2, 2008
1
CA
Summary: I've written an ANSI C program in Visual Studio 2005 but can't figure out how to deploy it.

The Program: The program is ANSI C. I've written one .h header file and use many of the standard ANSI C libraries. I've written and debugged it in Visual Studio 2005 on a WinXPPro platform. Even when I shut down Visual Studio the .exe file works great.

The Problem: I now want to move it to another XPPro machine which has all .net libraries up to date, but does not have Visual Studio. When I move the .exe file that executes perfectly on the development machine to the other machine I get a "...failed to start because the application configuration is incorrect." message.

Already Tried: I've carefully read the MSDN article: "How to: Deploy a Setup and Deployment Project" and tried to follow it's instructions. But I have no DLL's and many of the steps don't seem to apply to ANSI C. When I get to the end and try the resulting .exe on the other machine, it, too, gives the same message.

Any suggestion?
 
What does .NET have to do with an ANSI C program?
Just run the Depends program from Visual Studio on your .exe and it will show you all the DLLs that your program uses. Some, like Kernel32.dll will exist on every Windows machine, and others like MSVCRT.dll will not exist on a clean install of Windows, so you'll need to provide those DLLs along with your .exe.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top