How Can I use the compliers used under Dev-C++ in C++ builder?

How Can I use the  compliers (for instance GCC, ...) used under Dev-C++ in C++ builder? 
In my program,I used boost lambda expression under Dev-C++ due to the fact that C++ builder 2009 do not support such expression.
But Dev-C++ do not support RAD(rapid application development). It is hard to establish the common graphic GUI under windows.So I want to use the compliers of  Dev-C++ in C++ builder. 
And I do not know how to manage it.  Where can I get the related materials or advices?
Can any one with kindness help me?
0
lserjt
8/12/2009 6:29:59 AM
embarcadero.cppbuilder.cpp 2803 articles. 0 followers. Follow

7 Replies
1925 Views

Similar Articles

[PageSpeed] 19
Get it on Google Play
Get it on Apple App Store

Il Tue, 11 Aug 2009 23:29:59 -0700, lserjt lserjt <> ha scritto:

>How Can I use the  compliers (for instance GCC, ...) used under Dev-C++ in C++ builder? 

You can't. The only way to mix code from different 
toolchains, AFAIK, is the usage of DLLs or COM stuffs. 

Regards

Giuliano
0
Giuliano
8/12/2009 10:39:31 AM
<lserjt lserjt> wrote in message news:148357@forums.codegear.com...

> How Can I use the  compliers (for instance GCC, ...) used
> under Dev-C++ in C++ builder?

You can't.  That feature was only available in the short-lived C++BuilderX 
product that was released and died a few years ago.

-- 
Remy Lebeau (TeamB)
0
Remy
8/12/2009 5:24:14 PM
> {quote:title=Giuliano . wrote:}{quote}
> Il Tue, 11 Aug 2009 23:29:59 -0700, lserjt lserjt <> ha scritto:
> 
> >How Can I use the  compliers (for instance GCC, ...) used under Dev-C++ in C++ builder? 
> 
> You can't. The only way to mix code from different 
> toolchains, AFAIK, is the usage of DLLs or COM stuffs. 
> 
> Regards
> 
> Giuliano
But how can I use DLLs made by Dev-C++ in C++ builder?
Maybe the DLL  format is not compatible. COFF or OMF?
Can you indicate some related materials to me?
Thanks a lot.
0
lserjt
8/18/2009 3:43:06 AM
On Mon, 17 Aug 2009 20:43:06 -0700, lserjt lserjt <> wrote:

>Maybe the DLL  format is not compatible. COFF or OMF?

DLLs contain executable code, not pre-linking object code.
Therefore COFF vs OMF issues do not apply to the DLLs themselves,
but may be an issue with import libs associated with the DLLs.

- Wayne


- Wayne A. King
  wayne_a_king@rogers.com
0
Wayne
8/18/2009 5:40:36 AM
Il Mon, 17 Aug 2009 20:43:06 -0700, lserjt lserjt <> ha scritto:

>But how can I use DLLs made by Dev-C++ in C++ builder?
>Maybe the DLL  format is not compatible. COFF or OMF?
>Can you indicate some related materials to me?

The easiest way is to use IMPLIB, a command line tool that comes
with C++Builder:

IMPLIB yourdll.lib yourdll.dll

A .lib file will be created: you have to link it to your project.

Now you can call the DLL functions by their real name. Obviously, 
in the .h related to the lib, you have to declare the signature 
of each function with the extern "C" clause (to turn off C++ name 
mangling) and with the __stdcall calling convention. You can wrap 
all the declarations in this way (if I can recall it correctly): 


// DLL's header file
#ifdef YOURDLL
  #define YOURDLLAPI __declspec(dllexport)
#else
  #define YOURDLLAPI __declspec(dllimport)
#endif

#ifdef __cplusplus
extern "C" {
#endif

// Function declaration list
YOURDLLAPI int __stdcall Funct1();
YOURDLLAPI void __stdcall Funct2( int p1 );
.... etc etc

#ifdef __cplusplus
}
#endif

Compile the DLL with -D YOURDLL compiler switch (or #define YOURDLL 
in the source).

Just include the .h file in the application that consumes the DLL.

Another way is to use the LoadLibrary API... 

Regards.

Giuliano
0
Giuliano
8/18/2009 9:14:29 AM
Only one warning: some VC ando other compilers DLLs are compiled with
__cdecl calling convention and does not need being defined with
__stdcall or changing __stdcall by __cdecl

On Tue, 18 Aug 2009 02:14:29 -0700, Giuliano .
<bidoneaspiratutto@live.it> wrote:

>Il Mon, 17 Aug 2009 20:43:06 -0700, lserjt lserjt <> ha scritto:
>
>>But how can I use DLLs made by Dev-C++ in C++ builder?
>>Maybe the DLL  format is not compatible. COFF or OMF?
>>Can you indicate some related materials to me?
>
>The easiest way is to use IMPLIB, a command line tool that comes
>with C++Builder:
>
>IMPLIB yourdll.lib yourdll.dll
>
>A .lib file will be created: you have to link it to your project.
>
>Now you can call the DLL functions by their real name. Obviously, 
>in the .h related to the lib, you have to declare the signature 
>of each function with the extern "C" clause (to turn off C++ name 
>mangling) and with the __stdcall calling convention. You can wrap 
>all the declarations in this way (if I can recall it correctly): 
>
>
>// DLL's header file
>#ifdef YOURDLL
>  #define YOURDLLAPI __declspec(dllexport)
>#else
>  #define YOURDLLAPI __declspec(dllimport)
>#endif
>
>#ifdef __cplusplus
>extern "C" {
>#endif
>
>// Function declaration list
>YOURDLLAPI int __stdcall Funct1();
>YOURDLLAPI void __stdcall Funct2( int p1 );
>... etc etc
>
>#ifdef __cplusplus
>}
>#endif
>
>Compile the DLL with -D YOURDLL compiler switch (or #define YOURDLL 
>in the source).
>
>Just include the .h file in the application that consumes the DLL.
>
>Another way is to use the LoadLibrary API... 
>
>Regards.
>
>Giuliano
Microsoft Visual C++ MVP => http://geeks.ms/blogs/rfog
========================================
Intel: Where quality is Job Number 0.999972561
0
Rafael
8/18/2009 9:49:57 AM
Il Tue, 18 Aug 2009 02:49:57 -0700, Rafael Ontivero <no@mail.com> ha scritto:

>Only one warning: some VC ando other compilers DLLs are compiled with
>__cdecl calling convention and does not need being defined with
>__stdcall or changing __stdcall by __cdecl
>

Yes! Good point. Thanks!
0
Giuliano
8/18/2009 10:39:32 AM
Reply:

Similar Artilces:

how Can I use my DLL made by Dev-C++ in C++builder2009?
How Can I use the functions of my DLL made by Dev-C++ in C++builder2009. Will come specifications be performed? Can any one give me some examples? Can anyone with kindness help me? <lserjt lserjt> wrote in message news:137185@forums.codegear.com... > How Can I use the functions of my DLL made by Dev-C++ in C++builder2009. Assuming you already have a .h header file for the DLL (that does not require tweaking), use BCB's command-line IMPLIB.EXE tool to generate a BCB-compatible .lib import file and add it to your project. Then you can #include the .h file in your co...

Upgrading C/C++ interface using dblib to use ctlib.
Can anyone direct me to good doc, perhaps sample code, etc., dealing with ctlib? I have a C/C++ interface written to dblib that must be upgraded to go against ctlib. Thank you. On Tue, 11 Nov 2003 08:56:30 -0800, wrote: > Can anyone direct me to good doc, perhaps sample code, etc., dealing with > ctlib? I have a C/C++ interface written to dblib that must be upgraded to > go against ctlib. Thank you. There's sample code in .../OCS/samples/ctlibrary. There's also a migration guide (of sorts) in the OCS docs: http://sybooks.sybase.com/onlinebooks/group-cn/c...

C Components Using Watcom C/C++ Compiler
This is a cryptographically signed message in MIME format. --------------ms2646818B6AC700D6597C3859 Content-Type: multipart/mixed; boundary="------------E0BFC7D7A6CA166C48EDA143" This is a multi-part message in MIME format. --------------E0BFC7D7A6CA166C48EDA143 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Does anyone have an example of C skeleton files and Watcom C/C++ make file to compile and load C components into Jaguar using the Watcom C/C++ compiler/Linker? --------------E0BFC7D7A6CA166C48EDA143 Content-Type: text/x-vcard; ch...

Can i use a c/c++ from a vb.net program?
Hi everyone,I have downloaded a tarball of c/c++ library named gnump which is supposed to help in large arithmetic calculations. The file contains only source (c and c++ files).I would like to know if there is a way to compile and import that library to one vb.net projects?Can someone explain the procedure to follow?Thanx in advance! Yes. You need to learn about Platform Invoke. You can't directly invoke C++ classes, but you do cal call plain C or COM objects (i.e. C++ exposed via interface). http://msdn2.microsoft.com/en-us/library/0h9e9t7d(VS.80).aspx http://pinvoke.net/Thanks---------...

C<use autodie> unravels C<use strict>
------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Content-Description: a letter from tchrist Content-ID: <10727.1298817978.1@chthon> Everything I touch today crumbles in my hands. When you use autodie, you implicitly declare legal any scalar variable whose name matches that of any function it "fatalizes". Here's a (partial) dump of %main:: during the compilation and run of the enclosed program: BEFORE AUTODIE => $0 @ARGV %ENV @INC %INC @_ &dump_main &func1 &funcU AFTER AUTODIE...

Using .Net (C#) ActiveX control within Builder 2009 (C++)
Hi, We are moving one of our applications from Borland C++ Builder 4.5 to the latest builder 2009. There is also an activeX control in our application (Formule One spreadsheet) which is causing problems in this migration. As this control doesn't cover all our future needs, we are thinking about creating our own gridcontrol to use. So I've been playing around and created an example control in .Net and exposed it as a COM object. When I try to add it to my C++ sample project, (Import component and create new package) and compile this package, I get the following error: [BCC32 Erro...

Whether to use JNI-JDBC from C++ OR directly use C++ API for connecting to Sybase RDBMS
Hi, I have a design problem to solve. Please suggest a better solution based on your experience. 1)Whether it is advisable to directly connect to Sybase DB using some approriate API from a C++ Application? Or 2)Is it better to go for JNI Wrapper on the JDBC calls to connect to Sybase DB from C++ App. Problem definition: We have a C++ core application which logs to a file the packets which it grabs from an port/Interface at realtime and at the sametime sends it to a Web based GUI application over a socket connection.The logging in file is done, so that the same packet informatio...

Using Xercesc C++ XML parser library with C++ builder 6
hi i am working on a project built in c++ builder 4 that uses Xercesc C++ XML parser v1.5.1, now i am trying to upgrade that to c++ builder 6. I have few queries related to it. 1. whether we can use the v1.5.1 for the c++ builder 6 2. how to build xercesc library 3. whether using the current version of xercesc library will be cause any issues since the project uses v1.5.1 Thanks. ...

Sending SMS using vb.net or C#.net using vb.net or c#.net
Hi  My requirement is I hav one csv file with these fields id,mobilenum,messgae,status.intiallu staus is 0. once i read the all fileds and take that mobile number.using tat mobile number  i need to send sms .after sending sms i shuld change status as 1 How to send sms thru coding (please dont provide any links.if it is provide also please give working links becox i checked codeproject .i didnt get any nice link. and also provide the how to update the status field im csv file   Thank ssandhya   To send SMS, you need some third party SMS providers. if you consul...

Help me start setting up very old Borland C++ project using C++ Builder
Hi, I am very new to this both C++ and C++ Builder community. My questions may sound silly but they are not to me. I have been assigned to modify a very old project with the code library. I do not have any system/builder information like what compiler and interfaces or any third party assemblies this project incorporated with. All I have is the list of .cpp, .dfm, .obj and .h files. By this list I assumed this project should have been compiled in C++ compiler. So I have downloaded the free Borland C++ compiler and installed it. After setting up the compiler I did try compiling my pro...

C-C TB performance issue: unbuffered write where it can use buffering.
(I posted this to https://bugzilla.mozilla.org/show_bug.cgi?id=558528#c46 as a permanent record, but I am posting this to a couple of newsgroups with a few typo fixes and added comments to solicit a solution re how to fix this performance issue from a wider audience.) I have spotted a very conspicuous offender of not using buffered output where it can in comm-central thunderbird. My questions to the list is as follows. I am not familiar with I/O code within mozilla code base. Is there a way to set the buffer-mode of |m_fileStream->Write| inside CopyDate [see below] (just in...

Looking for DNN2 portal store that can use australian c/c gateways
Hi All, Looking for some help here. I am looking to build a web site with a shopping cart / storeportal - and have been looking at the shopping cart options available for DNN2. Both Catalook and Portal Store 6.1 look good - but neither appear to support any australian credit card gateways. Does anyone have any experiance in this area ? Also is it possible to add new gateways to Catalook or Portal Store - or any other shopping cart solution. Am happy to write new code if that is all thats needed Westa Mate, I am in Australia as well, would be interested in what you ...

Can I use inline::c to call a c library within a perl function.
I've been advised to use a particular C function from within my code and want to know if using inline::c will allow me to call this function directly. I'd like to use inline call the c function and then move on with the perl part of the program. Is this possible? All the examples had C code but didn't directly call a C function. thanks Sean ----- Original Message ----- From: "Sean McMahon" <smcmahon@usgs.gov> To: <inline@perl.org> Sent: Wednesday, April 04, 2007 9:57 AM Subject: Can I use inline::c to call a c library within a perl fu...

C-C TB performance issue: unbuffered write where it can use buffering.
(I posted this to https://bugzilla.mozilla.org/show_bug.cgi?id=558528#c46 as a permanent record, but I am posting this to a couple of newsgroups with a few typo fixes and added comments to solicit a solution re how to fix this performance issue from a wider audience.) I have spotted a very conspicuous offender of not using buffered output where it can in comm-central thunderbird. My questions to the list is as follows. I am not familiar with I/O code within mozilla code base. Is there a way to set the buffer-mode of |m_fileStream->Write| inside CopyDate [see below] (just in...

Web resources about - How Can I use the compliers used under Dev-C++ in C++ builder? - embarcadero.cppbuilder.cpp

Ohio U. 'Not a Police State' Even Though Admins Banned Smoking, Will Force Cessation On Non-Compliers ...
Ohio U. 'Not a Police State' Even Though Admins Banned Smoking, Will Force Cessation On Non-Compliers

Symbian - Wikipedia, the free encyclopedia
The Symbian platform is the successor to Symbian OS and Nokia Series 60 ; unlike Symbian OS, which needed an additional user interface system, ...

The A-Z of Programming Languages: C++
Computerworld is undertaking a series of investigations into the most widely-used programming languages. Previously we have spoken to Alfred ...

Man jailed for letting 'controlling' mother die
A 26-year-old Western Australian man has been jailed for 15 months after failing to seek medical attention for his dying mother.

The First Fortran IDE Designed by Fortran Experts!
Fortran and C IDE for Windows Mac and Linux Programmers

BLOOD AND ROCKETS.
1. In reading about the disaster that is the DC new fifty two, as the Marvel now impact was lessened by Uncle Stan lawyering up and telling Marvel ...

Interview with Ian Wishart
Vox Day interviewed Ian Wishart, author of Air Con: The Seriously Inconvenient Truth About Global Warming , on August 9th, 2009. VD: How did ...

ARC International Completes Integration of Three Subsidiaries Into One Company
ARC International Completes Integration of Three Subsidiaries Into One Company

DP Interviews...
... Gregg Tavares By Scott Stilphen DP: What's your educational background? Gregg Tavares: High School, some college at Brigham Young University ...

Is The Maverick At Your Company A Genius Or A Jerk?
... missiles (who launch a disruptive rocket at a colleague in a meeting and then sit back to watch the fallout), naysayers, malicious compliers ...

Resources last updated: 1/16/2016 3:08:53 PM