Pelles C forum

Pelles C => Bug reports => Topic started by: Vortex on April 23, 2025, 01:37:29 PM

Title: Structure initialization issue
Post by: Vortex on April 23, 2025, 01:37:29 PM
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.
Title: Re: Structure initialization issue
Post by: Pelle on April 25, 2025, 10:34:33 AM
Try version 13.00.49 ...
Title: Re: Structure initialization issue
Post by: Vortex on April 25, 2025, 02:46:15 PM
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]