Thread: MAKEINTRESOURCE mystery

  1. #1
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273

    MAKEINTRESOURCE mystery

    Hello,

    Could anyone tell me what MAKEINTRESOURCE turns a resource identifier into? I thought it was a string, but the KERNEL32 access violations on using lstrlen and lstrcpy tell me otherwise. Is it a DWORD?

    If I were to convert it into a string (So I can index different resources in my program's linked list) could I still pass that string to resource functions?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    MSDN

    >>>
    Pointer to a null-terminated string that contains the name of the icon resource to be loaded. Alternatively, this parameter can contain the resource identifier in the low-order word and zero in the high-order word. Use the MAKEINTRESOURCE macro to create this value.
    <<<
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,273
    So, rather than being a pointer to something it's just a value? That means I'll have to add specific resource-handling information to my code above a string identifier, but thanx.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Looking for a fun point-and-click mystery adventure game.
    By SlyMaelstrom in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 10-13-2008, 07:55 AM
  2. Constructors now allowed a return type: Mystery Error
    By wbeasl in forum C++ Programming
    Replies: 3
    Last Post: 04-01-2004, 02:33 PM
  3. Mystery Beep
    By SMurf in forum Tech Board
    Replies: 5
    Last Post: 04-04-2003, 05:22 PM
  4. Mystery.
    By Nutshell in forum C Programming
    Replies: 1
    Last Post: 01-27-2002, 01:41 AM
  5. The great mystery
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 39
    Last Post: 08-15-2001, 08:08 PM