News:

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

unresolved external symbol _EnableTheming@4

Started by Darrel, April 22, 2006, 11:15:39 AM

Previous topic - Next topic

Darrel

This is the error I am recieving when compiling the following code.
.386
.model flat,stdcall
option casemap:none

include \masm32\include\WINDOWS.inc
include \masm32\include\kernel32.inc

EnableTheming PROTO :DWORD

includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\uxtheme.lib

.data

.data?

.const

IDI_LOGO equ 500

.code

Start:
INVOKE EnableTheming,TRUE ;uxtheme.dll

INVOKE ExitProcess,eax ;kernel32.dll

END Start


I built the uxtheme.lib according to Make .LIB from dll

Mincho Georgiev

To use invoke, you need to have a prototype of the function, otherwise you need to use push args and call Function.
In the best case you can get ,you can use

EnableTheming PROTO C:VARARG

Otherwise ,you will have to load the DLL ,find the function and calling it.

Darrel

Thanks shaka

EnableTheming PROTO C:DWORD

worked.