The Gaming Universe

The Archives => Open Zelda => Archived Projects => OZ Help => Topic started by: Khatuni on May 29, 2011, 01:03:54 PM

Title: Old source question
Post by: Khatuni on May 29, 2011, 01:03:54 PM
What exactly is the need of OpenZelda.rc and the OpenZelda_private files? I know they're linked to each other, but is either of them really necessary?
The only line in OpenZelda.rc is A ICON "cns.ico", which calls the icon in the top left corner. "A" is linked to wc.hIcon = LoadIcon(hInst, "A");, which is a basic component of the window in Main.zes.

My goal is to somehow call the icon simply in Main.zes, so that I can remove at least OpenZelda.rc. Things like wc.hIcon = LoadIcon(hInst, "cns.ico"); do nothing. Any ideas?

Btw, every time I log in to the chat, I'm the only one there. Is it down again, or is it accessable elsewhere? (I always use the site's javachat.)
Title: Re: Old source question
Post by: KingOfHumans on May 29, 2011, 02:16:01 PM
I got bored with the same routine which destroyed all inspiration(check sig). So I'm doing things more quietly. (decent A.I updates)

OpenZelda_private is created and overrided by dev c++. I believe(don't quote me) this info is set up like this so you can have OZ read this info. When I was making updates, the version number wasn't being read right, but I think it was fixed.

The RC file I think is the initial setup for the source before the .dev file. When I tried to compile the official OZ 6.4, there was no .dev file. I had to use the RC file instead. So think of it as a default file.

Code: [Select]
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "OpenZelda.ico"
120               ICON    DISCARDABLE     "qst.ico"
121               BITMAP    DISCARDABLE     "openzelda.bmp"
Does changing anything here do anything?

http://msdn.microsoft.com/en-us/library/ms648072%28v=vs.85%29.aspx
Sounds like it may be a one time load.

edit: Maybe not. Try google for more answers.
http://forum.pellesc.de/index.php?topic=3263.5;wap2


Title: Re: Old source question
Post by: red_team316 on May 29, 2011, 07:48:26 PM
[19:20] <lukex> Can someone pass this on to Khatuni for me, thanks in advance. "Old source question" http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/dee0ac69-4236-49aa-a2a2-0ac672147769
Title: Re: Old source question
Post by: Khatuni on May 29, 2011, 08:30:09 PM
My thanks again to Luke.  :cool:

Edit: While that link worked for the window icon, it removes the .exe file's icon. Everywhere on the internet I find that the .rc file is needed for file icons. So never mind...
Title: Re: Old source question
Post by: red_team316 on May 30, 2011, 07:30:14 PM
What about using reshack to add it back in?
Title: Re: Old source question
Post by: Khatuni on June 01, 2011, 03:52:09 PM
ResHack is a resource hacker, so I'll need the resource file for it anyway.