understanding resource files (ProjName.rc)
Posted on 2006-05-31
I am still a newbie to raw windows programming. I was looking at the code generated by the wizard and could not understand when and where did the resources get loaded. let's look at a specific example.
when i trace back the #includes, i get to resource.h where it says no dependecies and then it lists a bunch of #defines
// Microsoft Visual C++ generated include file.
// Used by win00.rc
#define IDS_APP_TITLE 103
#define IDR_MAINFRAME 128
#define IDD_WIN00_DIALOG 102
I opened the ProjName.rc file in a text editor and see declarations for StringTables, Icons, etc.
Now we look at the _tWinMain function and the first thing that I see is LoadString(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING);
my question is, where/when are the resources loaded to some place where they can be used by LoadString API call? I did some tracing in crt0.c but that didn't help either.