Quote:
> Hello,
Hi.
Quote:
> I'm trying to add a public UDT to the IDL in VS2003. There were no
problem
> in VS6 because
> we could modify the idl file directly without any problem, it was part of
> the project. In VS2003, the IDL file is regenerated at every compilation,
> and we can't really add the typedef struct in it.
Try to add simple struct. Without typedef.
[c++]
[uuid("C5E19FEC-1E23-44C1-9BCA-8060FE18B3AF"),export]
struct _UDT
{
long l;
Quote:
};
[/c++]
Quote:
> We already tried to create another IDL file in the project and disable the
> autogeneration of it, but it doesn't "compile" the tlb information into
the
> DLL which is quite annoying.
Strange. Do you use import directive?
Quote:
> Is there a simple way to avoid this regeneration and include the UDT in ?
> Or can we declare the struct in the cpp code so that it is automatically
> compiled into the IDL by VS2003?
Example above.
--
Sorry for bad English.