Hi,
I need to transfer a class from my COM client to my COM server.
MIDL does not recognize classes, hence the following IDL code is incorrect (MIDL says "undefined symbol : class" :
// component.idl
import "unknwn.idl";
class Arithemetic
{
public:
void Multiply(int x, int y);
void Add(int x, int y);
int DisplayResult();
private:
int result;
};
[object, uuid(10000001-0000-0000-0000-000000000001) ]
interface IArithemetic : IUnknown
{
HRESULT TransmitClass([in] class Arithemetic);
};
However, the same code works when I try to transfer a structure (MIDL recognizes "struct".
It should be possible to transfer objects between a COM client and server; I need to know how I can ask the MIDL compiler to generate the proxy, client stubs for this (I'm under the impression that writing the stubs myself would be too difficult).
Any suggestions?
TYIA,
Santhosh
I need to transfer a class from my COM client to my COM server.
MIDL does not recognize classes, hence the following IDL code is incorrect (MIDL says "undefined symbol : class" :
// component.idl
import "unknwn.idl";
class Arithemetic
{
public:
void Multiply(int x, int y);
void Add(int x, int y);
int DisplayResult();
private:
int result;
};
[object, uuid(10000001-0000-0000-0000-000000000001) ]
interface IArithemetic : IUnknown
{
HRESULT TransmitClass([in] class Arithemetic);
};
However, the same code works when I try to transfer a structure (MIDL recognizes "struct".
It should be possible to transfer objects between a COM client and server; I need to know how I can ask the MIDL compiler to generate the proxy, client stubs for this (I'm under the impression that writing the stubs myself would be too difficult).
Any suggestions?
TYIA,
Santhosh