|
I want to burn the data in DVD using the inbuit software in windows xp operating system.How to do it. I want to do in vc++ dialog based application.
|
|
|
|
|
Check this[^]
The next time, please make a search first here in Codeproject before posting a question.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
modified on Friday, March 14, 2008 8:35 AM
|
|
|
|
|
Hi all...
How can i disable OK button from property sheet??
I want OK button to enable when user make some changes...
It's Non MFC..
Thanks
Ash..
|
|
|
|
|
Have you tried using EnableWindow() ?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
I tried...
But What would be identifier for OK Button??
As OK,Cancel and Apply button comes when i create Property sheet.
I tried this
EnableWindow(GetDlgItem(hPWnd,PSBTN_OK),FALSE);
Guide me to find the identifier of OK button..
Thanks.
Ash..
|
|
|
|
|
Ashish Chauhan wrote: I tried this
EnableWindow(GetDlgItem(hPWnd,PSBTN_OK),FALSE);
So, what happened when you tried that? Did it compile? Did it run? Did it give the expected result?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
It compiled..It run but it did not gave expected result..
I try to find the error with the help of GetLastError and it comes to 1400 that is "Invalid window handle"
But i'm sure hPWnd is Property sheet Handle.
Do i need to pass something else??
Ash..
|
|
|
|
|
EnableWindow(GetDlgItem(hPWnd,PSBTN_OK),FALSE);
use IDOK inplace of PSBTN_OK. and should do after the dialog is created say in WM_INITDIALOG handler.
Ashish Chauhan wrote: But i'm sure hPWnd is Property sheet Handle.
It is not the hPWnd is invalid, since GetDlgItem() returns a invalid handle EnableWindow end up with error.
If you are going for modeless property sheet, you can create your own dialog box layout.
|
|
|
|
|
Ashish Chauhan wrote: But i'm sure hPWnd is Property sheet Handle.
GetLastError() returned 1400 (invalid window handle), because GetDlgItem() failed. And Rajkumar has already explained why it is so. Is the problem solved now?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Yep..It works..
Thanks Rajesh and Rajkumar...
If possible can you tell me what's the identifier for Apply Button??
Ash..
|
|
|
|
|
Ashish Chauhan wrote: what's the identifier for Apply Button??
ID_APPLY_NOW
Please do a Google and CP Search, before asking very simple questions. An instant search got me the following result:
Hacking the CPropertySheet[^]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
if you are looking for disabling APPLY button, have a look at PSM_CHANGED and PSM_UNCHANGED message.
|
|
|
|
|
Yeah..
PSM_UNCHANGED..That's what i looking for...
ID_APPLY_NOW didn't work..
Error shows undeclared variable..
Neverthless Problem solved..
thanks..
Ash..
|
|
|
|
|
What about EnableWindow ?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
How to get foder size?
eg:there is a folder "new" in c:\\ i want to get size of this folder how to get this in VC++ dialog based application.
|
|
|
|
|
sushildaga1984 wrote: How to get foder size?
eg:there is a folder "new" in c:\\ i want to get size of this folder how to get this in VC++ dialog based application.
find size of all files of folder and add them. It gives you folder size.
|
|
|
|
|
sushildaga1984 wrote: How to get foder size?
Are you wanting the size of the folder itself, or the size of all files in the folder?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Since it's just an entry in the FAT or MFT, I can only assume it's the size of an allocation unit (e.g., 4KB). Although on an NTFS volume, folder names just might be "resident data" in the MFT itself and not consume any clusters.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi EveryOne,
i am adding one method from classwizard.in that i am having parameter list.i want parameter of types CString But in this WE dont have Cstring type so i used BSTR Type.
BOOL ReadBlk(BSTR FAR* MemId, BSTR FAR* MemName, BSTR FAR* eDate, BSTR FAR* Balance, BSTR FAR* TagId);
and when i am setting values to this i am getting error. please tell me how can get string type variable in that classwizard. please help me.
i am becoming
REPLY ME SOON.
THANKU,
savitri
|
|
|
|
|
savitri wrote: i want parameter of types CString But in this WE dont have Cstring type so i used BSTR Type.
you can just type the name of any data type if your required type is not there, type CString in the parameter type field.
|
|
|
|
|
Well, if you need a CString the type CString in the parameter type box (the wizard not impose you choosing one of the combo items).
You can also edit the generated code.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
HI EVERYONE,
thanks for answering my question.but i tryed it.i will not taking.CLASSWIZARD->AUTOMATION->ADD METHOD->external name as reader->internal name as reader->return type long and parameter list strPort as CString i want like this but in this CString is not present so i choosen LPSCSTR. if i want OPTIONAL PARAMETER how can i do it while defining the method. bacause some i wont pass the parameter so i want that parameter as optional.please tell me how can i use it.
REPLY ME SOON.
THNKU,
savitri
|
|
|
|
|
Why don't you edit the generated code and change LPCSTR to CString (both in function declaration and definition)?
To set the last parameter as optional, assign it in the declaration, for instance:
function declaration (header file)
int foo( int i, bool f, CString szMsg = _T("Hi"));
function definition (source file)
int foo( int i, bool f, CString szMsg )
{
}
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
if i do like this shall i call that function in my program directly as foo(x,y); is it ok or it will give error or what. reply me.
thanku,
savitri
|
|
|
|