gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfxgfx
 
Members, please note that our guidelines are located here.
 
gfx gfx
gfx
484586 Posts in 28410 Topics by 2464 Members - Latest Member: austinrobert July 11, 2020, 06:23:22 PM
*
gfx* Home | Help | Calendar | Login | Register | gfx
gfx
The Gaming Universe  |  The Archives  |  Archived Projects  |  Open Zelda  |  OZ Help (Moderator: red_team316)  |  Old source question
gfx
gfxgfx
 

Author Topic: Old source question  (Read 1342 times)

Offline Khatuni

  • Executive
  • ***
  • Posts: 1,007
    • View Profile
Old source question
« 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.)
« Last Edit: May 29, 2011, 01:05:51 PM by Khatuni »

Offline KingOfHumans

  • Messiah
  • ******
  • Posts: 17,866
    • View Profile
Re: Old source question
« Reply #1 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


« Last Edit: May 29, 2011, 02:18:34 PM by KingOfHumans »

Offline red_team316

  • Moderator
  • Executive
  • *
  • Posts: 1,411
    • View Profile
Re: Old source question
« Reply #2 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

Offline Khatuni

  • Executive
  • ***
  • Posts: 1,007
    • View Profile
Re: Old source question
« Reply #3 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...
« Last Edit: May 29, 2011, 09:07:19 PM by Khatuni »

Offline red_team316

  • Moderator
  • Executive
  • *
  • Posts: 1,411
    • View Profile
Re: Old source question
« Reply #4 on: May 30, 2011, 07:30:14 PM »
What about using reshack to add it back in?

Offline Khatuni

  • Executive
  • ***
  • Posts: 1,007
    • View Profile
Re: Old source question
« Reply #5 on: June 01, 2011, 03:52:09 PM »
ResHack is a resource hacker, so I'll need the resource file for it anyway.

The Gaming Universe  |  The Archives  |  Archived Projects  |  Open Zelda  |  OZ Help (Moderator: red_team316)  |  Old source question
 

gfxgfx
gfx
SMF 2.0.17 | SMF © 2019, Simple Machines Page created in 0.26 seconds with 24 queries.
Helios Multi © Bloc
gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!
anything