Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncopy/store to a file Pin
thathvamsi30-Aug-06 17:22
thathvamsi30-Aug-06 17:22 
AnswerRe: copy/store to a file Pin
Rinu_Raj30-Aug-06 17:38
Rinu_Raj30-Aug-06 17:38 
GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 18:01
thathvamsi30-Aug-06 18:01 
GeneralRe: copy/store to a file Pin
Rinu_Raj30-Aug-06 18:10
Rinu_Raj30-Aug-06 18:10 
GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 18:29
thathvamsi30-Aug-06 18:29 
GeneralRe: copy/store to a file Pin
Rinu_Raj30-Aug-06 19:09
Rinu_Raj30-Aug-06 19:09 
GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 20:05
thathvamsi30-Aug-06 20:05 
GeneralRe: copy/store to a file Pin
kakan30-Aug-06 20:25
professionalkakan30-Aug-06 20:25 
This is one way. It's based on Rinu_Raj's suggestion (file1_mmddyyyhhmmss)

CString csFileName;
CTime ct = CTime::GetCurrentTime();

csFileName = "file1_" + ct.Format("%m%d%Y%H%M%S");



Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson

GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 20:37
thathvamsi30-Aug-06 20:37 
GeneralRe: copy/store to a file Pin
kakan30-Aug-06 20:44
professionalkakan30-Aug-06 20:44 
GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 20:49
thathvamsi30-Aug-06 20:49 
GeneralRe: copy/store to a file Pin
kakan30-Aug-06 20:55
professionalkakan30-Aug-06 20:55 
GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 21:00
thathvamsi30-Aug-06 21:00 
GeneralRe: copy/store to a file Pin
Rinu_Raj30-Aug-06 21:06
Rinu_Raj30-Aug-06 21:06 
GeneralRe: copy/store to a file Pin
kakan30-Aug-06 21:15
professionalkakan30-Aug-06 21:15 
GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 21:34
thathvamsi30-Aug-06 21:34 
GeneralRe: copy/store to a file Pin
kakan30-Aug-06 22:20
professionalkakan30-Aug-06 22:20 
GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 23:17
thathvamsi30-Aug-06 23:17 
GeneralRe: copy/store to a file Pin
kakan30-Aug-06 23:35
professionalkakan30-Aug-06 23:35 
GeneralRe: copy/store to a file Pin
thathvamsi30-Aug-06 23:41
thathvamsi30-Aug-06 23:41 
GeneralRe: copy/store to a file Pin
kakan30-Aug-06 23:45
professionalkakan30-Aug-06 23:45 
GeneralRe: copy/store to a file Pin
thathvamsi31-Aug-06 16:41
thathvamsi31-Aug-06 16:41 
GeneralRe: copy/store to a file Pin
kakan31-Aug-06 21:55
professionalkakan31-Aug-06 21:55 
GeneralRe: copy/store to a file [modified] Pin
kakan31-Aug-06 22:11
professionalkakan31-Aug-06 22:11 
GeneralRe: copy/store to a file Pin
Rinu_Raj30-Aug-06 19:13
Rinu_Raj30-Aug-06 19:13 

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.