From: Diederick C. N. <dc...@gm...> - 2013-03-03 00:43:58
|
Hi Isaac, I used that same program and found the following: There is an ICON resource which contains the actual icon file under "1" and then there is a GROUP_ICON resource, which contains "GLUT_ICON", although its properties i don't understand.. RESOURCES ICON 1 GROUP_ICON GLUT_ICON Best, Dee On Sat, Mar 2, 2013 at 11:22 PM, notNullGothik <isa...@gm...> wrote: > > I better stick to the version you are sending me, it's fine and has VS2012 > which is what I want to use. > > I have good news I found the "bug" :). > > With latest version, there was no change I still got same null handle with > the LoadIcon call all the time. > I ran the exe on other machine, and still was the same problem. > > About the exe including the icon, I used http://www.mitec.cz/exe.html EXE > Explorer , am sure its being included, but with this tool I also found my > exe has a numeric GROUP_ICON. > Compared with other exe's not using glut and working properly, I notice the > GROUP_ICON contains a list of the definition in a string form. In this case > I would expect the string GLUT_ICON under GROUP_ICON. > It happens that VStudio created the resources like this: > GLUT_ICON ICON "icon.ico" > > I changed it manually to this: > glut_icon ICON "icon.ico" > > And works like a charm. > > I have no idea why it gets generated like that. > > I can conclude that using the upper case version, produces a const number > (in my case 501) which is expected from a macro behavior; with the lower > case it truly uses the ID as an GROUP_ICON identifier. > You will help me a lot, if you can verify on your machine which version gets > generated when including the resource; the lower or upper case. Moreover, if > it makes a difference to you. > > -- > View this message in context: http://old.nabble.com/GLUT_ICON-not-working-on-top-left-window-tp35069979p35078933.html > Sent from the freeglut-developer mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > Freeglut-developer mailing list > Fre...@li... > https://lists.sourceforge.net/lists/listinfo/freeglut-developer |