Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: Resource Help

  1. #1
    Regular Coder
    Join Date
    Apr 2004
    Location
    Philadelphia
    Posts
    241
    Thanks
    2
    Thanked 5 Times in 5 Posts

    Arrow Resource Help

    okay lemme break this down...
    Im reading a tutorial on win32 programs..
    I'm to make a "resource file" and i'm having trouble linkin it to my project..

    here's my 'so called' resource file
    #include "resource.h"

    IDI_MYICON ICON "50cent.png"
    now i'd like 2 figure out how 2 get this in my main program...im guessin its some type of ..
    #include "???"
    code...sum1 help!!!!

  • #2
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Maybe this can help.

    shmoove

  • #3
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    You can't use png as an icon. You need to use an ico.
    And what compiler/ide are you using? If it's dev-c++ open project options (alt+p) go to the files tab select your resource script and make sure it has 'include in compilation' checked on the right hand side.
    Omnis mico antequam dominus Spookster!

  • #4
    Regular Coder
    Join Date
    Apr 2004
    Location
    Philadelphia
    Posts
    241
    Thanks
    2
    Thanked 5 Times in 5 Posts
    ummmm....wuts an ico image? or should i say how do i convert/make that type of image..

  • #5
    Senior Coder
    Join Date
    Aug 2002
    Location
    Kansas City, Kansas
    Posts
    1,518
    Thanks
    0
    Thanked 2 Times in 2 Posts
    If I'm not mistaken, .ico is an extension pertaining to icons and can be made with a simple program. Here's what my good friend google cooked up: [http://www.google.com/search?q=icon+...utf-8&oe=utf-8]

  • #6
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Well there are convertors out there, finding a free icon making program is pretty hard though (tis why I'm going to make one soon) ...

    The ICO format is essentially a bitmap with a few differences in the headers.

    You could easily make a convertor using the WinAPI functions.
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •