>
>however OpenThemeData always returns a handle of 0.
>
>Tried several things with bits I found in the net.
>
>current code is something like this:
>
>#define handle long
>
>declare handle OpenThemeData in uxtheme.dll long hWnd, string pszClasslist
Is that what you are using? "declare handle"?
Try:
DECLARE INTEGER OpenThemeData IN uxtheme.dll;
INTEGER hWnd,;
INTEGER pszClassList
From the Help File:
DECLARE [cFunctionType]....
cFunctionType:
SHORT
INTEGER
SINGLE
DOUBLE
LONG
STRING
OBJECT
I dont see "HANDLE" listed. Could that be the problem?
[EDIT]
No, I see you did #define handle long
Carlos