Article View: borland.public.cppbuilder.nativeapi
Article #12107Re: Use a pascal unit in BCB app
From: Muzzy
Date: Sat, 27 Dec 2003 19:51
Date: Sat, 27 Dec 2003 19:51
23 lines
1721 bytes
1721 bytes
Muzzy wrote: > Hi, > > I'm developing a C++ app in BCb and i want to add a pascal unit - it's a > large unit providing sort of customized API to a MySQL DB and i really > want to avoid porting couple thousand lines from pascal to C++. > > So, how do i use those pascal funcs in C++ ? > Do i add not a *.pas but *.dcu to my bcb project and make kind of *.h > file? Or i have to generate an *.obj file from my pas file? > > Thank you, > Andrey If i have a pascal function: int GetValue ( Num : Iinteger; var ResultCode : String ); how do i use this func in C++? I mean i have a 'var' parameter, so what do i put there in C++? Addess &ResultCode? Andrey
Technical Details
Message-ID:
<3fede2e9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3fedda1b$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,bf69fbde5ad54a40 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-27 12:06:41 PST Date: Sat, 27 Dec 2003 14:51:57 -0500 From: Muzzy <leyandrew@yahoo.com> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Use a pascal unit in BCB app References: <3fedda1b$1@newsgroups.borland.com> In-Reply-To: <3fedda1b$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 24.91.233.60 Message-ID: <3fede2e9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072554729 24.91.233.60 (27 Dec 2003 11:52:09 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail