|
From: Per W. <pw...@ia...> - 2005-10-12 22:34:13
|
It starts with an identifier. A in this case is a name - somewhere else that name 'A' is probably mapped to a number. It is possible to have resources with text names but it is _very_ seldom used because of all problems with tools etc... MOVEABLE means that on older platforms (Win16) the memory allocated for the icon may move around in the computer if Win3.1 needs to compact available memory. LOADONCALL means that all info in the resource file must not be loaded at the same time. It is enough for the OS to load the icon from the exe file when it is needed. DISCARDABLE means that if the computer have little memory, the memory allocated for the icon may be reclaimed. You may either run the application without an icon if out of resources, or it may be loaded again later. /Per W On Wed, 12 Oct 2005, Blagoja Gjakovski wrote: > 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 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Power Architecture Resource Center: Free content, downloads, discussions, > and more. http://solutions.newsforge.com/ibmarch.tmpl > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |