SetWindowText Error
-
TCHAR buffer[50]; long a=20; _ltoa(a,buffer,10); status->m_TOTAL_WORDS.SetWindowText(buffer);_**
**_
whitesky
-
Hi WhiteSky, Can u please also tell me how to change it int to char ?? TCHAR buffer1[50]; int f=INDX.getTotalFiles(); _ltoa(f,buffer,10); status->m_TOTAL_FILES.SetWindowText(buffer1);
very simple _ltoa(f,buffer,10); to itoa(f,buffer,10);_**
**_
whitesky
-
Hi WhiteSky, Can u please also tell me how to change it int to char ?? TCHAR buffer1[50]; int f=INDX.getTotalFiles(); _ltoa(f,buffer,10); status->m_TOTAL_FILES.SetWindowText(buffer1);
vinaycool wrote:
Can u please also tell me how to change it int to char ??
_ltoa
--[V]--
-
vinaycool wrote:
Can u please also tell me how to change it int to char ??
_ltoa
--[V]--
Hi VuNic _ltoa or itoa_**
**_
whitesky
-
vinaycool wrote:
Can u please also tell me how to change it int to char ??
_ltoa
--[V]--
_ltoa - Convert a long integer to a string. _itoa - Convert an integer to a string Knock out 'T' from CAN'T , You 'CAN' if you think you 'CAN' :cool:
-
very simple _ltoa(f,buffer,10); to itoa(f,buffer,10);_**
**_
whitesky
-
Hi VuNic _ltoa or itoa_**
**_
whitesky
Can u please also tell me how to change it int to char ?? TCHAR buffer1[50]; int f=INDX.getTotalFiles(); _ltoa(f,buffer,10); status->m_TOTAL_FILES.SetWindowText(buffer1); Oops, I misunderstood his question. I thought he was asking about the line that does the conversion.
--[V]--
-
_ltoa - Convert a long integer to a string. _itoa - Convert an integer to a string Knock out 'T' from CAN'T , You 'CAN' if you think you 'CAN' :cool:
pleast look at my reply to whitesky. And Btw, you can still use ltoa for converting ints to chars. int is not something totally different from long. but Only the size ;)
--[V]--
-
pleast look at my reply to whitesky. And Btw, you can still use ltoa for converting ints to chars. int is not something totally different from long. but Only the size ;)
--[V]--
Due to the differences in size of long and int C++ provides the seperate functions :) Knock out 'T' from CAN'T , You 'CAN' if you think you 'CAN' :cool:
-
Due to the differences in size of long and int C++ provides the seperate functions :) Knock out 'T' from CAN'T , You 'CAN' if you think you 'CAN' :cool:
-
Can u please also tell me how to change it int to char ?? TCHAR buffer1[50]; int f=INDX.getTotalFiles(); _ltoa(f,buffer,10); status->m_TOTAL_FILES.SetWindowText(buffer1); Oops, I misunderstood his question. I thought he was asking about the line that does the conversion.
--[V]--
yes:)_**
**_
whitesky