Subj : Re: CommandLineTools an program Icon To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Mon Dec 29 2003 06:58 pm Your question is unrelated to what compiler might be used. It more relates to the format of the executable file as is required by the operating system. The output of the compiler and linker is a standard format called the Portable Executable format or PE format. All of code, data and resources are located in the file in locations specified by that format and given in table entries in the header of the exe or dll file. Some links to information on the PE format: PE Format Tour http://msdn.microsoft.com/library/en-us/dndebug/html/msdn_peeringpe.asp PE Format in Depth Part 1 and Part 2 http://msdn.microsoft.com/msdnmag/issues/02/02/PE/default.aspx http://msdn.microsoft.com/msdnmag/issues/02/03/PE2/default.aspx Understanding of the PE formats assumes at least a passing knowledge of assembly language. If your understanding is rudimentary these articles may help get you up to speed quickly: Just Enough Assembly to Get By Part 1 and Part 2 http://www.microsoft.com/msj/0298/hood0298.aspx http://www.microsoft.com/msj/0698/hood0698.aspx The bitmap and icon formats are important in interpreting what you located from parsing the PE format 4 Articles on the bitmap (BMP) format are here http://www.wotsit.org/search.asp?s=graphics One article for each for bitmap (BMP) and icon (ICO) formats are here http://www.wotsit.org/search.asp The resource source file (RC File) is used as input to a resource compiler similar to how C or C++ source files are input to the language compiler. This is a specification of the statement formats in an RC file: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools /resource_definition_statements.asp .. Ed > Jan Lühr wrote in message > news:bsq0rf$7nrv$1@ID-46676.news.uni-berlin.de... > > Nearly. > I wanted to write a C++ program, which can manipulate it's > own icon or hijack other icons. > This is slightly OT - if you restrict the topic to Borland's tool. > But imho it might by on topic because I'm asking for some > details concerning the output of the Borland compiler. (What > the compiler actually does when I add a icon) .