|
ThatsAlok wrote: When
Still I haven't given him, You wanna have it??
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
VuNic wrote: You wanna have it?
your Wish, Sir!
"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
|
|
|
|
|
I tried but it said, "You cannot vote to yourself" .. that certainly means putting it on my own head!. But still I dont forgot how you got the fear out of me about MFC/ATL. I'll never forget that . thanksI know you dont like "thanks".
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
VuNic wrote: that certainly means putting it on my own head!. But still I dont forgot how you got the fear out of me about MFC/ATL
leave it man, Thats your Hardwork and your Desire to Learn,i have done nothing!
"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
|
|
|
|
|
Possible a bit bluntly put, but true nevertheless.
Steve
|
|
|
|
|
ppatel567 wrote: May be thats why you are just stuck with "C" )
I believe, you might checkout his profile for same!
"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
|
|
|
|
|
ppatel567 wrote: stuck with "C"
I hope ritchie is not reading it. Otherwise he'd take the senses outa you!
NULL
|
|
|
|
|
Are you possibly refering to alloca? I don't think that it was ever in the C standard, but most compiler implmentations (including Visual Studio) do provide it. Given that VS (at least through 2003) does not support local array declaration with a variable number of elements, it is occasionally useful.
|
|
|
|
|
Situation is following. Program use raster font (.fon) to display data with standard ASCII, but it also use some special characters (char code less than 32) to display some symbols. Reason why we use raster font is fact that we want to keep WYSIWYG because result of this software at the end go to one embedded system with LCD display, which have exactly the same font inside.
Well, everything looks fine until you turn on ‘far east languages’ support on Windows XP (same operation on Windows 2000 doesn't cause this problem)
In this situation, Windows suddenly refuse to display characters with codes starting from 16 to 31. In fact, characters are displayed, but not from desired raster font but from some other font…
I try to create this font on more different ways and trying to display it using ExtTextOut or DrawText but those characters are always the same – wrong.
Removing far east language support restore previous valid situation and everything work well again.
I know that this combination is little bit strange and unusual but I’ll be grateful if anyone has some idea how to avoid this problem.
Thnx in advance
|
|
|
|
|
Hi, i have a value
CString p = flocation;
i want to store it in a list box in the 2 col
lvi.mask = LVIF_TEXT;
lvi.iItem = 0;
lvi.iSubItem = 1;
lvi.pszText = "value here";
m_INDEX_INFO_LIST.SetItem(&lvi);
can anyone tell how to do that ?? i tryed with lvi.pszText = p but its giveing error, can anyone help me with this.
Regards,
Vinay Charan.
-- modified at 6:27 Tuesday 16th May, 2006
|
|
|
|
|
CListBox or CListCtrl?
whitesky
|
|
|
|
|
Hi WhiteSky,
Its CListBox.
|
|
|
|
|
Hey vinay,
There is no such method like SetItem() for CListBox
but For CListCtrl it is avilable..
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Oops its CListCtrl only ....
|
|
|
|
|
here is another simple code in which i added two columns and added the data using InsertItem and SetItemText API's
m_test.InsertColumn(0,"hi",LVCFMT_LEFT,100);
m_test.InsertColumn(1,"bye",LVCFMT_LEFT,100);
m_test.InsertItem(index,"");
m_test.SetItemText(index,0,"HI");
m_test.SetItemText(index,1,"Bye");
where index is Listcontrol Item Index where you can add the Item from 0 to n
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
for CListBox use
AddString or InsertString
whitesky
|
|
|
|
|
of course CListCtrl
if you get error you can use
(0)if you use vs2005 use lvi.pszText = LPTSTR(p );
----------------------------------------------
(1) if vs2003 then use
lvc.pszText = CA2T(strItem);
---------------------------------------------
(2) LPCTSTR m_str;
m_str="test";
lvi.pszText = (LPTSTR)m_str;
--------------------------
(3) TCHAR m_str[20];
m_str[0]='\0';
strcat(m_str,"test");
lvi.pszText = (LPTSTR)m_str;
--------------------------
(4) LPTSTR m_str;
m_str=(LPTSTR)LocalAlloc(LPTR,256);
strcat(m_str,"test");
lvi.pszText = m_str;
---------------------------
whitesky
-- modified at 7:10 Tuesday 16th May, 2006
|
|
|
|
|
Hi Whitesky,
got the solution thank u very much. i used
LPCTSTR p = flocation;
lvi.mask = LVIF_TEXT;
lvi.iItem = 0;
lvi.iSubItem = 1;
lvi.pszText = (LPTSTR)p;
m_INDEX_INFO_LIST.SetItem(&lvi);
its working...
|
|
|
|
|
Hey,
nice information
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
Thanks
whitesky
|
|
|
|
|
Hi WhiteSky,
one more dout i want to store the date & time in the 4th col how to do that ??
how to access the current time and date and store it in a variable and pass it to col 6th ??
lvi.mask = LVIF_TEXT;
lvi.iItem = 6;
lvi.iSubItem = 1;
lvi.pszText = "16/05/06 4:59 PM"; // In this format only ??
m_INDEX_INFO_LIST.SetItem(&lvi);
|
|
|
|
|
|
Hi,
I am not getting the solution can u tell me
COleDateTime dateTest;
dateTest = COleDateTime::GetCurrentTime();
lvi.mask = LVIF_TEXT;
lvi.iItem = 6;
lvi.iSubItem = 1;
lvi.pszText = "16/05/06 4:30 PM";
m_INDEX_INFO_LIST.SetItem(&lvi);
|
|
|
|
|
CString str;
SYSTEMTIME st;
GetLocalTime(&st);
str.Format("%d:%d:%d:",st.wHour,st.wMinute,st.wSecond);
whitesky
|
|
|
|
|
CString str;
SYSTEMTIME st;
GetLocalTime(&st);
str.Format("%d:%d:%d:",st.wHour,st.wMinute,st.wSecond);
lvi.mask = LVIF_TEXT;
lvi.iItem = 6;
lvi.iSubItem = 1;
lvi.pszText = (LPTSTR)str;
m_INDEX_INFO_LIST.SetItem(&lvi);
Can u please also tell how to pass it to list box ?
i tryed the above code its giveing error...
|
|
|
|