Create directory with date
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Create directory with date

  1. #1
    Join Date
    Mar 2011
    Location
    Greece
    Posts
    26

    Create directory with date

    Goodmorning
    I want little help
    Code:
    AnsiString S=DateToStr(Date());
    
    	char *test=S.c_str();
    
       CreateDirectory("c:\\Monday"+test, NULL);
    i made the upper code and i want to create a directory with a name of Week and next to it the date. For example will the program
    will check the today date from a datetime picker and will create a folder with Day and Date. But i want little help
    Last edited by Leite333; November 24th, 2012 at 02:05 AM.

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    5,925

    Re: Create directory with date

    Little help goes here: you cannot add char* to string literal. You shoudl use some string class for this operation.
    Best regards,
    Igor

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center