Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHEAP issues with Overlapped I/O using completion port Pin
Zerox MXI29-Jul-07 6:07
Zerox MXI29-Jul-07 6:07 
QuestionRe: HEAP issues with Overlapped I/O using completion port Pin
Mark Salsbery30-Jul-07 6:39
Mark Salsbery30-Jul-07 6:39 
AnswerRe: HEAP issues with Overlapped I/O using completion port Pin
Zerox MXI30-Jul-07 15:46
Zerox MXI30-Jul-07 15:46 
Questionerrors while using class wizard Pin
l_d29-Jul-07 3:37
l_d29-Jul-07 3:37 
AnswerRe: errors while using class wizard Pin
eraccn29-Jul-07 15:08
eraccn29-Jul-07 15:08 
GeneralRe: errors while using class wizard Pin
l_d29-Jul-07 16:47
l_d29-Jul-07 16:47 
QuestionErrors using windows.h Pin
KaKa'29-Jul-07 1:57
KaKa'29-Jul-07 1:57 
Questionappend a character to a char* Pin
moonraker92828-Jul-07 18:56
moonraker92828-Jul-07 18:56 
hi guys.
i have a simple problem but can't seem to find the solution anywhere..

background:
i have a double and an array of char*. i used reinterpret_cast to convert the double into a char* and then stored it in a particular index. now given that, i want to add a null character, '\0', at the end of that char* that stores the double.

relevant code:
char* results_text[7];
results_text[0] = reinterpret_cast<char*>(static_cast<int>(m->total_time_taken));

how should i got about doing this? i am flexible in changing the method as long as the end result meets the following conditions: it is a char* holding the double value + a null character at the end.

thanks in advance.

--
dg

AnswerRe: append a character to a char* Pin
cp987628-Jul-07 22:18
cp987628-Jul-07 22:18 
GeneralRe: append a character to a char* Pin
moonraker92828-Jul-07 22:26
moonraker92828-Jul-07 22:26 
GeneralRe: append a character to a char* Pin
cp987628-Jul-07 22:49
cp987628-Jul-07 22:49 
GeneralRe: append a character to a char* Pin
moonraker92828-Jul-07 22:59
moonraker92828-Jul-07 22:59 
GeneralRe: append a character to a char* Pin
cp987628-Jul-07 23:45
cp987628-Jul-07 23:45 
GeneralRe: append a character to a char* Pin
moonraker92829-Jul-07 10:08
moonraker92829-Jul-07 10:08 
GeneralRe: append a character to a char* Pin
cp987629-Jul-07 12:59
cp987629-Jul-07 12:59 
GeneralRe: append a character to a char* Pin
moonraker92829-Jul-07 13:03
moonraker92829-Jul-07 13:03 
GeneralRe: append a character to a char* Pin
cp987629-Jul-07 13:36
cp987629-Jul-07 13:36 
GeneralRe: append a character to a char* Pin
User 58385229-Jul-07 18:34
User 58385229-Jul-07 18:34 
GeneralRe: append a character to a char* Pin
cp987629-Jul-07 19:08
cp987629-Jul-07 19:08 
GeneralRe: append a character to a char* Pin
David Crow30-Jul-07 4:12
David Crow30-Jul-07 4:12 
AnswerRe: append a character to a char* Pin
Mark Salsbery30-Jul-07 6:43
Mark Salsbery30-Jul-07 6:43 
GeneralRe: append a character to a char* Pin
moonraker92830-Jul-07 9:18
moonraker92830-Jul-07 9:18 
QuestionVC6.0 Compiler error. Pin
Eytukan28-Jul-07 7:01
Eytukan28-Jul-07 7:01 
AnswerRe: VC6.0 Compiler error. Pin
Mark Salsbery28-Jul-07 7:45
Mark Salsbery28-Jul-07 7:45 
GeneralRe: VC6.0 Compiler error. Pin
Eytukan28-Jul-07 7:50
Eytukan28-Jul-07 7:50 

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.