News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

ExtractAssociatedIcon

Started by DC, January 15, 2006, 05:59:05 AM

Previous topic - Next topic

DC

howdy all,
ExtractAssociatedIcon has 2 different include names and I can't get any combo of the 2 to build...
QuoteMinimum DLL Version shell32.dll
Header Declared in Shellapi.h
Import library Shell32.lib
Minimum operating systems Windows 95, Windows NT 3.5
Unicode Implemented as ANSI version.
I get 47 errors,
am I missing something?
thanx,
DC
[EDIT]
I GOT IT...
I just used Shell32.inc instead of Shellapi.inc
this isn't daja vu, I'm just learning it for the 37th time
http://www.bmath.net

Tedd

Yep, you're probably missing something :P

So, shell32.inc says
ExtractAssociatedIconA PROTO :DWORD,:DWORD,:DWORD
ExtractAssociatedIconW PROTO :DWORD,:DWORD,:DWORD
ExtractAssociatedIcon equ <ExtractAssociatedIconA>

ExtractAssociatedIconExA PROTO :DWORD,:DWORD,:DWORD,:DWORD
ExtractAssociatedIconExW PROTO :DWORD,:DWORD,:DWORD,:DWORD
ExtractAssociatedIconEx equ <ExtractAssociatedIconExA>


I would just use the ANSI version, so simply ExtractAssociatedIcon.

Check your arguments to the function :wink (Usually comes down a mistake with ADDR or OFFSET)
No snowflake in an avalanche feels responsible.