Hi,
I have asked this question in this forum previously and thanks again for your interest. I tried what you suggest but unfortunatly failed. Perhaps I coln't explained previously. Sorry for this new thread but I thought that maybe you didn't checked my later question(reply).
I tried what you suggest and a few different variations but still can not.

I tried this and some more different, but;

PROCDESC IUnknown_QueryInterfaceProto :DWORD, :DWORD, :DWORD ; doesn't work. Says name must
first, so I changed and

IUnknown_QueryInterfaceProto PROCDESC :DWORD, :DWORD, :DWORD ; tried this and assembled again.

...so that error solved but a little below of this line,

IUnknown_QueryInterface typedef ptr IUnknown_QueryInterfaceProto ; here tasm give me a different error, is missing etc. type specifier

what is the exact syntax?

Thanks
Posted on 2002-11-28 07:24:48 by cakmak
You can try private msg him. I think he would be glad to help you. :grin:
Posted on 2002-11-28 08:02:49 by roticv
i don't really know how procedure prototypes are used in masm.
basically the syntax for typedef is:
TYPEDEF type_name complex_type ; Ideal mode
type_name TYPEDEF complex_type ; MASM mode

Defines a named type. Named types represent simple or complex types.

maybe it'll be sufficient for you to declare
IUnknown_QueryInterface PROCDESC :DWORD, :DWORD, :DWORD
and just throw away IUnknown_QueryInterfaceProto

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

in ideal mode, procdesc comes first ;)
Posted on 2002-11-28 09:56:23 by Tola
To Tola,

Thanks again. And, I never tried IDEAL mode ever. and now learned one more thing.:alright:


and to roticv,

Sounds nice. I will ask my later question to you by mail. :grin:
Posted on 2002-11-28 19:16:37 by cakmak

Thanks again. And, I never tried IDEAL mode ever. and now learned one more thing.:alright:

ideal mode has many advantages over the default masm mode, i suggest you try it ;)
Posted on 2002-11-29 07:52:20 by Tola
Hi,

Yes, you're right. Only needs habit.

...and for whose look this thread, for masm32 to tasm procedure type definition syntax difference (for masm mode) is,

PROTO -> PROCTYPE

in include file. I really lazy then I guess for myself.:rolleyes:

ex.


for MASM32:
IUnknown_QueryInterfaceProto typedef proto :DWORD, :DWORD, :DWORD

for Tasm (Masm mode):
IUnknown_QueryInterfaceProto typedef PROCTYPE :DWORD, :DWORD, :DWORD

all remaining relevant structs or pointers are the same.

Regards
Posted on 2002-11-30 19:16:26 by cakmak