471,311 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,311 software developers and data experts.

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

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
7 2669
Silent1Mezzo
208 100+
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
9,208 Expert Mod 8TB
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
3,237 Expert 2GB
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
driplet
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
3,237 Expert 2GB
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
driplet
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
3,237 Expert 2GB
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.

Similar topics

12 posts views Thread by John Gabriel | last post: by
3 posts views Thread by msnews.microsoft.com | last post: by
7 posts views Thread by Mihajlo Cvetanović | last post: by
8 posts views Thread by Edward Diener | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.