Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

icon assighment in borland 5.02

Posted on 1999-06-22
3
Medium Priority
?
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Suggested Courses

721 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