Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I program an application for AutoCAD. I want to create a own desktop icon with the executable file, the target path, some options.
How can I do it?

What I have tried:

I tried to find a class or an object that I an use.
I didn't found it.
Posted
Updated 14-Nov-16 10:11am
Comments
[no name] 14-Nov-16 13:46pm    
"I didn't found it", because you are searching for the wrong thing. You want to create a shortcut.

1 solution

Quote:
I tried to find a class or an object that I an use.
I didn't found it.
You didn't found because it don't work like that.

The icon of an app is an external resource (a file) that is just linked as you build the app.
The icon is in a .ico file. There is plenty of icon editors available.
It is declared in the resource file .rc. Details vary with compilers.

The icon can also be added after the app is build with the help of resource editors.
 
Share this answer
 

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