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 

Datatypes available for typelibraries

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
Tiedo Kruisselbrink
Guest





PostPosted: Fri Mar 30, 2007 1:39 pm    Post subject: Datatypes available for typelibraries Reply with quote



Some years ago I made an app with a RemoteDataModule in Delphi 6. I added
some methods to the automatically generated typelib. All this worked fine.
I moved to Delphi 2006, and all the old stuff compiled and runned without
problems.

Now I am creating a new, similar app in Delphi 2006, but I run into some
problems:

1. In the old app I used functions which returned Integers (idl type: long)
and booleans (idl type: variant_bool). The new D2006 typelibrary editor
doesn't allow this, and says: "Functions of Automation Interfaces must have
a return type of HRESULT"

2. In the old app I used an method with a in/out parameter of type
WideString (idl type: BSTR). The new D2006 typelibrary editor doesn't allow
this, and says: "Out parameer requires pointer type". Then I try this with a
PChar (idl type: LPSTR), which AFAIK is a pointer type, but I still get the
same error-message.

Can anyone tell me how to do what I want in Delphi 2006 (or 2007)

Tiedo
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) 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.