 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Tiedo Kruisselbrink Guest
|
Posted: Fri Mar 30, 2007 1:39 pm Post subject: Datatypes available for typelibraries |
|
|
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 |
|
 |
|
|
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
|
|