News:

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

OO macros under radasm

Started by johnsa, October 09, 2008, 12:52:05 PM

Previous topic - Next topic

johnsa

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

KetilO

Hi johnsa

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

For more information see the RadASMini.rtf file.

KetilO