By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,778 Members | 1,947 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,778 IT Pros & Developers. It's quick & easy.

making a stand alone application program from MS VC++ 2005 Express Edition

P: 11
I am using MS VC++ 2005 Express Edition to make some windows application programs. I found that the exe files I built on one computer cannot be run on the other. Could any body please tell me how to make a stand alone exe file in MS VC++ 2005 Express Edition?

If you also have experience in Borland C++ Builder on the same question, I will also appreciate you for your reply.

Thank you!
Jun 4 '07 #1
Share this Question
Share on Google+
7 Replies


100+
P: 208
I am using MS VC++ 2005 Express Edition to make some windows application programs. I found that the exe files I built on one computer cannot be run on the other. Could any body please tell me how to make a stand alone exe file in MS VC++ 2005 Express Edition?

If you also have experience in Borland C++ Builder on the same question, I will also appreciate you for your reply.

Thank you!

What happens when you try to run the exe's on the other computer? My guess is that they have dependencies that aren't being met on the other computer. I've never used MS VC++ but when I used it for C# the computers needed to have .NET installed on them for the exe's to work....Could this be the case?
Jun 4 '07 #2

weaknessforcats
Expert Mod 5K+
P: 9,197
That may be a limitation deliberately built into VC++ 2005 Express Edition. The Express edition is intended for eduational use and not for software development. Hence, there should never be a need to run the code on a different computer.

It wouldn't suprise me if there was code in the exe checking the IP address of the machine againsty the IP address of the machine that did the build.

Consider getting the real Visual Studio.NET 2005.
Jun 4 '07 #3

Motoma
Expert 2.5K+
P: 3,235
What happens when you try to run the exe's on the other computer? My guess is that they have dependencies that aren't being met on the other computer. I've never used MS VC++ but when I used it for C# the computers needed to have .NET installed on them for the exe's to work....Could this be the case?
I think you are pretty close to the mark. Most likely you have compile the code using CLR, rather than building a native Win32 executable. To build a native executable, you will need to download the PSDK and follow the instructions locate here.
Jun 4 '07 #4

P: 11
That may be a limitation deliberately built into VC++ 2005 Express Edition. The Express edition is intended for eduational use and not for software development. ......
Thank Silent1Mezzo and the moderator's reply. Now I am trying on Bloodshed Dev-C++. Do you know it will solve my problem?
Jun 4 '07 #5

Motoma
Expert 2.5K+
P: 3,235
Thank Silent1Mezzo and the moderator's reply. Now I am trying on Bloodshed Dev-C++. Do you know it will solve my problem?
Yes, Dev-C++ does produce native code. However, you may want to post what error message you have been receiving, as it may be indicative of an entirely different problem.

On a side note, VC++ Express executables work just fine on other machines.
Jun 4 '07 #6

P: 11
I think you are pretty close to the mark. Most likely you have compile the code using CLR, rather than building a native Win32 executable. To build a native executable, you will need to download the PSDK and follow the instructions locate here.
Thank you for your help. I did compile my application using CLR, but couldn't find windows forms application in win32 (only win32 console application). If I want to do some windows forms application and run them on different computers, what shall I do? By the way, I have installed
Microsoft Platform SDK for Windows Server 2003 R2 by following your instruction.
Jun 5 '07 #7

Motoma
Expert 2.5K+
P: 3,235
Thank you for your help. I did compile my application using CLR, but couldn't find windows forms application in win32 (only win32 console application). If I want to do some windows forms application and run them on different computers, what shall I do? By the way, I have installed
Microsoft Platform SDK for Windows Server 2003 R2 by following your instruction.
There is no Win32 Windows forms project in Visual Studio (not even 2005 Professional has it). You will need to build your code from the ground up, or you may be able to get away with using the code you have from the CLR project. I believe you should be able to add the cpp and h files to a standard Win32 console project (you will need to change the project properties to specify it is no longer a console app), but this is all speculation as I have not done it.
Jun 5 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.