[omniORB] C++ to Pascal?

Gavin Uttley guttley at iess.co.uk
Fri May 20 16:21:24 BST 2005


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.



More information about the omniORB-list mailing list