?
Solved

icon assighment in borland 5.02

Posted on 1999-06-22
3
Medium Priority
?
229 Views
Last Modified: 2010-04-16
how do i get an icon assighned to my program. do i need to write it in the program or how do i do it. Its the icon that would appear if i was to view it in windows (ex, my computer has the icon of a computer)  i have an icon to assign it but dont know how to attach it  =0)
0
Comment
Question by:sLeEpY
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 60 total points
ID: 1198210
1. You must make Ico file with help some Recource Editor.
   (myicon.ico for example)
2. You Icon must be include in Rc file
MAIN_ICON ICON "myicon.ico"
3. In h module
#define MAIN_ICON    101
#define GCL_HICON           (-14)
in C text:

  SetClassLong(GCL_HICON,             /* changes icon  */
    (LONG) ::LoadIcon(hInst, MAKEINTRESOURCE(MAIN_ICON)));
or (if you use OWL)
  frameSave->SetIcon(this,MAIN_ICON);
  frameSave: you TDecoratedFrame class
I hope, this helps. Alex

0
 
LVL 1

Author Comment

by:sLeEpY
ID: 1198211
ok with your help and borland help files im getting closer, just dont know how to assign my ico to the program, i created an rc file, didnt have one before, how do i link it or call it so the icon will be my programs icon?
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
ID: 1198212
To link you programme with rc file you must add rc file
to you Project. For this: in View|Project chouse 1-st line (usually programm.exe) Press Ins, type name of you rc file, press enter, after that Complilate and Link.
Good Luck, Alex

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

588 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question