|
Hello Prasad,
thanks wery much, that is
regards
break;
|
|
|
|
|
Hi All
I am converting my non-unicode project to unicode , in this case when i compiling my code i get errors where char data type is used, so does it means that i can not use char data type in unicode? Is it necessary to convert all char. variables to wchar_t or TCHAR variables.
Thank you
Atul Mahajan
Atool
|
|
|
|
|
M. Atul wrote: can we use char datatype in unicode
Yes, it depends on what you plan to do with a char in a UNICODE build, every(almost all) WIN32 api function has two variants A and W (e.g. SetWindowTextA and SetWindowTextW ) xxxW version is called if unicode is defined other wise xxxA if you pass char to xxxW then it will not compile, keeping that in mind if you want to store an 8 bit value and check its individual bits there is nothing stopping you from doing that in a UNICODE build IMHO.
If you think you can than you can, if you think you can't you are right.
|
|
|
|
|
M. Atul wrote: ...i get errors where char data type is used...
You'll need to use wchar_t or TCHAR instead.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
This is a problem which i have been facing for a long time.
Now i found a new thing in it (a step ahead) that i am getting an error below....
BOOL CWnd::DestroyWindow()
{
if (m_hWnd == NULL)
return FALSE;
CHandleMap* pMap = afxMapHWND();
ASSERT(pMap != NULL);
CWnd* pWnd = (CWnd*)pMap->LookupPermanent(m_hWnd);
#ifdef _DEBUG
HWND hWndOrig = m_hWnd;
#endif
#ifdef _AFX_NO_OCC_SUPPORT
BOOL bResult = ::DestroyWindow(m_hWnd);
#else //_AFX_NO_OCC_SUPPORT
BOOL bResult;
if (m_pCtrlSite == NULL)
bResult = ::DestroyWindow(m_hWnd);
else
bResult = m_pCtrlSite->DestroyControl();
#endif //_AFX_NO_OCC_SUPPORT
if (pWnd != NULL)
{
#ifdef _DEBUG
ASSERT(pMap->LookupPermanent(hWndOrig) == NULL);
#endif
}
else
{
#ifdef _DEBUG
ASSERT(m_hWnd == hWndOrig);
#endif
Detach();
}
return bResult;
}
What does it mean and What i have to do?
KIRAN PINJARLA
|
|
|
|
|
Here i found a similar question in codeguru forum [^]. But did not understand the answer given by Jonny Poet.
He said
open the 'Calling list Viewer' ( I dont know the english exact word),
where you can see all the calls which have been done to get to this point.
In that list you look backword this list to find the next point where there is
a name of a function of your program This was then obviously the point
where from it comes.Before that you set your breakpoint.And then you will se why
this happens.
what does he mean by the 'Calling list Viewer' and where can i get that?
-- modified at 6:09 Wednesday 10th January, 2007
KIRAN PINJARLA
|
|
|
|
|
He means the stack trace window. When visible, it's located in the lower left corner in VS6.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
How are you creating the CWnd object on stack or via new operator?
If you think you can than you can, if you think you can't you are right.
|
|
|
|
|
I have an application which need to invoke MSDN (local) and providing it an argument, such that the effect is the same as if we manually opened MSDN and looked up the "argument" in MSDN.
How do I achieve this?
Cutebug
|
|
|
|
|
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????
|
|
|
|