Results 1 to 3 of 3

Thread: Can't get the Visual C++ resource icon to load into title bar!

  1. #1

    Thread Starter
    Lively Member dubae524's Avatar
    Join Date
    Jun 2001
    Location
    Currently on this Super Star Destroyer being telekinetically strangled to death by Darth Vader
    Posts
    78

    Can't get the Visual C++ resource icon to load into title bar!

    I am trying to use VC++ to load the icon onto the title bar, but it keeps loading that icon which is the ! inside a triangle! I created a resource file, loaded the icon in, named it IDI_ICON, saved it all, went to my main code, included "resource.h", went to the LoadIcon part of the hIcon and hIconSm sections of my WNDCLASSEX, and put in MAKEINTRESOURCE(IDI_ICON). But the dang thing wouldn't load, it loaded it with that ! inside a triangle. Can somebody please explain to me how to do this in VB? Help would be greatly appreciated.
    - Justin Patrick Butler

    Comme je trouve. "As I find."
    - Butler family quote

    Beneficia sumptos procul superant. "The benefits far exceed the costs."
    - Myself

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You must pass your instance handle to LoadIcon, not NULL. (I think that's the error, but some code would be nice)
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    Lively Member dubae524's Avatar
    Join Date
    Jun 2001
    Location
    Currently on this Super Star Destroyer being telekinetically strangled to death by Darth Vader
    Posts
    78
    CornedBee, I had already figured this out. But thanks for taking your time to do this!
    - Justin Patrick Butler

    Comme je trouve. "As I find."
    - Butler family quote

    Beneficia sumptos procul superant. "The benefits far exceed the costs."
    - Myself

Posting Permissions

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



Click Here to Expand Forum to Full Width