|
since he tried to assign the value to a CString, I thought that the node will be having a string value. But later when he said his CString is empty, I felt there is some thing wrong. so I suggested him to take the return into a _varient_t and check for the type.
|
|
|
|
|
thank you all the friends
I have to solve that problem
my English is so bad~~~~~
|
|
|
|
|
huke1987 wrote: CString strTime=childnode->getAttribute("Time");
better use _bstr_t bstVal = childnode->getAttribute("Time").bstrVal; , it has overloaded LPCTSTR, which could be used any where !
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
thank you ??
|
|
|
|
|
huke1987 wrote: ??
sometimes extra ?? is confusing [ ]
|
|
|
|
|
Hi
I want to know about SDk and API.
SDk - A set of tools and libraries for creating software applications
(Eg :Cbutton , Clist I think)
API – Application Programme Interface
(eg: CTime getting Date ,Time from OS)
at my knowledge I said this ,if this is wrong ignore and give me the
explanation about the SDK and API and give difference between them.
thanks
regards
shakumar
|
|
|
|
|
I think API refers just to "interface" to a system for example Operating System. So it will only include funtions exposed by a system. In case of windows we call it Win32 API. SDK on the other hand is a collection of tools, samples codes, documentation, wrappers, etc which helps to use API.
To program a system you don't have to use SDK, you can directly use the API to get the job done but SDK's make programming easy by hiding lot of detail not important in most cases.
-Saurabh
|
|
|
|
|
API - An acronym for Application Program Interface, the set of commands that an application uses to request and carry out lower-level services performed by a computer's operating system.
SDK - A set of library, header, and Help files that you use to write applications for a specific platform.
Regards,
Paresh.
|
|
|
|
|
Hi,
I have a Progressdialog on the center of which I have placed a CStatic control to display the Progress percentage.But when the dialog is resized the CStatic Control gets disapeared and so the percentage.
Can anybody help me out of it.
Thanks and Regards,
Purusottam Mishra
Purusottam Mishra
Systems Executive
|
|
|
|
|
|
Where/how did you create the static control?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
Actually the ProgressDialog is a subclassed from CProgressCtrl and the CStatic is placed on the top of it. Now When the progressbar proceeds it displays the progress percentage on the CStatic Control. During this process if the user resizes the window bu maximizing or restoring it, the CStatic gets disapeared.
I am unable to show the code for its bulkiness.
If you can help me otherwise, I would be really be very very thankful.
I had also made one sample application but the issue is not getting reproduced over there.
Thanks and REgards,
Purusottam Mishra
Purusottam Mishra
Systems Executive
|
|
|
|
|
Raj-Ekoham DwitiyoNasti wrote: Actually the ProgressDialog is a subclassed from CProgressCtrl and the CStatic is placed on the top of it.
At design time or run time?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Well, Run Time.
I have achieved Transparency of the CStatic now.
This is what my sample application has done
HBRUSH CStaticTestDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
// TODO: Change any attributes of the DC here
if(nCtlColor == CTLCOLOR_STATIC)
{
hbr = (HBRUSH)::GetStockObject(NULL_BRUSH);
pDC->SetBkMode(TRANSPARENT);
}
// TODO: Return a different brush if the default is not desired
return hbr;
}
And my ButtonClick handler is :
void CStaticTestDlg::OnBnClickedButton1()
{
TCHAR szBuff[200];
int i=0;
m_Progress.SetRange(0,100);
m_Progress.SetPos(0);
m_Progress.SetStep(1);
for(m_nNum=0;m_nNum<100;m_nNum++)
{
Sleep(1000);
m_Progress.StepIt();
_stprintf(szBuff, _T("%d"),m_nNum);
m_Static.SetWindowText( szBuff);
}
// TODO: Add your control notification handler code here
}
But Now the problem is that when the szBuff gets overwritten.
Can you please help me achieve removing overwriting.
If I use a WHITE_BRUSH in the OnCtlColor() then everything is fine only the CStatic remains no more transparent.
Plz Help!!
Thanks and Regards,
Purusottam Mishra
Systems Executive
|
|
|
|
|
Raj-Ekoham DwitiyoNasti wrote: Can you please help me achieve removing overwriting.
OnCtlColor() is not being used for anything. Comment it out and note the result.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
Thanks for the reply.
But, that's not the case. Please note my requirement first.
My Requirement is:
1. To make the CStatic Transparent with respect to the CProgressCtrl. The Scenerio is that CStatic is placed on the CProgressCtrl.
2. The Progress % should be displayed on the CStatic without overwriting the previous no. I.e. '1' should not get overwritten on '0' and so on.
OnCtlColor() makes the CStatic Transparent. So your statement is not valid here. The only problem is that only if I use any other brush than the HOLLOW_BRUSH/NULL_BRUSH...it works fine but Transparency is getting lost.
However I want to achieve both.
Thanks
Purusottam Mishra
Systems Executive
|
|
|
|
|
Are you wanting something like this? If so, don't use two controls; one will suffice.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks a lot. That was what I exactly wanted.
Thank You very much.
Regards,
Purusottam Mishra
Purusottam Mishra
Systems Executive
|
|
|
|
|
I am working at an Internet Explorer plug-in. (afp viewer plug-in)
I want to use the shortcut keys CTRL-R and CTRL-H to do some actions (reset view,...).
The problem is these keys are shortcuts for IE.
Is there a way to get the keyboard messages before they go to IE?
Or should I use other shorcuts?
|
|
|
|
|
Why do you want to mess up with those predefined shortcut keys? Using some key combinations of your own will be a wise idea. But that's just my opinion.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
My project manager wants to use these keys.
I suggested using other keys...
danginkgo
|
|
|
|
|
danginkgo wrote: My project manager wants to use these keys.
It is your duty to explain him that the user will be annoyed if your application overrides predefined shortcut keys. Secondly, explain him the complexities involved in doing it. It is not impossible, but it is not worth doing.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks. I'll try
danginkgo
|
|
|
|
|
Hi all,
1. How to show dialog such a way that it's Bottom-Right corner will at same position of Bottom-Right corner of Screen?
Also to show dialog at Top-Left corner of Screen?
2. How to hide application/dialog at the start of application?
Normally by calling this->ShowWindow(SW_HIDE); application get hidden.
But when I called this->ShowWindow(SW_HIDE); in OnInitDialog() function of dialog, application is still visible. What is the solution?
Regards,
Aniket A. Salunkhe
|
|
|
|
|
Do you want to set position of your dialog you can use of WM_SIZE with MoveWindow or SetWindowPos and also on this event you can use of ShowWIndow(SW_HIDE).
|
|
|
|