|
-
Aug 7th, 2001, 01:31 PM
#1
Thread Starter
Lively Member
Time
How i can display the time in TEXTBOX or LABEL ?
-
Aug 7th, 2001, 02:37 PM
#2
Try this:
Code:
LPSTR lpTime;
wsprintf(lpTime, "%s", __TIME__);
SetWindowText(hwndStatic, lpTime);
-
Aug 7th, 2001, 02:49 PM
#3
Monday Morning Lunatic
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 7th, 2001, 04:18 PM
#4
transcendental analytic
How can you be sure it won't write beyond the buffer array?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 7th, 2001, 05:42 PM
#5
Thread Starter
Lively Member
Thanx a lot.
I want to display date and time in lable using MFC.
-
Aug 8th, 2001, 03:00 AM
#6
Monday Morning Lunatic
Kedaman - use snprintf then (I think that's a function, otherwise just fake it with _vsnprintf ).
VB7 - look at the class documentation for the class your lable is derived from.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 8th, 2001, 07:48 AM
#7
transcendental analytic
Hey, parksie, I don't get it, why would you implement a function that might crash your system without warning?
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 8th, 2001, 08:04 AM
#8
Frenzied Member
If you're worried about it, just use a very big buffer
Harry.
"From one thing, know ten thousand things."
-
Aug 8th, 2001, 08:15 AM
#9
transcendental analytic
Nah, I'd never be that stupid
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|