Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: form view borders Pin
30-Apr-01 22:30
suss30-Apr-01 22:30 
GeneralA Question on CTreeCtrl Pin
Jayanand30-Apr-01 19:51
Jayanand30-Apr-01 19:51 
GeneralRe: A Question on CTreeCtrl Pin
Nick Blumhardt30-Apr-01 20:32
Nick Blumhardt30-Apr-01 20:32 
GeneralRe: A Question on CTreeCtrl Pin
Nick Blumhardt30-Apr-01 20:33
Nick Blumhardt30-Apr-01 20:33 
GeneralRe: A Question on CTreeCtrl Pin
Jayanand1-May-01 1:37
Jayanand1-May-01 1:37 
GeneralTitle bar help Pin
30-Apr-01 17:27
suss30-Apr-01 17:27 
GeneralRe: Title bar help Pin
Igor Sukhov30-Apr-01 23:03
Igor Sukhov30-Apr-01 23:03 
GeneralDWORD to BSTR Pin
William Bartholomew30-Apr-01 11:58
William Bartholomew30-Apr-01 11:58 
What is the easiest way to append a DWORD (the result from GetTickCount in this case) to a BSTR, the following works but I know there must be an easier way:

CComBSTR szString = "";

char szStartTime[11] = "";
sprintf( szStartTime, "%ul", GetTickCount() );

szString.AppendBSTR( szSessionID );
szString.AppendBSTR( szSep );
szString.AppendBSTR( szIPAddress );
szString.AppendBSTR( szSep );
szString.Append( szStartTime );

And the following doesn't work (much to my dismay):

CComBSTR szString = "";

DWORD dwStartTime = GetTickCount();

szString.AppendBSTR( szSessionID );
szString.AppendBSTR( szSep );
szString.AppendBSTR( szIPAddress );
szString.AppendBSTR( szSep );
szString.Append( dwStartTime );

I also tried casting the DWORD as different types but none of this worked. Any suggestions. Thanks.
Frown | :(
GeneralRe: DWORD to BSTR Pin
Igor Sukhov30-Apr-01 23:15
Igor Sukhov30-Apr-01 23:15 
GeneralContext Sensitive Help Pin
kk930-Apr-01 10:46
kk930-Apr-01 10:46 
Generalexplorer IDockingWindow with edit control Pin
pro30-Apr-01 9:42
pro30-Apr-01 9:42 
GeneralRe: explorer IDockingWindow with edit control Pin
Erik Thompson30-Apr-01 11:17
sitebuilderErik Thompson30-Apr-01 11:17 
GeneralRe: explorer IDockingWindow with edit control Pin
pro30-Apr-01 12:53
pro30-Apr-01 12:53 
QuestionChanging CButton Caption? Pin
30-Apr-01 7:20
suss30-Apr-01 7:20 
AnswerRe: Changing CButton Caption? Pin
J Patel30-Apr-01 7:25
J Patel30-Apr-01 7:25 
GeneralRe: Changing CButton Caption? Pin
30-Apr-01 7:40
suss30-Apr-01 7:40 
AnswerRe: Changing CButton Caption? Pin
F.Dost30-Apr-01 7:41
F.Dost30-Apr-01 7:41 
AnswerRe: Changing CButton Caption? Pin
6-Jun-01 8:48
suss6-Jun-01 8:48 
GeneralScrolling MDI Child Pin
F.Dost30-Apr-01 5:15
F.Dost30-Apr-01 5:15 
GeneralRe: Scrolling MDI Child Pin
l a u r e n30-Apr-01 6:46
l a u r e n30-Apr-01 6:46 
GeneralSetting MDI child Window's Size Pin
F.Dost30-Apr-01 5:10
F.Dost30-Apr-01 5:10 
GeneralRe: Setting MDI child Window's Size Pin
l a u r e n30-Apr-01 6:45
l a u r e n30-Apr-01 6:45 
GeneralRe: Setting MDI child Window's Size Pin
Michael Dunn30-Apr-01 7:01
sitebuilderMichael Dunn30-Apr-01 7:01 
GeneralRe: Setting MDI child Window's Size Pin
F.Dost30-Apr-01 7:45
F.Dost30-Apr-01 7:45 
QuestionHow to catch messages of another window ? Pin
30-Apr-01 5:03
suss30-Apr-01 5:03 

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.