Help with Windows API ImageList_LoadImage needed

new topic     » topic index » view thread      » older message » newer message

Using the following definitions, when I call ImageList_LoadImage, it 
always gives me "Image not loaded."
Any ideas why?  Do I not have something defined correctly?  MyIcon.ico 
is a 16x16 icon.

ImageList_LoadImage = link_c_func(comctl, "ImageList_LoadImage", 
{C_INT,C_POINTER,C_INT,C_INT,C_UINT,C_UINT,C_UINT},C_INT)

CLR_DEFAULT = #FF000000

LR_LOADFROMFILE = #0010

Image = allocate_string("MyIcon.ico")

if not 
c_func(ImageList_LoadImage,{NULL,Image,16,1,CLR_DEFAULT,1,LR_LOADFROMFILE}) 
then
    puts(1,"Image not loaded" & '\n')
end if

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu