C-Header in Turbo Pascal - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

C-Header in Turbo Pascal

StefanStefan Posts: 2Member
Hi,

How can I include CC++ Header in Turbo Pascal????

Comments

  • ManningManning Posts: 1,621Member
    : Hi,
    :
    : How can I include CC++ Header in Turbo Pascal????
    :

    You cant. You'll have to translate it if you want to use it.

  • StefanStefan Posts: 2Member
    : : Hi,
    : :
    : : How can I include CC++ Header in Turbo Pascal????
    : :
    :
    : You cant. You'll have to translate it if you want to use it.
    :

    ok, thx


  • protektorprotektor Posts: 116Member
    : Hi,
    :
    : How can I include CC++ Header in Turbo Pascal????
    :

    you could compile the header to an object file and then link it to your pascal file. i`ve never done it with C files, but i did with ASM. I think it is possible to do it, if you can make an obj file with the header, chances are you can


  • CroWCroW Posts: 348Member
    I think it is not possible to link an C/C++ objectfile into a pascalprogram,because pascale uses another way to pass parameters to subfunctions.im not sure if its possible to compile c-source using the pascal-function-style...
  • Jeff P.Jeff P. Posts: 196Member
    FreePascal includes a utility called "h2pas.exe" that can convert *some* C headers.
    http://www.freepascal.org


    There is also a thing called "Dr Bob's Header Convertor" , but I have never tried it:
    http://www.drbob42.com/headconv/


    Additional info and LOTS of Windows header conversions available at:
    http://www.delphi-jedi.org/
Sign In or Register to comment.