The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: DC on January 15, 2006, 05:59:05 AM

Title: ExtractAssociatedIcon
Post by: DC on January 15, 2006, 05:59:05 AM
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
Title: Re: ExtractAssociatedIcon
Post by: Tedd on January 16, 2006, 01:23:56 PM
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)