|
GCC is the 'GNU compiler collection', a series of compiler frontends for different languages in combinations with backends for a real lot of processors.
For all major systems (like Win32) are ready made distributions using the frontend (e.g C and C++) and backend (intel/amd processors) available.
Look here[^] and go to 'GNU projects'.
Hope this helps.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
Thank you alot..
but what about the IDE ?
I realized (from the web site) that GCC is a command line only utility..
any alternatives ?
|
|
|
|
|
Yes, gcc is command line only.
Tere is nothing to beat the VisualStudio if you are into seamlessly integrated MSDN or extensive wizards to do your code for you. VC++ is cheap(er) for students.
But if you want an editor with syntax-highlighting and possibilities for starting a build, I can recommend SciTE or UltraEdit or any other of a multitude of programmers editors. Take your pick.
I have no idea if there are any good Open Source IDEs. Eclipse (while made primarily for Java) seems to work with C++.
So, I hope to have drowned in possibilities...
Off topic:If you like to learn C#, I recommend SharpDevelop. Free and very good.
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
yndfcd wrote:
So,What do you think of this problem?Does this create problems? What do use when you a beginner? And What compiler do you think is suitable for a beginner?
Borland Turbo C was the first C compiler I purchased. I loved it. Wouldn't be where I am today without having gone down that road. From there, I went to Borland Turbo C++, then to Microsoft C, and finally to Microsoft Visual C++. A tool is what you make of it. When navigating the stones, skipping the smaller, intermediate stones is not always a good idea.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Hyello,
Can anyone tell me if _sys_errlist contains localized strings?
Thanks!
swine
[b]yte your digital photos with [ae]phid [p]hotokeeper - www.aephid.com.
|
|
|
|
|
hi all,
is there any way i can capture the 'windows shut down' message from my win32 application ? Also, if i can, is there any way i can cancel the shut down (if user wants it )?
regards
hari
Hari Krishnan
|
|
|
|
|
|
|
First, I tried posting queries similar to this one on various Usenet newsgroups that seemed reasonably appropriate (including MFC, .Net, and Borland newsgroups) -- the response was thunderous silence. I know what follows are newbie questions, but please be kind and patient and help a guy out.
I am basically a hobbyist programmer, at the moment doing a little work experimenting with some AI stuff. I learned C++, and then tried to teach myself MFC using MS Visual C++ 6.0. At the time I swore off of MFC, which a friend has described as "building a house using toothpicks", and have been playing with Borlands C++ Builder. In C++ Builder, creating forms and other GUI elements is much simpler than MFC, very similar to Visual Basic. Unfortunately, Borland's product is rapidly becoming obsolete.
In the store yesterday, I was looking at the C++ .Net package. On the back, it still mentioned MFC, but it also claimed that the .Net environment has a user-friendly forms builder. My question: How friendly, and how good?
What I'd be looking for is something like the Visual Basic technology: You select a new form, there's your form on screen. You have a palette of widgets (text boxes, scroll boxes, buttons, check boxes, etc.), and you can drag them to the form and place them easily. For any widget (I forget the formal, technical term), VB provided a list of both properties you could set, and also all the functions that could be called for that widget. If you've used it, you know how easy it is.
My first question, then, essentially, is whether creating display forms in Microsoft's C++ .Net environment is just as easy as doing so, or very nearly as easy as doing so, as in Visual Basic? I want to be able to focus on underlying algorithms, and have my GUI display design be EASY.
The second question is, as a kind of "Plan B", are there any add-ons to VC++ 6.0 (preferably open-source, shareware, or not-too-expensive, in that order), which create a kind of Visual Basic forms design functionality within the Visual C++ environment?
My main focus is on the underlying logic of the AI stuff I'm playing with, so I don't need to do anything to fancy with my GUI. Just basic check boxes, radio buttons, and drop down menus for setting some options (and an "OK" button here and there); and some text boxes and paint areas for displaying results. As I indicated at the outset, I found raw MFC very hard to play with, so if C++ .Net, or some other add-on to VC++ 6, can make GUI design much easier, I'd love to hear about it.
FYI, for reasons not worth venturing into here, Java and C# are not good options for my projects.
Thanks in advance for all replies. By the way, I'm a kick-ass freelance tech writer, so feel free to contact me at Steven@OpComm.com for support in that area, or check out www.OpComm.com.
|
|
|
|
|
WinForms, AFAIK, are tied to the .NET platform beyond all hope, so if C# is not an option for you you might need to resort to Managed C++ or some sort of mixed-language solution to use them.
Qt (see www.trolltech.com[^]) has a reputation as a well-designed, cross-platform GUI framework, but I don't have the slightlest idea whether some visual tool is provided to automate QT coding --as far as I know, you've got to write everything by hand.
I'm a long time MFC coder, and seems to me that it can suit your needs perfectly if you're not going to go beyond simple forms as you say. Probably its main advantage is immediate availability with Visual Studio, though. I'd say you're better off learning the basics of dialog-based MFC apps (tons of tutorials, many of them here at CP), once you master these youll be able to quickly concentrate on the real stuff with little or no dependency on the GUI part.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
SteveTheTechWriter wrote:
At the time I swore off of MFC, which a friend has described as "building a house using toothpicks"
Why, from the advice of one person, have you "sworn-off" MFC? Why would it be like building a house using toothpicks? I'm sure there are far more development hours behind the MFC toothpicks then there would be behind writing your own controls and classes using pure API.
And you think VB is any better?
It's kinda like the matrix: once you get used to it you won't miss the GUI designer much at all. You'll start seeing layout algorithms in your sleep and will be creating controls dynamically before you know it. Try it, you'll like it.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
No, sorry, I won't like it. I mentioned the quote from my friend only because I think it's both funny and true. But I spent a full year working through two books on MFC, and working closely with the tools and code involved -- and I hated it. If GUI design can be made simple and painless in Visual Basic, I see no inherent reason the same thing cannot be done for C++.
So far, based on feedback I'm getting in various newsgroups and here, it seems my best bet for now is to stick with Borland's C++ Builder 6. I certainly have not heard anyone say that C++ .Net offer's GUI-design features similar to those in VB.
Steve O.
|
|
|
|
|
HELLO,
I want to make an installation package for my application developed in VC++ 6.0(MFC).It's a database application using ADO.PLEASE help me.is there any special component required for mshflexgrid activexcontrol
Manas
|
|
|
|
|
There is a file that you need to distribute in order to use mshflexgrid control. It is called MSHFlxGd.ocx and you can find it in your windows system folder. Make sure that you register it by writing regsvr32 MSHFlxGd.ocx in the command prompt.
// Afterall, I realized that even my comment lines have bugs
If the sun were to blow up, it would take us 7-8 minutes to realize it.
|
|
|
|
|
run depends as well
Best Wishes,
ez_way
|
|
|
|
|
I found out how to turn my MDI into a text interface, but using this:
#include <afxrich.h>
class CFDPViewRE : public CRich2EditView
{
protected:
CFDPViewRE(); // protected constructor used by dynamic creation
DECLARE_DYNCREATE(CFDPViewRE)
public:
virtual void OnInitialUpdate();
protected:
virtual ~CFDPViewRE();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
DECLARE_MESSAGE_MAP()
};
For some damn reason, it by default is always bold, if I write in comands for a bold button, then you can highlight text and un bold it, or click the bold button and type non bold text, but when you open the program, the bold button is already checked. I take out all of the code for bold from my program, and still the text is bold. Therefor I started from scratch. The above is all I have really other than the supporting .h file that has no refrences whatsoever to bold or weight or font. I for the life of me can't figure out how to get it so it isn't bold font. Maybe I need to use another type of text thing other than rich text, but I don't know much about this stuff yet. Any ideas?
LOSTTWARE.com
|
|
|
|
|
how can i get the format of file *.wab (address book)
|
|
|
|
|
Easy check this console app out, It will explain all.
// main.h
#include <<windows.h>> //sorry for the double but I could not get singles to take.
#include <<crtdbg.h>>
#include <<iostream.h>>
#include <wab.h>
typedef HRESULT (WINAPI *fWABOpen)(LPADRBOOK*,LPWABOBJECT*,LPWAB_PARAM,DWORD);
int main()
{
HRESULT hRes;
LPADRBOOK lpAdrBook;
LPWABOBJECT lpWABObject;
LPWAB_PARAM lpWABParam = NULL;
DWORD Reserved2 = NULL;
HINSTANCE hinstLib;
hinstLib = LoadLibrary("C:\\Program Files\\Common Files\\System\\wab32");
fWABOpen procWABOpen;
if (hinstLib != NULL)
{
procWABOpen = (fWABOpen) GetProcAddress(hinstLib, "WABOpen");
if (procWABOpen != NULL)
{
hRes = (procWABOpen)(&lpAdrBook,&lpWABObject,NULL,Reserved2);
_ASSERTE(hRes == S_OK);
if (hRes != S_OK) exit(1);
//lpWABObject->Find(lpAdrBook,NULL);
ULONG lpcbEntryID;
ENTRYID *lpEntryID;
hRes = lpAdrBook->GetPAB(
&lpcbEntryID,
&lpEntryID
);
_ASSERTE(hRes == S_OK);
if (hRes != S_OK) exit(2);
ULONG ulFlags = MAPI_BEST_ACCESS;
ULONG ulObjType = NULL;
LPUNKNOWN lpUnk = NULL;
hRes = lpAdrBook->OpenEntry(
lpcbEntryID,
lpEntryID,
NULL,
ulFlags,
&ulObjType,
&lpUnk
);
ulFlags = NULL;
//IABTable *lpTable;
if (ulObjType == MAPI_ABCONT)
{
IABContainer *lpContainer = static_cast <iabcontainer *="">(lpUnk);
LPMAPITABLE lpTable = NULL;
hRes = lpContainer->GetContentsTable(
ulFlags,
&lpTable
);
_ASSERT(lpTable);
ULONG ulRows;
hRes = lpTable->GetRowCount(0,&ulRows);
_ASSERTE(hRes == S_OK);
cout << "Rows " << ulRows << endl;
SRowSet *lpRows;
hRes = lpTable->QueryRows(
ulRows, // Get all Rows
0,
&lpRows
);
for(ULONG i=0;i<lprows->cRows;i++)
{
SRow *lpRow = &lpRows->aRow[i];
cout << i << " : " << lpRow->cValues << endl;
for(ULONG j=0;j<lprow->cValues;j++)
{
SPropValue *lpProp = &lpRow->lpProps[j];
cout << "\t" << j << " : " << (void*)lpProp->ulPropTag << " : ";
if (lpProp->ulPropTag == PR_DISPLAY_NAME_A)
cout << "Display Name: " << lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_EMAIL_ADDRESS_A)
cout << "Email Address: " << lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_NICKNAME_A)
cout << "Nickname: " << lpProp->Value.lpszA;
if (lpProp->ulPropTag == PR_ADDRTYPE_A)
cout << "Addrtype: " << lpProp->Value.lpszA;
cout << endl;
}
lpWABObject->FreeBuffer(lpRow);
}
lpWABObject->FreeBuffer(lpRows);
}
}
FreeLibrary(hinstLib);
}
return 0;
}
Best Wishes,
ez_way
|
|
|
|
|
This site keeps a list of many file formats.
http://www.wotsit.org/[^]
Roger Allen
Sonork 100.10016
Death come early, death come late,
It takes us all, there is no reason.
For every purpose under heaven,
To each a turn, to each a season.
A time to weep and a time to sigh,
A time to laugh and a time to cry,
A time to be born and a time to die.
Dust to dust and ashes to ashes,
And so I end my song.
|
|
|
|
|
Hello,
I need to play an avi file in my program using the media player activex control.I need to be able to indicate a starting frame and an end frame that the control will stop playing after reaching it.
Thanks in advance
|
|
|
|
|
Hail, dear colleagues.
I have a question about object identity.
Let's say I need to make an array of some objects. These objects (classes) will be defined by users of the library. So, I have to provide a base class with an interface and create an array of these objects. It's clear.
But when user creates a derived class and wants to get an object from the array, he should know about type of this object to be able to cast it back, because in this array objects of different types can be stored.
So, the question is, how to define identity of derived class? Should I implement something like IsKindOf() method and use runtime identification, like in MFC, or there are other ways to do so?
I have to mention that the only extension, which can be used, is STL. No MFC, nor any other platform depended libraries.
Thank you in advance for any suggestions.
|
|
|
|
|
Hail to you too, comrade.
The C++ standard provides something to solve this in the form of Run-Time Type Information (RTTI). For a starter you can look here[^]
|
|
|
|
|
I need to get all mountpoints of a partition (like D:\)
What i have is the physical drive id (e.g. "\\.\PhysicalDrive0") and the partition id.
The problem is that that i need to find out the unique volume name in the form "\\?\Volume{GUID}\" in order to be able to use the VolumeManagement functions. The problem is that i don't have the partition's drive name name and drives don't even have to be mounted. So what can i do to get the partition's GUID?
I could do it using DeviceIoControl with IOCTL_DISK_GET_PARTITION_INFO_EX but that's only XP and later and i need it to be working on 2k too.
If anyone has an idea, please let me know
Regards
webseek
|
|
|
|
|
Hi can u please tell me how to create ico file or what structure it has?
Thanks
|
|
|
|
|
Visual C++ 6.0 can create them, or a graphics prog like Xnview http://www.xnview.com/[^]
Try www.wotsit.org[^] for the ICO file format
"The greatest mistake you can make in life is to be continually fearing you will make one." - Elbert Hubbard
|
|
|
|
|