Click here to Skip to main content
15,919,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
I am using GLUT to print out a char* to my window much like this:

renderBitmapString(45, window_height-90, 0.0, GLUT_BITMAP_HELVETICA_18, "testing...");

this function takes the char* and loops through it until the '/0' is seen and one-by-one uses the glutBitmapCharacter(void* font, int char) to print out the characters...

now if i cast a double into a char*, the '/0' is missing at the end so it results in a infinite loop and a runtime error...

i have tried to find a glut function that can print double to the screen but haven't succeeded. if you know an alternative way to do this or a solution to this problem, i would appreciate it very much!

thanks!

--
dg

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 
GeneralRe: VC6.0 Compiler error. Pin
Mark Salsbery28-Jul-07 7:52
Mark Salsbery28-Jul-07 7:52 
GeneralRe: VC6.0 Compiler error. Pin
Randor 28-Jul-07 9:10
professional Randor 28-Jul-07 9:10 

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.