CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2009
    Posts
    17

    Question Edit ACCESS file in Visual C++

    Hi,

    I am fresh to Visual C++.

    Visual C++ 6, does it support editing to ACCESS file? And if the answer is yes, what is the lowest version it supports?

    If you don't mind, who can tell me the major difference between Visual C++ and C#?


    Thank you in advance.


    Regards
    Yang Guang

  2. #2
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: Edit ACCESS file in Visual C++

    Hi!

    Yes, MSVS 6 supports MS Access databases. You can use Access 97 and Access 2000. Access 2000 requires the setting AfxGetModuleState()->m_dwVersion = 0x0601;

    C# is a managed programming language that is part of the .NET framework. If you want to write managed code, it is the language recommended by most developers. C# has nothing to do with regular C++, but there is a managed language similar to C++ called C++/CLI.
    http://en.wikipedia.org/wiki/C%2B%2B/CLI
    http://en.wikipedia.org/wiki/.NET_Framework
    Nobody cares how it works as long as it works

  3. #3
    Join Date
    Mar 2009
    Posts
    17

    Thumbs up Re: Edit ACCESS file in Visual C++

    Thank you.

  4. #4
    Join Date
    Mar 2009
    Posts
    17

    Question Re: Edit ACCESS file in Visual C++

    Quote Originally Posted by zerver View Post
    Hi!

    Yes, MSVS 6 supports MS Access databases. You can use Access 97 and Access 2000. Access 2000 requires the setting AfxGetModuleState()->m_dwVersion = 0x0601;

    C# is a managed programming language that is part of the .NET framework. If you want to write managed code, it is the language recommended by most developers. C# has nothing to do with regular C++, but there is a managed language similar to C++ called C++/CLI.
    http://en.wikipedia.org/wiki/C%2B%2B/CLI
    http://en.wikipedia.org/wiki/.NET_Framework

    Since then I may have to change my plan, my ACCESS file is generated on Office 2003. My OS is Windows 2000 professional, so Visual Studio 2005 may be a good choice.

    Is it a good idea to code a pure database application with VC++?

    Microsoft web site declares Web Developer fully supports C#, how should I understand it? Does it mean C# code can be smoothly compiled on WD?

    If I had mastered C#, would I be able to program with C++?


    Thank you.

  5. #5
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: Edit ACCESS file in Visual C++

    Since then I may have to change my plan, my ACCESS file is generated on Office 2003. My OS is Windows 2000 professional, so Visual Studio 2005 may be a good choice.
    I believe the file format for Access 2003 is the same as Access 2000.

    Is it a good idea to code a pure database application with VC++?
    Yes, C++ is good for coding database apps. Writing in C# may be slightly less work but the difference is small.

    Microsoft web site declares Web Developer fully supports C#, how should I understand it? Does it mean C# code can be smoothly compiled on WD?
    Sorry, I don't know about WD.

    If I had mastered C#, would I be able to program with C++?
    No, it is a different language. C# is managed, which makes it easier to understand for noobs. However, knowing ANY language means you will learn another language much quicker.
    Nobody cares how it works as long as it works

  6. #6
    Join Date
    Mar 2009
    Posts
    17

    Smile Re: Edit ACCESS file in Visual C++

    Ok, I see....

    Thank you.

  7. #7
    Join Date
    Mar 2009
    Posts
    17

    Smile Re: Edit ACCESS file in Visual C++

    I am suing VC++ 6.

    Trying to access a column (date format) with MFC.

    //DDX_Text(pDX,IDC_BODDisp, m_pSet -> m_column4);

    m_column4 is refering to a date column.

    It does not work.

  8. #8
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    Re: Edit ACCESS file in Visual C++

    Hi!

    If your data type is COleDateTime, convert date to text using
    Code:
    CString DateAsString = m_pSet->m_column4.Format("%Y-%m-%d");
    Regards / Z
    Nobody cares how it works as long as it works

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