How can we implement this cpp like type definitions in TASM? In Masm windows.inc this is like below,

---------------------------- masm - windows.inc ---------------------------
; IUnknown interface

externdef IID_IUnknown:IID
LPUNKNOWN typedef DWORD
LPPUNKNOWN typedef ptr LPUNKNOWN

IUnknown_QueryInterfaceProto typedef proto :DWORD, :DWORD, :DWORD ; IUnknown::QueryInterface
IUnknown_AddRefProto typedef proto :DWORD
-----------------------------------------------------------------------------
...but what about tasm? "typedef proto" -> "typedef procdesc" is not work. Is not it supporting? Anybody know?

Regards
Posted on 2002-11-26 15:22:45 by cakmak
in tasm you'd use something like:
PROCDESC IUnknown_QueryInterfaceProto :DWORD, :DWORD, :DWORD
Posted on 2002-11-26 18:30:47 by Tola
Thanks for your help.

Regards
Posted on 2002-11-26 18:50:47 by cakmak
Hi,

I tried this and some more different, but;

PROCDESC IUnknown_QueryInterfaceProto :DWORD, :DWORD, :DWORD ; doesn't work. Says name must first,

IUnknown_QueryInterfaceProto PROCDESC :DWORD, :DWORD, :DWORD ; tried this

and a little below of this line,

IUnknown_QueryInterface typedef ptr IUnknown_QueryInterfaceProto ; but then here tasm give me an error, is missing etc. specifier

what is the exact syntax?

Thanks
Posted on 2002-11-27 11:39:15 by cakmak