Structure initialization issue

Started by Vortex, April 23, 2025, 01:37:29 PM

Previous topic - Next topic

Vortex

Hello,

Trying to initialize some structures ( GUIDs ), I receive the following error message :

WallPaper.asm(12): fatal error: Invalid use of '{'.
sCLSID_IActiveDesktop      TEXTEQU <{075048700h,0EF1Fh,011D0h,{098h,088h,00h,060h,097h,0DEh,0ACh,0F9h}}>
sIID_IActiveDesktop        TEXTEQU <{0F490EB00h,01240h,011D1h,{098h,088h,00h,060h,097h,0DEh,0ACh,0F9h}}>

GUID    STRUCT
    Data1    dd ?
    Data2    dw ?
    Data3    dw ?
    Data4    db 8 dup(?)
GUID ENDS

The lines reporting the problem :

.data

CLSID_IActiveDesktop    GUID sCLSID_IActiveDesktop
IID_IActiveDesktop      GUID sIID_IActiveDesktop

Tested with Poasm Version 13.00.47

Poasm Version 12.00.1 can assemble the code without any error messages.
Code it... That's all...

Pelle

/Pelle

Vortex

Hi Pelle,

Many thanks, great job. Problem solved.

I also modified this line. From :

    call    @CatStr(interface,<.>,member)[eax]
to :

    call    @CatStr(<interface>,<.>,<member>)[eax]
Code it... That's all...