Click here to Skip to main content
16,005,552 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with Property page Pin
Rahim Rattani2-Jun-05 20:40
Rahim Rattani2-Jun-05 20:40 
GeneralRe: Problem with Property page Pin
anisiva8-Jun-05 17:58
anisiva8-Jun-05 17:58 
QuestionCString to LPCWSTR conversion ??? Pin
shoonya2-Jun-05 14:25
shoonya2-Jun-05 14:25 
AnswerRe: CString to LPCWSTR conversion ??? Pin
Christian Graus2-Jun-05 14:31
protectorChristian Graus2-Jun-05 14:31 
AnswerRe: CString to LPCWSTR conversion ??? Pin
ThatsAlok2-Jun-05 19:13
ThatsAlok2-Jun-05 19:13 
AnswerRe: CString to LPCWSTR conversion ??? Pin
cmk5-Jun-05 12:55
cmk5-Jun-05 12:55 
GeneralOPEN GL Problems Pin
amitmohanty2-Jun-05 13:45
amitmohanty2-Jun-05 13:45 
GeneralEasy char manipulation question Pin
Axonn Echysttas2-Jun-05 12:37
Axonn Echysttas2-Jun-05 12:37 
Hi everybody. Here's an easy question for anybody that started learning Visual C++ correctly, from bottom to top (not like I did). I want to use GetSystemTime to create a string nicely formatted with the current hour. Unfortunately, I'm totally wasted with Visual C++ string manipulation routines. Maybe you can give me a hand. I want to use chars. Here's what I got so far.

SYSTEMTIME cmTime;<br />
char *a = (char *) malloc(256);<br />
char *b = (char *) malloc(256);<br />
char *c = (char *) malloc(256);<br />
GetSystemTime(&cmTime);


I presume I could use strcat or some function to concatenate the members of the cmTime SYSTEMTIME structure in a nice string. But so far my attempts resulted only in critical errors and program crashes : D. I suppose this could be done easier using the CString class, but I want to try with this because I could learn more. Also, I think one or two char variables are enough. If you can do this with only 2 of the variables declared, it would be even better.

I would want to do something like this: "HH:MM:SS DD MM". That kind of time format. Anyway, even HH:MM is good, I'll figure the rest out. I just need to know how to work with these strings. Pf. Hard for me, I don't know where to start!
GeneralRe: Easy char manipulation question Pin
Christian Graus2-Jun-05 12:45
protectorChristian Graus2-Jun-05 12:45 
GeneralRe: Easy char manipulation question Pin
Axonn Echysttas2-Jun-05 12:51
Axonn Echysttas2-Jun-05 12:51 
GeneralRe: Easy char manipulation question Pin
Christian Graus2-Jun-05 12:58
protectorChristian Graus2-Jun-05 12:58 
GeneralRe: Easy char manipulation question Pin
David Crow3-Jun-05 2:54
David Crow3-Jun-05 2:54 
GeneralRe: Easy char manipulation question Pin
Gary R. Wheeler2-Jun-05 13:22
Gary R. Wheeler2-Jun-05 13:22 
GeneralRe: Easy char manipulation question Pin
ThatsAlok2-Jun-05 18:59
ThatsAlok2-Jun-05 18:59 
GeneralRe: Easy char manipulation question Pin
Axonn Echysttas2-Jun-05 21:27
Axonn Echysttas2-Jun-05 21:27 
GeneralSerial Communication using the VT100 Protocol Pin
NCARstudent2-Jun-05 12:24
NCARstudent2-Jun-05 12:24 
GeneralRe: Serial Communication using the VT100 Protocol Pin
Gary R. Wheeler2-Jun-05 13:47
Gary R. Wheeler2-Jun-05 13:47 
GeneralWhere to learn about impersonation Pin
BambooMoon2-Jun-05 12:03
BambooMoon2-Jun-05 12:03 
GeneralRe: Where to learn about impersonation Pin
Blake Miller2-Jun-05 14:17
Blake Miller2-Jun-05 14:17 
Questionhow to resize the systray to fit my clock replacment? Pin
ELY M.2-Jun-05 10:49
ELY M.2-Jun-05 10:49 
Generaltesting path Pin
Ann662-Jun-05 10:44
sussAnn662-Jun-05 10:44 
GeneralRe: testing path Pin
BlackDice2-Jun-05 10:55
BlackDice2-Jun-05 10:55 
GeneralRe: testing path Pin
Blake Miller2-Jun-05 14:22
Blake Miller2-Jun-05 14:22 
GeneralRe: testing path Pin
ThatsAlok2-Jun-05 19:03
ThatsAlok2-Jun-05 19:03 
GeneralPrevent another application's dialog showing Pin
Kany Nguyen2-Jun-05 9:41
Kany Nguyen2-Jun-05 9:41 

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.