|
From: Hind F. <the...@ho...> - 2005-10-12 17:18:06
|
Any ressource used in a program need to be identified, so useally we use numbers to be sure that every ressource has a single identifier. I never used letters but its have the same role. Concerning the "MOVEABLE LOADONCALL", this attributes are ignored because they concern 16-bit Windows, for the meaning here u are, but as I told u, you can find this information in the win32 help (I just copy/paste them) LOADONCALL : the resource is loaded when called MOVEABLE : the resource can be moved if necessary in order to compact memory. Concerning the "PURE", I must confess that I don't know, I never use it and search to understand it but this attribute is ignored too :) Have good time :) >Date: Wed, 12 Oct 2005 18:44:55 +0200 > >Hind Fadel wrote: >>In the ressource file : >> 100 ICON DISCARDABLE "test.ico" >> >>And be sure that the icon file is in the same directory than the source >>file or change the path, for example "res//test.ico" if the icon is in the >>res directory. >> >>In the header file or the source file: >> #define ID_ICON 100 >> >>And in the source file : >> wincl.hIcon = LoadIcon (hThisInstance, MAKEINTRESOURCE(ID_ICON)); >> >>If you need more information about the syntax or the use of the win32 >>functions, use the win32 help, try for example this link to download it : >>dimcom.uqac.ca/~ecoete/ftp/mmedia/MSHelp/WIN32.HLP >> >>Good Luck > >It work, thanks for help. > >I have another question...can you explain syntax of line in test_private.rc >file? >A ICON MOVEABLE PURE LOADONCALL DISCARDABLE "test.ico" > >Why it start with character "A" and in your example is number "100" ? >100 ICON DISCARDABLE "test.ico" > >What is meaning of "MOVEABLE PURE LOADONCALL" ? > >Thanks again, > >Blagoja > > _________________________________________________________________ MSN Hotmail : antivirus et antispam intégrés http://www.msn.fr/newhotmail/Default.asp?Ath=f |