Hi...
I am wrinting a win32-aplicattion that not uses classes.
I use stdio.h and iostream for example, and, the operators new & delete
for memory.
Then... Is "licit" to mix c & c++ code, compiled as c++, without OOP ??
Or.. maybe i have to translate to only C code and forget "cout <<",
new, delete, etc... if I not use objectes and classes?
By the way, another question. If The project is in c++ option setting,
the extensions of the sources are created as *.cpp and the default
compiler is g++.exe. If the project option language is C, is the
gcc.exe the default compiler... thats right I suppose... So... Why not
use g++.exe for *.cpp and *.c ??
Txs!! 1 1357
Hi!!!
Jose Garcia wrote: By the way, another question. If The project is in c++ option setting, the extensions of the sources are created as *.cpp and the default compiler is g++.exe. If the project option language is C, is the gcc.exe the default compiler... thats right I suppose... So... Why not use g++.exe for *.cpp and *.c ??
Because C and C++ are diffrent languages and sometimes incompatible.
See: http://david.tribble.com/text/cdiffs.htm
for details.
Best
Darek This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: GeoTrail |
last post by:
Hey people.
I'm brand spanking new to the wonderful world of C++.
I just want to ask the opinnions of the more experienced users if they know
of DevCpp by Bloodshed and if they think it's a good or bad idea to use this
software when learning C++.
I have been programming and scripting with other languages (high level) for
some time, but I'm very new too C++.
I have downloaded the free Borland compiler and I have bought UltraEdit as
|
by: lrsk1260 |
last post by:
I would like to install the MingW 3.4.2/g++ compiler(which, I presume,
is the latest version) on my computer. I seem to be lost when I look at
the MingW download page:
http://www.mingw.org/download.shtml
Can someone please tell me how to go about doing it? Which are the
executables and packages I need to download in order to do this?
Thanks.
LRS.
|
by: Rafal 'Raf256' Maj |
last post by:
Hi,
is this group good for questions also little compiler/platform related?
int tab;
program with this instruction compiled undre MinGW(DevCPP) and executed
under WinXP - crashes in this instruction. Probably due to stack overflow
error. How can I increase stack limit? Is there some universal method for
most C/C++ compilers ?
|
by: Dave -Turner |
last post by:
So I just downloaded Bloodshed devcpp, opened up the Hello example, compiled
it, no problems ..... well, except one - the exe is 474,990 bytes!
What's the secret to compiling small exes?
Thanks
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |