Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-16-2003
baibaichen baibaichen is offline
Registered User
 
 
Join Date: Jul 2003
Posts: 1
Send a message via Yahoo to baibaichen
-->
ICE can used by Delphi?

hi, i am a delphi programmer,i am interesting with ice.

now, i uesd the delphi in desktop development. is there any way to use ice service with delphi? i mean : i write Server with c++, and access server use my delphi desktop program.

how ice access database on linux and windows XP/2000/NT? ODBC,OLEDB or others?

thanks!
Reply With Quote
  #2 (permalink)  
Old 07-16-2003
ccba ccba is offline
Registered User
 
 
Join Date: Jul 2003
Location: Beijing,China
Posts: 10
Send a message via MSN to ccba Send a message via Yahoo to ccba
-->
Language independence
Client and server can be developed independently and in different programming languages (currently C++ and Java). The Slice definition used by both client and server establishes the interface contract between them and is the only thing they need to agree on.

So you can't call an ICE server directly by using Delphi. Instead of it , you can develop a middle layer between ICE server and your Delphi program .


You can call the Database API in ICE programs . and Freeze is a good choice to access Berkeley DB .

marc and bernard give more professional tips here :
Replace Freeze by PostgreSQL

Last edited by ccba : 07-16-2003 at 03:06 AM.
Reply With Quote
  #3 (permalink)  
Old 07-16-2003
bernard's Avatar
bernard bernard is offline
ZeroC Staff
 
Name: Bernard Normier
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Palm Beach Gardens, FL
Posts: 760
The ideal way to use Ice from a given programming language is through a corresponding Ice language binding. Currently Ice provides C++ and Java bindings, and a PHP binding is under development.

So no Delphi binding at this time. The next best solution is to use Delphi's ability to call other languages (C/C++ for sure, maybe Java as well) and write a wrapper library, e.g.:
[Main Delphi application]-[Delphi/C++ library]-[Ice/C++ client]--network--[Ice server]

Regarding database access, you can use Ice with any database you like.
It just happens that Ice provides a service (Freeze) to store Ice objects: with Freeze, Ice objects are stored directly in a database, Berkeley DB. You don't need to perform any conversion from Ice format to database format: Freeze takes care of it.

To do the same directly with say ODBC, you would need to convert each Ice object data member to some column in your ODBC table (and vice-versa when reading the database). It's not very difficult, just not as easy as with Freeze.

Cheers,
Bernard
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
About ICE for delphi godman Comments 2 09-16-2004 06:23 AM
i need ice for delphi , thank you! fauna Help Center 1 07-24-2004 05:03 AM
Would ICE be port to Delphi 3100 Help Center 0 07-20-2004 02:03 AM
Support for Delphi Z_Q_S Comments 1 05-01-2004 04:37 PM
Can I use ice in delphi? xb_luotuo Help Center 1 08-25-2003 10:31 AM


All times are GMT -4. The time now is 06:58 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.