 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
amith Guest
|
Posted: Fri Nov 21, 2003 6:48 am Post subject: Re: Interfaces getting exposed as LPDISPATCH in VC++ - Pleas |
|
|
Hi,
I also saw that my method declaration in the idl file contained a warning
message beside it.
| Quote: | Method declaration in type library:
function GetMyIntf: IMyInterface; safecall;
|
In the idl file:
HRESULT _stdcall GetMyIntf([out, retval] IMyInterface ** Value /*Warning:
unable to validate structure name: */ );
Any ideas?
Any advices or suggestions would be much appreciated.
Thanks in advance.
Amith.
"amith" <amith (AT) gnostice (DOT) com> wrote
| Quote: | Hi all,
I have some methods defined in my COM server that accepts an interface as
a
parameter and some methods that returns interface. For a Delphi client the
methods are exposed as expected. But in VC++ the interface is exposed as
LPDISPATCH.
Why does this happen? Is there any way to expose the methods that accept
interfaces as parameter as it is?
Method declaration in type library:
function GetMyIntf: IMyInterface; safecall; //IMyInterface is inherited
from IDispatch
The above method ia exposed as below in VC++:
LPDISPATCH GetMyIntf()
Please suggest.
Thanks,
Amith
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|