accessing Delphi written file

This is a discussion on accessing Delphi written file within the C Programming forums, part of the General Programming Boards category; hello everybody i am new to this forum. one thing that's eating me up rt now is how to add ...

  1. #1
    Sha
    Sha is offline
    Registered User
    Join Date
    Dec 2006
    Posts
    2

    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
    Sha

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,499
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Sha
    Sha is offline
    Registered User
    Join Date
    Dec 2006
    Posts
    2
    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
    Sha

  4. #4
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,484
    tlb is a typelibrary
    you can access it using COM

    maybe this link wiil be usefull
    http://msdn2.microsoft.com/en-us/lib...sx(VS.80).aspx
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21