Click here to Skip to main content
15,881,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Third Party Controls Pin
Nibu babu thomas26-Feb-06 19:14
Nibu babu thomas26-Feb-06 19:14 
GeneralRe: Third Party Controls Pin
swaapu26-Feb-06 19:29
swaapu26-Feb-06 19:29 
GeneralRe: Third Party Controls Pin
Nibu babu thomas26-Feb-06 19:33
Nibu babu thomas26-Feb-06 19:33 
Questionhow to notify COM class in another class Pin
brygid26-Feb-06 18:55
brygid26-Feb-06 18:55 
Questionstring concatenation Pin
Kranti125198426-Feb-06 18:47
Kranti125198426-Feb-06 18:47 
AnswerRe: string concatenation Pin
Nibu babu thomas26-Feb-06 19:08
Nibu babu thomas26-Feb-06 19:08 
AnswerRe: string concatenation Pin
Vinaya26-Feb-06 19:23
Vinaya26-Feb-06 19:23 
AnswerRe: string concatenation Pin
Johann Gerell26-Feb-06 19:56
Johann Gerell26-Feb-06 19:56 
Assuming that you by char[] really mean std::string (because you're a conscious[1] developer that avoids bald arrays and pointers if possible, right? Wink | ;) ), then do like this:
std::string ToString(unsigned long value) // Put this function in your local vault.
{
    char buffer[33];  // '33' comes from the _ultoa documentation.

    return std::string(_ultoa(value, buffer, 10));
}

std::string concatenated(original.append(ToString(value)));


[1] Conscientious?

--
The Blog: Bits and Pieces

-- modified at 5:09 Monday 27th February, 2006
GeneralRe: string concatenation Pin
Ryan Binns26-Feb-06 21:53
Ryan Binns26-Feb-06 21:53 
GeneralRe: string concatenation Pin
Johann Gerell26-Feb-06 23:27
Johann Gerell26-Feb-06 23:27 
GeneralRe: string concatenation Pin
Ryan Binns26-Feb-06 23:32
Ryan Binns26-Feb-06 23:32 
GeneralRe: string concatenation Pin
PJ Arends26-Feb-06 22:35
professionalPJ Arends26-Feb-06 22:35 
GeneralRe: string concatenation Pin
Johann Gerell26-Feb-06 23:29
Johann Gerell26-Feb-06 23:29 
AnswerRe: string concatenation Pin
David Crow27-Feb-06 3:16
David Crow27-Feb-06 3:16 
QuestionInterlockedExchange : redefinition errors Pin
Judah Gabriel Himango26-Feb-06 17:48
sponsorJudah Gabriel Himango26-Feb-06 17:48 
AnswerRe: InterlockedExchange : redefinition errors Pin
Dennis Gourjii27-Feb-06 0:49
Dennis Gourjii27-Feb-06 0:49 
GeneralRe: InterlockedExchange : redefinition errors Pin
Judah Gabriel Himango27-Feb-06 5:22
sponsorJudah Gabriel Himango27-Feb-06 5:22 
QuestionNeed help (Urgent) Pin
rajeevktripathi26-Feb-06 17:21
rajeevktripathi26-Feb-06 17:21 
AnswerRe: Need help (Urgent) Pin
Ryan Binns26-Feb-06 17:26
Ryan Binns26-Feb-06 17:26 
QuestionRe: Need help (Urgent) Pin
rajeevktripathi26-Feb-06 18:05
rajeevktripathi26-Feb-06 18:05 
AnswerRe: Need help (Urgent) Pin
Naveen26-Feb-06 21:04
Naveen26-Feb-06 21:04 
QuestionRe: Need help (Urgent) Pin
rajeevktripathi26-Feb-06 21:24
rajeevktripathi26-Feb-06 21:24 
AnswerRe: Need help (Urgent) Pin
Naveen26-Feb-06 21:45
Naveen26-Feb-06 21:45 
AnswerRe: Need help (Urgent) Pin
Ryan Binns26-Feb-06 21:47
Ryan Binns26-Feb-06 21:47 
QuestionHow to get dc of CScrollView before it's drawn? Pin
followait26-Feb-06 15:29
followait26-Feb-06 15:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.