Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsNewbie question about resource.rc file
https://www.eclipse.org/forums/index.php/mv/msg/63979/201540/#msg_201540
Originally posted by: edstrasser.hotmail.com
I'm new to Eclipse and C++. I believe my issue is with Eclipse, please
correct me if I'm wrong.
The problem is that my program only displays a generic icon instead of the
custom icon I've defined. I believe that maybe I haven't told Eclipse
where to locate the .ico file and this is causing it not to display.
// Step 3: The Message Loop
while(GetMessage(&Msg, NULL, 0, 0) > 0)
{
TranslateMessage(&Msg);
DispatchMessage(&Msg);
}
return Msg.wParam;
}]]>2007-09-13T15:15:45-00:00Re: Newbie question about resource.rc file
https://www.eclipse.org/forums/index.php/mv/msg/63979/201557/#msg_201557
> I believe that maybe I haven't told
> Eclipse where to locate the .ico file and this is causing it not to
> display.
It's more complicated, you must "compile" your icon to a library like
"libIcon.a". See http://www.gnu.org/software/binutils/ for "Windres" the
"Compiler for Windows resource files". For execution "windres" you need
to install MSYS I think. After that you can use the MSYS bash for
something like "windres MyIcon.rc libicon.a" and then use eclipse
properties to link "icon" into your software.