[omniORB] C++ to Pascal?
Luke Deller
ldeller at xplantechnology.com
Sun May 22 23:58:27 BST 2005
Hi Gav,
I understood that Visibroker has full support for Delphi; in what way does the support seem lacking for you? I would imagine that this is your best option for using CORBA from Delphi. (Of course, a Delphi+Visibroker client should be able to communicate with an omniORB server (or vice versa) using CORBA).
If you can't use omniORB's C++ stubs from delphi, then you'll have similar troubles trying to use the omniORB DLL because its interface involves C++ classes rather than simple C-style functions.
Regards,
Luke.
-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com on behalf of Gavin Uttley
Sent: Sat 5/21/2005 12:21 AM
To: omniorb-list at omniorb-support.com
Subject: [omniORB] C++ to Pascal?
Hi,
Currently the company i work for has all its code in pascal(delphi),
but currently have a contract to use CORBA, we have looked at delphi and
visibroker but the support seems lacking for delphi, also we have looked
at delphi.net and janeva but still we have the problem of leveraging our
existing codebase(pointers!).
I have managed to create a simple dll in see that exports functions to
create and return a pointer to a wrapper class that handles talking to
Omni. Now the the problem is that this works quite well for simple data
types but the IDL we must use has many complex objects.
I can use C++ classes in delphi but this requires that the C++ classes
are have at least one virtual function and contain no data members.
The biggy with this being the no data members part.
so presumably with the IDL compiler it produces the stubs for C++,
I guess their is no other way than grabing the data out of the objects
in C++ then passing them back to delphi as primitive types.
With Omni being DLL based is it not possible to just use the DLL's
and convert the stubs to delphi?, i did notice that you carnt use any
other compiler than VC++ in windows, but i assume this is because of the
lib file formats being different? ie VC++ COFF and CBuilder MOF?
regards
gav.
This message has been sent from Initial Electronic Security Systems Ltd.
Initial Electronic Security Systems
Shadsworth Road
Blackburn
BB1 2PR
United Kingdom
Tel +44(0) 1254 688688
This e-mail message and any attachments are confidential
and are intended for the use of the addressee only. If you
are not the addressee you should not copy or use them for
any purpose, nor disclose their contents to anyone else.
If you believe you have received this e-mail by mistake please
notify us immediately by telephoning +44 (0) 1254 688688.
_____________________________________________________________________
This message has been checked for all known viruses by the MessageLabs Virus Scanning Service.
_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
More information about the omniORB-list
mailing list