Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI
I have a VC++ project(solution) in VS210 . It works well when I run it in vs .
Now , I want to build a demo for my project that the other users can run it with double-clicking on execute icon .

How can I build that executable icon for my project . I think it calls demo

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 9-Apr-13 2:39am    
Do you think that the problem of demo is reduced to the problem of "executable icon"? You are missing something basic, which a regular user should understand, not even a developer...
—SA
hor_313 9-Apr-13 3:32am    
probably the basic problem is my English language
My question is simple , I wrote a program in VC++ , and now I want to make .exe icon for it to run it out of VS
Sergey Alexandrovich Kryukov 17-May-13 10:29am    
I could not see your comment, because you did not reply to mine, but put your comment as peer, as a comment to your question. That's why I did not get notification and could not pay attention for your reply.
If you want people to get notification on your comments, use "Reply".
—SA
hor_313 9-Apr-13 3:37am    
In this site every articles at least have 2 files for download . 1- the source file that I have it . 2- the demo file that I want to know how can I make it for my source?
Richard MacCutchan 9-Apr-13 3:43am    
It gets built automatically; what do you think you are executing in Visual Studio? Just go to the solution directory and look in the Debug or Release sub-directories for the appropriate executable file.

From your question I think u want to deliver a package for your project. When you are running project using vs IDE it will work fine because vs IDE take care and find all the DLLs for your project. So if u want to create demo u need to deliver all the necessary DLLs with your project executable. You can use "Dependency Walker" to find necessary Dlls for your exe.
 
Share this answer
 
 
Share this answer
 
Create resource section in your project, add new Icon to your Resources and ensure that the following line is in you <application>.rc file:
<iconid>               ICON                    "<youricon>.ico"

Please have a look at this topic about adding resources to your project:
http://msdn.microsoft.com/en-us/library/3bka19x4%28v=vs.80%29.aspx[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900