Click here to Skip to main content
15,910,878 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralScrollView Pin
Anonymous29-Nov-04 6:53
Anonymous29-Nov-04 6:53 
GeneralRe: ScrollView Pin
Anonymous29-Nov-04 8:22
Anonymous29-Nov-04 8:22 
GeneralMessage Box Position Pin
amine.turki29-Nov-04 6:37
amine.turki29-Nov-04 6:37 
GeneralRe: Message Box Position Pin
toxcct29-Nov-04 6:52
toxcct29-Nov-04 6:52 
QuestionHow to add macintosh theme Pin
Dody_DK29-Nov-04 6:36
Dody_DK29-Nov-04 6:36 
AnswerRe: How to add macintosh theme Pin
benjymous29-Nov-04 23:07
benjymous29-Nov-04 23:07 
GeneralAdd current date and time to a string Pin
Einar Kvandahl29-Nov-04 6:25
Einar Kvandahl29-Nov-04 6:25 
GeneralRe: Add current date and time to a string Pin
krmed29-Nov-04 8:11
krmed29-Nov-04 8:11 
The problem is that systime.wYear, wMonth, etc are not strings or characters - they are decimal values of the year, month, day, etc.

You need to format those values to strings. (I'm not familiar with CPString as you have, but for CString you could use something like:

CString psPathFile;<br />
psPathFile.Format("C:\\It\\data%4d%2d%2d%2d%2d%2d.mwd", systime.wYear, systime.wMonth, systime.wDay, systime.wHour, systime.wMinute, system.wSecond);

The end result would look like:
C:\It\data20041129132020.mwd
Hope that helps.
GeneralRe: Add current date and time to a string Pin
Einar Kvandahl29-Nov-04 9:44
Einar Kvandahl29-Nov-04 9:44 
GeneralRe: Add current date and time to a string Pin
Einar Kvandahl29-Nov-04 9:58
Einar Kvandahl29-Nov-04 9:58 
GeneralRe: Add current date and time to a string Pin
Einar Kvandahl29-Nov-04 10:04
Einar Kvandahl29-Nov-04 10:04 
GeneralRe: Add current date and time to a string Pin
krmed29-Nov-04 10:30
krmed29-Nov-04 10:30 
GeneralRe: Add current date and time to a string Pin
Einar Kvandahl29-Nov-04 10:33
Einar Kvandahl29-Nov-04 10:33 
GeneralGetTextExtent with Bold and Italic font Pin
Cyrus Dang29-Nov-04 6:21
Cyrus Dang29-Nov-04 6:21 
GeneralCreating a Hebrew application Pin
sergio_o29-Nov-04 5:31
sergio_o29-Nov-04 5:31 
GeneralDynamic control creation Pin
Juan Ignacio Garzón29-Nov-04 5:20
Juan Ignacio Garzón29-Nov-04 5:20 
GeneralIf I have multiple NIC with IP addresses, how do I... Pin
DeepT29-Nov-04 5:10
DeepT29-Nov-04 5:10 
QuestionSuggestions for Learning Direct Draw? Pin
PSU Casper29-Nov-04 4:51
PSU Casper29-Nov-04 4:51 
GeneralVERIFY Pin
act_x29-Nov-04 4:17
act_x29-Nov-04 4:17 
GeneralRe: VERIFY Pin
Antony M Kancidrowski29-Nov-04 4:22
Antony M Kancidrowski29-Nov-04 4:22 
GeneralRe: VERIFY Pin
act_x29-Nov-04 4:29
act_x29-Nov-04 4:29 
GeneralRe: VERIFY Pin
Antony M Kancidrowski29-Nov-04 4:41
Antony M Kancidrowski29-Nov-04 4:41 
GeneralRe: VERIFY Pin
David Chamberlain29-Nov-04 8:04
David Chamberlain29-Nov-04 8:04 
Generalfile association in Dialog based application Pin
vyjesh29-Nov-04 1:17
vyjesh29-Nov-04 1:17 
GeneralRe: file association in Dialog based application Pin
Antony M Kancidrowski29-Nov-04 4:32
Antony M Kancidrowski29-Nov-04 4:32 

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.