concatenate strings with long
-
how to concatenate strings with longs for example if i want to do that: long j=5; MessageBox("the number is"+J+"apples");
-
how to concatenate strings with longs for example if i want to do that: long j=5; MessageBox("the number is"+J+"apples");
You can use printf for that:
char szBuffer[50];
sprintf(szBuffer,"the number is %i apples",J);Take a look at sprintf[^] and format spec[^] in the MSDN for more details.
Cédric Moonen Software developer
Charting control -
how to concatenate strings with longs for example if i want to do that: long j=5; MessageBox("the number is"+J+"apples");
See
CString::Format
andwsprintf(...)
_**
**_
WhiteSky
-
how to concatenate strings with longs for example if i want to do that: long j=5; MessageBox("the number is"+J+"apples");
Also you can use CString class as, CString str(""); LONG l = 5; str.Format("The Number is %ld Apples", l); MessageBox(str);
Do your Duty and Don't expect the Result