BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Interfaces getting exposed as LPDISPATCH in VC++ - Pleas

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
amith
Guest





PostPosted: Fri Nov 21, 2003 6:48 am    Post subject: Re: Interfaces getting exposed as LPDISPATCH in VC++ - Pleas Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.