i have 2 interfaces;

BEGIN_INTERFACE INTARFACE1,INTERFACE2
END_INTERFACE

BEGIN_INTERFACE INTERFACE2,IUnknwn
END_INTERFACE

is there a way to forward reference INTERFACE2 (compile the code without reordering interfaces declarations)...
Posted on 2003-01-07 03:32:44 by kamilh
BEGIN_INTERFACE isnt a masm reserved word, so where did you get your code from?

If its from comview, just download version 1.5, which implements a 2 pass generation now, allowing it to rearrange definitions so they suit better.

Japheth
Posted on 2003-01-07 04:09:07 by japheth
yes, i'm working with comview + dshow idl files...
i dl'ed new comview and it run fine for Interfaces but there are some problemes with structures :

a) is it possible to make same two passes systeme for structure definitions?
b) when producing structures :

struct1 struct
struct1 ends

struct2 struct
a struct1 ? ; ? should be <?> , it gives structure improperly initialized error..
struct2 ends

c) some of the method and structure field definitons are masm commands. (Pause, Length ... vs..)
replacing them when producing inc file may be a good idea..

d)
_COAUTHIDENTITY struct
User ptr WORD ? ; gives syntax error ; should be replaced by (User pWORD ?)
_COAUTHIDENTITY ends


Thanks for your help and excellent comview util..
Posted on 2003-01-07 04:53:22 by kamilh
kamilh,

the errors you mentioned are in the "known bugs" section of the about box.

Since structures are relatively seldom, these bugs are not very high in my priority list.

But the source code is available. If you have found and corrected the errors, please give me a hint :) .

Japheth
Posted on 2003-01-07 07:20:22 by japheth