BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Pascal units inside C++ Builder!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE)
View previous topic :: View next topic  
Author Message
Michele Santucci
Guest





PostPosted: Tue Mar 01, 2005 9:02 am    Post subject: Pascal units inside C++ Builder! Reply with quote



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





PostPosted: Tue Mar 01, 2005 9:04 am    Post subject: Re: Pascal units inside C++ Builder! Reply with quote



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





PostPosted: Tue Mar 01, 2005 11:03 am    Post subject: Re: Pascal units inside C++ Builder! Reply with 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...
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





PostPosted: Tue Mar 01, 2005 12:13 pm    Post subject: Re: Pascal units inside C++ Builder! Reply with 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.

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





PostPosted: Tue Mar 01, 2005 12:41 pm    Post subject: Re: Pascal units inside C++ Builder! Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (IDE) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.