|
the answer was right there, just couln't find it,... thank you...
|
|
|
|
|
Press Control +D
Best Wishes,
ez_way
|
|
|
|
|
HI All
How to gray checkbox in tree control.
Thanks
Shiv
|
|
|
|
|
I hope my program can display check boxes by reading configuration files.
But how to add the check box control dynamically?
|
|
|
|
|
|
Is there any valid reason in 2003 to use unions in C++?
thanks
|
|
|
|
|
'Cause there is union keyword.
|
|
|
|
|
I was going to say no reason but as I think of it I wrote my own Variant like object with extended functionality that was a union of 10 different types without a union the code would have been more complicated.
John
|
|
|
|
|
In many cases, it's a bad idea (including some cases in which it's used in the Windows API), but it has its uses. One such use would be if you wanted to have a color as a 32-bit integer, but wanted to easily be able to extract the red, green, and blue out of that integer. (Well, maybe that use isn't the best example, but there are good uses that are similar to that.)
"I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use." -- Galileo Galilei
FLUID UI Toolkit | FloodFill in C# & GDI+
|
|
|
|
|
what's wrong with a little bit-bashing?
UINT col = 0xFFCC00;
int red = (col & 0xFF0000) >> 16;
int green = (col & 0x00FF00) >> 8;
int blue = col & 0x0000FF;
cout << "r: " << red << " g: " << green << " b: " << blue;
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
yep!!
there are valid reasons !!
but as 2003 is about to end....
so answer will not give u much benifit....
u will again ask this ques..in 2004
so lets wait for new Year.
Happy new year in Advance
take care
Abhishek Srivastava
Software Engg (VC++)
India ,Noida
Mobile no 9891492921
|
|
|
|
|
Examples (pls anyone correct me if I used union unnecessarily):
1. GetDlgItem returns a handle to a control. See the description:
The pointer returned is usually cast to the type of control identified by nID
It's great, but this handle can be that of a button, a static text, etc. You need to redefine (in this case "refine") the definitions.
2. You have a string and want to analyze parts of it (old-timers: think of the concept "record").
3. You want to read or write data to the registry; the buffer has to be defined as BYTE or char, but your actual data is not compatible with that.
I think the union is an indispensable feature.
|
|
|
|
|
Hi,all.
I'm a Chinese college student.I'm studying Computer Sciene in a school in China.
The problem is almost all school use Turbo C 2.0 as the main compiler when they teach C language course. And thus, almost all beginners think the Turbo C is the essence of learning C language,and they start by using it.Still a lot of people think that Turbo C is the main developement tool.And for C++ beginners , they also think that they should beginner with Turbo C.
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?
|
|
|
|
|
There is no real reason to use Turbo C. I used it 10 years ago. Compared to Visual Studio or Borland Builder it is quite primitive with just the basic stuff and does not have any RAD at all. I don’t even believe you can make a 32 bit windows program with that version so it's use is limited. But I bet you can get it very cheap.
John
|
|
|
|
|
yndfcd wrote:
almost all school use Turbo C 2.0 as the main compiler when they teach C language course
Why don't the use GCC? Its modern, and is crossplatform, and its *free*.
<political statement>Oh well, this is China. Officials might not like things that are free</political statement>
Who is 'General Failure'? And why is he reading my harddisk?!?
|
|
|
|
|
What is GCC ?
is it available for download ?
|
|
|
|
|
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.
|
|
|
|
|