Thread: accessing Delphi written file

  1. #1
    Registered User
    Join Date
    Dec 2006

    accessing Delphi written file

    hello everybody

    i am new to this forum. one thing that's eating me up rt now is how to add library file in Delphi (with extension .tlb) to a C program. i want to access the functions written in this Delphi written library file

    thank you

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Which C compiler are you using?

    If it's not made by the same people who made your delphi compiler, chances are it's going to be a lot harder to do (or impossible).

    If they are made by the same people, then look in the documentation for "mixed language" programs, and how to build them.

    At the very least, you need to provide a lot more detail in your questions.
    And some indication of the things you've tried.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Dec 2006
    thanx for ur reply

    well let me explain the things in detail. i have a device and it connects to computer via RS2332 port. all the functions of the device are coded in Delphi language. the extension of the file is".TLB". i am successfull in adding this delphi file to my VB project. I used all the funtions written in the delphi file by creating the object and accessing the function in VB project.

    Now i want to try with C/C++ programming.

    I hope I am clear now.

    Hoping for the response. it's kind of urgent

  4. #4
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Rishon LeZion, Israel
    tlb is a typelibrary
    you can access it using COM

    maybe this link wiil be usefull
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    David J. Wheeler

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  2. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  3. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  4. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM