|
coda_x wrote:
I have 3 checkboxes, if i put 1st one under group, does that mean that i can only select one box at any one time, just like in radio buttons?
No. Check boxes are completely independent.
coda_x wrote:
Also, for radio buttons, are they assigned button1 = -1, button 2=0, button3=1 and so forth?
No. They start from 0 (button 1=0, button 2=1 etc...)
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
I have a very primitive question on C++.
If I want include a library I use #include
say, #include <iostream> , iostream header file all I/O functions are declared.
But Including a Standard C++ header does not introduce any library names into the current namespace. For that we have to use
using namespace std;
What does this mean? Does it mean in namespace std all the functions in standard library files are defined and that's why we need that?
|
|
|
|
|
Binayak wrote:
using namespace std;
What does this mean? Does it mean in namespace std all the functions in standard library files are defined and that's why we need that?
Yes.
Having the using statement means that you don't have to qualify each individual std name e.g. std::cout << "Hello world" << std::endl
Lets be honest, isn't it amazing how many truly stupid people you meet during the course of the day. Carry around a pad and pencil, you'll have twenty or thirty names by the end of the day - George Carlin
Awasu 1.2.1 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
hi 'binayak',
so, to help you, i would say that the C++ standard includes some classes and functions into the std namespace.
In fact, be careful to the diference between the folowing directives :
<font style="color:green;">
<font style="color:blue;">#include</font> <iostream>
<font style="color:green;">
<font style="color:blue;">#include</font> <iostream.h>
so, if you use std:: and you don't want to call it each time you want a function defined inside (for example cout << "Hello world !" instead of std::cout << "Hello world !" ) you'd prefer the command line
<font style="color:blue;">using namespace</font> std;
Clearly, it tells to the compiler that it will have to look inside the std:: to find the called function.
you could also do this if you don't want all the standard namespace to be used implicitly :
<font style="color:blue;">#include</font> <iostream>
<font style="color:blue;">void</font> main (<font style="color:blue;">void</font>) {
<font style="color:blue;">using</font> std::cout; <font style="color:green;">
cout << "Hello world !";
}
hope that's more clear now
TOXCCT alias Nicolas C.
|
|
|
|
|
so, to help you, i would say that the C++ standard includes some classes and functions into the std namespace.
In fact, be careful to the diference between the folowing directives :
No. The iostream.h library is only the Microsoft fake of STL iostream and now is obsolete.
so, if you use std:: and you don't want to call it each time you want a function defined inside (for example printf("Hello world !") instead of std::printf("Hello world !")) you'd prefer the command line
printf is a function from stdio.h , not iostream .
Robert-Antonio
"Love without sex is like a fish without antlers"
|
|
|
|
|
We have an application running on Windows 2000 that uses shell commands to write to the CD (VC++ 6.0). We are now running on Windows XP and the shell commands no longer appear to work for XP. Is there any simple way to write to the CD from our application without using a 3rd party product?
Thanks! rwaca
|
|
|
|
|
I have some problem with pointers, converting project from VC 6.0 into VS. net. There are no build errors or warnings, just results aren't right. I heard that is one of setting in VS .net which can slove this problem... if anyone knows, please help.
tnx
|
|
|
|
|
i get the handle of a textbox in an opened window using the function
EnumChildWindows(,,)..
after i obtained the handle of this textbox i want to set a specific
string in this textbox.
"HINT" : the function SetWindowText(,) isn't a valid to this task(why?)
more--->
the opened window has a textbox ,a button ,a label;
and when i used the spy++ program of Microsoft tools to get the caption
to each of them after using SetWindowtext(,),i observed that:
the caption of the label is same as the value appears on it<the
caption="" and="" value="" appears="" are="" equal="" to="" each="" other="" the="" string
posted="" by="" setwindowtext()=""> ,BUT
the caption of the textbox isn't the same as the value appears on it
<the value="" is="" nothing="" but="" the="" caption="" equal="" to="" string="" posted="" by=""
setwindowtext()="" function="">then i want an API function to set the value of the textbox not the
caption..
thank you very much for any help..
Sender :Amr abdel mohsen
Email: app_prog@yahoo.com
Hawk,amr
|
|
|
|
|
SetWindowText() should work if it's a standard CEdit control (which happens to be derived from CWnd). It's possible that the control is handling the WM_SETTEXT message in a custom manner.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I have a dialog box with a numeric edit control, and I would like to know how to get the control to allow the '-' character so you can input negative numbers as well as positive ones.
Can anyone help,
Thanks
|
|
|
|
|
|
I have one application that will start 4 instances of another application.
I would like the Windows of these 4 other programs be cascade in a neat order.
I have tried to do the following:
// Start 1st program at 0,0; si[] i an array for the 4 programs
GetStartupInfo(&si[0]);
si[0].dwX = 0;
si[0].dwY = 0;
CreateProcess(NULL, "c:\\Program Files\\My Programs\\IDU xxx\\IDU_.exe 1", // Name of app to launch
NULL, // Default process security attributes
NULL, // Default thread security attributes
FALSE, // Don't inherit handles from the parent
0, // Normal priority
NULL, // Use the same environment as the parent
NULL, // Launch in the current directory
&si[0], // Startup Information
&pi[0]); // Process information stored upon return CW_USEDEFAULT
This is repeated for the other 3.
Any suggestions?
|
|
|
|
|
sweep123 wrote:
I have tried to do the following:
And what results are you getting?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I get 4 Windows is a sort of tile fashon, but not in the correct order; 3, 4, 2 and the 1.
|
|
|
|
|
I am having this linking error
--------------------Configuration: facedetect - Win32 Release--------------------
Linking...
LINK : fatal error LNK1181: cannot open input file "fltk.lib"
Error executing link.exe.
I have found the file but it must select a format to open the file in
I open using notepad but i cabt read the code
I have already included in the include file directory
What should i do
|
|
|
|
|
Goh Hui Beng wrote:
Linking...
LINK : fatal error LNK1181: cannot open input file "fltk.lib"
Error executing link.exe.
The linker is telling you it can't find 'fltk.lib'.
You need to either specify the full path in your linker options or add the path to the lib directory in the options. (In VS6 this is Tools->Options->Directories)
Michael
But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you? - "The Stranger," Billy Joel
|
|
|
|
|
I tried adding to the directory le but still cannot
Could there be other reasons?
Thx for your reply
|
|
|
|
|
i need to have the program give cents, setpercision(2) gives me an endless loop of the dollars, and no cents.
|
|
|
|
|
setprecision sets the count of valid numbers, not the count of numbers after the point. So when you write for example 144.39, the output would be 140.
The best solution is to store the currency in a class
class currency
{
int dollars, cents;
}
and define the operators +,-,*,/,<<,>> etc. there.
Robert-Antonio
"Love without sex is like a fish without antlers"
|
|
|
|
|
thank you!
Я люблю русский язикь!
|
|
|
|
|
I have been able to get most of the previously published answers to this question to work with Files and with Resources. I am not able to get the
methods working with a BitMap that has been placed in memory (buffer).
The bitmap would have been read into memory from a file, or placed in memory by a conversion routine, so only a pointer to the buffer is available.
Can anyone help?
fjayf
|
|
|
|
|
Are you refering to a BITMAP structure, in which case take a look at CBitmap::CreateBitmapIndirect(LPBITMAP lpBitmap) .
Or are you refering to a HBITMAP , in which case you can use CBitmap::FromHandle(HBITMAP hBitmap) .
Or are you refering to a BITMAPINFO structure, in which case you can use CreateDIBitmap() and CBitmap::FromHandle() .
Sonork 100.11743 Chicken Little
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
Within you lies the power for good - Use it!
|
|
|
|
|
I installed the macro as described,after the installation,my program is not working and I am getting an error message
"The ImageGui.exe file is linked to missing export GDIPLUS.DLL:GdiplusShutdown"
After that
Couldnot execute: A device attached to the system is not functioning{Win32 error 31)
ImageGui is my program.
Will this macro helps to give intellisence to the GdiPlus object?
I checked the GdiPlus check box in the Loaded Files but I dint find the 'Bob's your uncle ' check box in the loaded files.
Hope u will help me in solving the problem.
|
|
|
|
|
|
Hello
I have a problem creating menus in a CPropertySheet (tabbed dialog session) ...
Any ways to go about doing that?????? Why doesnt the menu show up?????
Thanks!~~
*** The Power of Belief ***
|
|
|
|