| View previous topic :: View next topic |
| Author |
Message |
Michele Santucci Guest
|
Posted: Tue Mar 01, 2005 9:02 am Post subject: Pascal units inside C++ Builder! |
|
|
How can I use a pascal unit inside C++ Builder?
--
Michele Santucci
===================
Celin Avio S.r.l.
Software Dev. Manager
--------------------------------------
tel. +390187564080
Via Fontevivo 21/M
19126 La Spezia
===================
|
|
| Back to top |
|
 |
Pete Fraser Guest
|
Posted: Tue Mar 01, 2005 9:04 am Post subject: Re: Pascal units inside C++ Builder! |
|
|
Michele Santucci wrote:
| Quote: | How can I use a pascal unit inside C++ Builder?
Just add the file to the project and off you go... |
HTH Pete
|
|
| Back to top |
|
 |
Michele Santucci Guest
|
Posted: Tue Mar 01, 2005 11:03 am Post subject: Re: Pascal units inside C++ Builder! |
|
|
Thnx !!! But I still have some problems
I did that but how can I declare what functions / procedures were defined in
that Pascal unit?
i.e. what's the C++ Builder analogous of the Pascal directive 'uses
<unitname>'.
"Pete Fraser" <pete.no.spam.fraser (AT) frasersoft (DOT) nospam.net> ha scritto nel
messaggio news:42243010$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Michele Santucci wrote:
How can I use a pascal unit inside C++ Builder?
Just add the file to the project and off you go...
HTH Pete
|
|
|
| Back to top |
|
 |
hofi Guest
|
Posted: Tue Mar 01, 2005 12:13 pm Post subject: Re: Pascal units inside C++ Builder! |
|
|
After added the unit and got compiled the compiler will produce the
unitname.hpp file.
You can include the header file just like any other headers.
By(t)e
Hofi
On Tue, 1 Mar 2005 12:03:58 +0100, Michele Santucci
<michele.santucci (AT) celinavio (DOT) it> wrote:
| Quote: | Thnx !!! But I still have some problems
I did that but how can I declare what functions / procedures were
defined in
that Pascal unit?
i.e. what's the C++ Builder analogous of the Pascal directive 'uses
unitname>'.
"Pete Fraser" <pete.no.spam.fraser (AT) frasersoft (DOT) nospam.net> ha scritto nel
messaggio news:42243010$1 (AT) newsgroups (DOT) borland.com...
Michele Santucci wrote:
How can I use a pascal unit inside C++ Builder?
Just add the file to the project and off you go...
HTH Pete
|
|
|
| Back to top |
|
 |
Pete Fraser Guest
|
Posted: Tue Mar 01, 2005 12:41 pm Post subject: Re: Pascal units inside C++ Builder! |
|
|
As in:
#include "myfile.hpp" // where myfile.pas was the original filename
HTH Pete
hofi wrote:
| Quote: | After added the unit and got compiled the compiler will produce the
unitname.hpp file.
You can include the header file just like any other headers.
|
|
|
| Back to top |
|
 |
|