Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

carbon14

iostream filename

This topic is 5794 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

please tell me what i am doing wrong i am trying to creat a unique file name SYSTEMTIME time; GetLocalTime(&time); CString filename; filename.Format("%s-%s-%s-%02d_%02d_%02d_%02d_%02d_%02d" EXT, logdir, Task, Monkey, time.wYear %100, time.wMonth, time.wDay, time.wHour, time.wMinute, time.wSecond); i get this err: C:\paymon\OhBehave-2.2.9\ohdisplay\movies\rdots2dist.cpp(79) : error C2146: syntax error : missing '')'' before identifier ''EXT'' C:\paymon\OhBehave-2.2.9\ohdisplay\movies\rdots2dist.cpp(88) : error C2059: syntax error : '')''

Share this post


Link to post
Share on other sites
Advertisement
I can''t help unless you post something about that EXT, although perhaps this could help: possibly that''s supposed to be TEXT ( "..." ), if so, it should look more like:

filename.Format(TEXT"%s-%s-%s-%02d_%02d_%02d_%02d_%02d_%02d",
logdir,
Task,
Monkey,
time.wYear %100,
time.wMonth,
time.wDay,
time.wHour,
time.wMinute,
time.wSecond);

Although still that may not fix it...

Share this post


Link to post
Share on other sites
hmm, if EXT is not a macro that expands to something usefull with a comma at the beginning, then I would suggest to put before EXT a comma...

i hope this helps...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!