CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: time in VC++

  1. #1
    Join Date
    Aug 2009
    Posts
    68

    time in VC++

    i have table in database. my table tipe is time. but when i show that table in vc++, the date of that time follow it.

    example :
    in mysql : 10:00:00

    when i show that table from visual C++, it will be : 23/01/2010 10:00:00

    what must i do?

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: time in VC++

    when i show that table from visual C++, it will be : 23/01/2010 10:00:00
    Please explain what data access method you use. The correct answer will depend on it.
    Best regards,
    Igor

  3. #3
    Join Date
    Aug 2009
    Posts
    68

    Re: time in VC++

    i use ADO data control and CDatagrid Control to show my table. u can find that control in Project > Add to Project > Components and control.

    thanks for your attention

  4. #4
    Join Date
    Aug 2009
    Posts
    68

    Re: time in VC++

    i solved it. but now i have new problem.

    i solved it by change information of CDataGrid Control from it's Properties. i got difficult how to add Column number from that control. the default number of coloum are 2. and my table have 8 column, so i must have 8 column too.

    for clearly of my question, i included JPEG file with this post.
    Attached Images Attached Images  
    Last edited by auliac; January 26th, 2010 at 11:59 AM.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured