|
This[^] article may help you. I am not sure though.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
cutebug wrote: need to invoke MSDN (local) and providing it an argument
Which version? I got to imagine it's the same as opening any other HTML help.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
|
|
|
|
|
|
Hello comunity,
i have a Date stored in an CString, is there any way to convert them to
Date, or CTime or COleDateTime datatype??
thanks
break;
|
|
|
|
|
Try using
COleDateTime::ParseDateTime();
|
|
|
|
|
Hello,
here is the format of my date string:
Thu, 13 Oct 2005 08:31:51 GMT
I try to do this like:
<code>
CString csDate = L"Thu, 13 Oct 2005 08:31:51 GMT";
COleDateTime oleTime;
</code>
i know how to parse that string manualy, but i hope that there is an internal function
to do this!
this should be new format of them:
2005-10-13
I just need the date from this string, not the time and other text likt "Thu" etc.
regards
break;
|
|
|
|
|
Hi,
when i remove "Thu" and "GMT" that works!
So i delete all before "," and remove GMT!
And i get a valid date!
regards
break;
|
|
|
|
|
|
Defenestration wrote: http://www.grinninglizard.com/tinyxml/[^]
i Find tinyXML quite useful, but you can try ur hand in CMarkup too!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
tinyXML and CMarkup i have used both in production code, use CMarkup if you require a small footprint.. tinyXML is more complete.
If you think you can than you can, if you think you can't you are right.
|
|
|
|
|
Hi All
I want to run my project in Visual studio 2005(C++) which was developed in Visual Studio 6.0 (C++). So what change i need to do in my project.
Thanks
Atul
Atul
|
|
|
|
|
M. Atul wrote: I want to run my project in Visual studio 2005(C++)
Sorry, I'm a little bit confused here. You probably meant that you want to open and compile your project with VC2005, right ?
Well, it depends of the type of project (and also depends of the code itself). Normally, if you open your .dsw file with VC2005, it will start a conversion wizard that will do the conversion of the project for you. Normally it should work correctly. If you still have problems, tell us where exactly the problems are.
|
|
|
|
|
Depends on how good your code was. It's very possible that portions of your code won't compile, or at least give new warnings.
But, in the first instance, you can open and build it via the conversion wizard, which is automatic, just open the DSW
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Hello All,
I have a Combo Box IDC_COMBO, & in the Combo Box Properties (data) , I have added 1,2,3 --- till 10 numbers.
And in the code I have used below code to set the default Combo box value to 0.
case WM_INITDIALOG:<br />
{<br />
HWND hwndCombo = GetDlgItem(hwnd, IDC_COMBO);<br />
SendMessage(hwndCombo,CB_SETITEMDATA,0,0);<br />
}<br />
break;<br />
Now the problem is its not showing the default value 0 on the dialog load and also combo box is empty ..its has no data ……its not showing numbers 1,2, ---10...
Can anyone please help me & tell what is wrong ??? in the above code.
Thanking you,
Suresh HC.
Edit/Delete Message
|
|
|
|
|
In the property window of combobox you insert 1,2,3 or 1;2;3;
|
|
|
|
|
Hello WhiteSky,
Thanks for the responce,
i did that added again 1,2,3,4 but still its not diaplying them , combo box has no data its empty.
can u please tell what is wrong here????
|
|
|
|
|
|
No its not working I tried with both , and also ; . actually I am working on win32 api and not MFC.
|
|
|
|
|
If you use of CB_ADDSTRING for insert data to combobox instead property window what happens?
|
|
|
|
|
Whitesky cant we enter the default data in the combo box which we do in the MFC, where we enter the data in properties..
In api I have to enter each data to the combo box by code ??? using add string ??
|
|
|
|
|
Suresh H wrote: And in the code I have used below code to set the default Combo box value to 0.
case WM_INITDIALOG:
{
HWND hwndCombo = GetDlgItem(hwnd, IDC_COMBO);
SendMessage(hwndCombo,CB_SETITEMDATA,0,0);
}
break;
You are using wrong message for setting value.CB_SETITEMDATA is used to set item data for particular index.
I'm not clear about your wording, I'm assuming that you want first value to be selected and default selection.
You do this by using,
HWND hwndCombo = GetDlgItem(hwnd, IDC_COMBO);
SendMessage(hwndCombo,CB_CB_SETCURSEL,0,0);
|
|
|
|
|
Hello Prasad,
Thanks for the responce.
<br />
HWND hwndCombo = GetDlgItem(hwnd, IDC_COMBO);<br />
SendMessage(hwndCombo,CB_SETCURSEL,0,0);
Actually I have added numbers from 0– 10 in the Combo box properties under data.
After the dialog load combo box is empty no values in that . can u plz tell me what is wrong ???
Yes I want the default value to be selected to 0.
|
|
|
|
|
That properties page where you enter the initial data for the combo box only works in MFC apps.
|
|
|
|
|
|
Hello Friends
Can any body on the forum
Could help me out in knowning how can one Send a file through UDP.
Is there any specific function for the doing the same, or any separate mechanism
is required.
My following requirement is for VC++ 7.1/6.0
Girish
Software Developer
|
|
|
|