M
Martin.Salo
Hello NG,
is it possible to move a class object through an idl interface? I have
created a new ATL DLL project within the Visual Studio 6. I have added
two ATL objects (names are ClassA and ClassB) with one interface per
classe. Now I want to give a property of ClassB an object of ClassA.
Is this possible? And what must I do:
// The code with the error:
interface ClassB : IDispatch
{
[propget, id(1), helpstring("property A")] HRESULT Head([out, retval]
ClassA *pVal);
[propput, id(1), helpstring("property A")] HRESULT Head([in] ClassA
newVal);
};
The error is:
T:\New\TestPrj.idl(18) : error MIDL2025 : syntax error : expecting a
type specification near "ClassA"
So the compiler dont know ClassA.
Regards
Martin
is it possible to move a class object through an idl interface? I have
created a new ATL DLL project within the Visual Studio 6. I have added
two ATL objects (names are ClassA and ClassB) with one interface per
classe. Now I want to give a property of ClassB an object of ClassA.
Is this possible? And what must I do:
// The code with the error:
interface ClassB : IDispatch
{
[propget, id(1), helpstring("property A")] HRESULT Head([out, retval]
ClassA *pVal);
[propput, id(1), helpstring("property A")] HRESULT Head([in] ClassA
newVal);
};
The error is:
T:\New\TestPrj.idl(18) : error MIDL2025 : syntax error : expecting a
type specification near "ClassA"
So the compiler dont know ClassA.
Regards
Martin