Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


How to put icon in exe with borland

This topic is 5305 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve been developing my first game using Microsoft''s compiler for some time. But when I tried Borland command line compiler I greatly preffered it. The only problem I have is that I can''t get an icon in my exe. It can''t process my .rc files, and I have no way of making .res files. Could anybody help me?

Share this post

Link to post
Share on other sites
Man you must be like me to prefer a command line compiler.

You can process any .rc file into .res files by using the brc32.exe

Format: brc32 name.rc name.res

To use these res file in your program use the:
#pragma resource "name.res"

and you should be able to call the dialogs.I sure had trouble
with this as you would always get some standard funtion call error.A solution:


dlg = MakeProcInstance((FARPROC)Name_of_DlgProc,g_Instance);
ret = DialogBox(g_Instance,MAKEINTRESOURCE(ID_OF_DLG),hwnd,dlg);

The above was the method to call a dialog in a gui program.Or you
have to use make files.(I havent done so but try the http://www.winprog.org/tutorial/ the some info on using the make files).

to compile a win32 gui:
bcc32 -tW name.cpp

I just included this for, well simply.

[edited by - FireNet on May 9, 2004 3:47:32 AM]

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!