>Frank,
>
>Actually, I had collected several hints. But Sergey's hints is the one that inspired me.
>I just found your culprit. Take a look at your "IconBuddy.h" file.
>
>
>** change this one
>#define HANDLE long
>
>** to this one (whatever you like as long as it's unique)
>#define API_HANDLE long
>
>
>Also, change all your API declaration that uses HANDLE to API_HANDLE.
>
>
>You will like this ;-)
>>Hehehe.... <lol>
>
>BTW, there is another error on the CreateBmpInfoStruct().
>At line "ls_BitmapInfo = ...." the last one is a "qw0" not "dw0". You can replace it with "dw0 + dw0". But you only replace with one dw0
>
>Another thing is, for creating bmp file you can skip the call to IconHandle2Object() in GetAssocIconPairObjects(). Because you already have the HICON once it calls ShellGetFileInfo(). But it's your choice
>
>HTH
Great QA work! Now Frank needs to hire you to work as QA for him <g>
If it's not broken, fix it until it is.
My Blog