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
---------------------------- 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
in tasm you'd use something like:
PROCDESC IUnknown_QueryInterfaceProto :DWORD, :DWORD, :DWORD
PROCDESC IUnknown_QueryInterfaceProto :DWORD, :DWORD, :DWORD
Thanks for your help.
Regards
Regards
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
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