Results 1 to 3 of 3

Thread: ICE can used by Delphi?

  1. #1
    baibaichen is offline Registered User
    Join Date
    Jul 2003
    Posts
    1

    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!

  2. #2
    ccba is offline Registered User
    Join Date
    Jul 2003
    Location
    Beijing,China
    Posts
    10
    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 :
    http://www.zeroc.com/vbulletin/showt...=&threadid=150
    Last edited by ccba; 07-16-2003 at 03:06 AM.

  3. #3
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. When does ICE support Delphi??
    By billwillman in forum Comments
    Replies: 3
    Last Post: 09-25-2006, 12:36 AM
  2. About ICE for delphi
    By godman in forum Comments
    Replies: 2
    Last Post: 09-16-2004, 06:23 AM
  3. i need ice for delphi , thank you!
    By fauna in forum Help Center
    Replies: 1
    Last Post: 07-24-2004, 05:03 AM
  4. Would ICE be port to Delphi
    By 3100 in forum Help Center
    Replies: 0
    Last Post: 07-20-2004, 02:03 AM
  5. Can I use ice in delphi?
    By xb_luotuo in forum Help Center
    Replies: 1
    Last Post: 08-25-2003, 10:31 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •