The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: johnsa on October 09, 2008, 12:52:05 PM

Title: OO macros under radasm
Post by: johnsa on October 09, 2008, 12:52:05 PM
Hey there,

I was just wondering while I've been experimenting with creating some macros for masm to implement a pseudo-oo model (quite primitive.. less so than the oop supplied with masm and slightly different) but ideal for my requirements.

The traditional struct syntax works and provides struct member listing as in

Mystruct struct
_value dd 0
Mystruct ends


Mov (Mystruct PTR [edi])._value, eax     ; here u get the member listing after the .

So now if I replace the struct definition with a macro to yield:

Class myclass
_value dd 0
myclass ends

Then the ide doesn't pick up the struct members info... is there anyway to over-ride this behavior and get it to work for the specified class macro?

I'm curious about methods having the same problem when calling invoke, using some sort of STDMETHOD macro to be inserted inside the class macro.

Thanks!
John
Title: Re: OO macros under radasm
Post by: KetilO on October 15, 2008, 10:33:46 PM
Hi johnsa

In masm.ini section {code] add the folowing:
Struct2=? ends,class $

For more information see the RadASMini.rtf file.

KetilO