|
what does the msdn say about it ?
|
|
|
|
|
toxcct, I have read what MS has posted on MSDN. And the only relevent information I could find was that the return value would be ERROR_ALREADY_EXISTS, but that doesn't answer my question, or does it?
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
yes it does... returning a value means that it knows that case, and don't throw an exception.
moreover, know that the Win32 API is written in C, not C++, so exceptions are unknown in C.
|
|
|
|
|
Thank you toxcct, and thats why you are a MVP and I'm not ...
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
toxcct wrote: moreover, know that the Win32 API is written in C, not C++, so exceptions are unknown in C.
SEH in not a feature of standard C but that can be used in C on Microsoft systems and the OS does throw SEH exceptions at times (not in this case however).
Steve
|
|
|
|
|
Programm3r wrote: Would the CreateDirectory function throw an exception if the directory that it must create already exists?
No, It will return 0.
And GetLastError returns ERROR_ALREADY_EXISTS .
i.e.
BOOL bCreated = CreateDirectory(..);
if (bCreated ==FALSE )
{
if (GetLastError() == ERROR_ALREADY_EXISTS)
{
}
}
|
|
|
|
|
thanxs again prasad_som ...
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
|
|
|
|
|
hi,
i want to disable the radio button in a group...
have you got an idea?
please help me....
thanks...
Giulio
|
|
|
|
|
Disabling a radio button (or any window, for that matter) can be done by calling the object's EnableWindow() method with the parameter FALSE .
/ravi
|
|
|
|
|
CWnd::EnableWindow(FALSE);
|
|
|
|
|
Ing.Raiz82 wrote: i want to disable the radio button in a group...
have you got an idea?
I've used this class in the past for just such a requirement. It's easy to use.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
|
yes i understand...
but i resolved with
GetDlgItem(IDC_CHECK)->EnableWindow();
thanks....
Giulio
|
|
|
|
|
Are you smoking drugs? If so, can I have some?
|
|
|
|
|
|
AAAAaaawwww man, thats's too strong for me. Do you have anything VB wise?
|
|
|
|
|
GetDlgItem(IDC_CONTROL_ID)->EnableWindow(FALSE);
-- modified at 15:07 Tuesday 20th February, 2007
Why was that voted a 2? The answer is correct.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
hi all,
i am doing my final year project on face detection using webcam in VC++ and am finding some problems in coding..
could you all please help me..
|
|
|
|
|
mannur wrote: finding some problems in coding..
could you all please help me..
We'd love to help if we can, but you'll need to be more specific. What sort of problems are you having?
/ravi
|
|
|
|
|
mannur wrote: ...and am finding some problems in coding..
Where are you finding these problems?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Can some one help me , how this program XGraph works, I am not able to get out the demo program working , or can anyone help me by giving some sample program, or some documentation.
Thanx in advance.
rams
|
|
|
|
|
|
1- no, we all are using Turbo Pascal.
2- does not install on Vista, I'm still using Win 3.1
3- no applicable.
|
|
|
|
|
Maximilien wrote: 1- no, we all are using Turbo Pascal.
2- does not install on Vista, I'm still using Win 3.1
3- no applicable.
But I dont know why you get Score: 1.6 (5 votes)
And what questions?
|
|
|
|