|
DavidCrow wrote: Yep!
ok
|
|
|
|
|
|
DavidCrow wrote:
Not necessary if all you're doing is reading from the file.
Yes it is. Since I read it no need. It's my fault. I got that conclusion when I'm writing something to a file.
I appreciate your help all the time...
Eranga
|
|
|
|
|
how can i get the character inserted last in the edit box control.
last inserted character doesn't mean the last character of the corresponding string variable.
|
|
|
|
|
Handle the keydown (WM_KEYDOWN ) event.
Maxwell Chen
|
|
|
|
|
Can you use of GetWindowText for get string of edit ctrl?
|
|
|
|
|
He wants to know the last character which user inserted.
For example,
Originally the text in the Edit Control was:
Hllo. Then user inserted an 'e ' to become:
Hello.
Maxwell Chen
|
|
|
|
|
I think yes my answer not good.
|
|
|
|
|
But to get the WM_KEYDOWN for a edit box he has to subclass the edit box.
|
|
|
|
|
Subclass the edit control and handle the WM_CHAR message.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
How do i display time and date in an application? the current time and the current date.
|
|
|
|
|
I suggest you to split this daunting task in two steps:
(1) ask the system current date and time.
(2) display the date and time values
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Its a real answer or a Joke!?
|
|
|
|
|
Every joke is, really, an answer.
(A bit philosophic today...)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
CPallini wrote: Every joke is, really, an answer.
(A bit philosophic today...)
I knew it.
Maxwell Chen
|
|
|
|
|
OMG you got it [^] too!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Philosophic + vc++ forum then result=?
|
|
|
|
|
Hamid. wrote: Philosophic + vc++ forum then result=?
IF Philosophic = VC + forum THEN result="?"
But..., wait a moment..., OMG infamous VB6 code inside VC++ forum!!!!!!!!!!!!!!!!!!!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
Except it your code has problem where's End IF,or Maybe you want to make a new language (Composite of Vc++ and VB=VBC++ ).
|
|
|
|
|
Hamid. wrote: Except it your code has problem
You're wrong, see
http://msdn2.microsoft.com/en-us/library/aa243382(VS.60).aspx[^]
Hamid. wrote: Maybe you want to make a new language (Composite of Vc++ and VB=VBC++ ).
OMG this hybrid is even worse than a shoggoth!
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
[my articles]
|
|
|
|
|
But its correct:
Sub num()
Dim a As Integer
a = 2
If a = 2 Then
End If
End Sub
|
|
|
|
|
Hamid. wrote: Its a real answer or a Joke!?
Both.
Maxwell Chen
|
|
|
|
|
I saw he selected Joke Icon but his answer was correct ask of system and display values!
|
|
|
|
|
1. You have to set a timer. (If you need to show the second then ellapsed time should be less than 1 sec)
2. In the OnTimer function you can call InvalidateRect.
3. In the OnPaint get the current time using COleDateTime::GetCurrentTime, format and draw it to the DC.
|
|
|
|
|
See
CFileTime m_Time;
m_Time = CFileTime::GetCurrentTime();
|
|
|
|