CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2004
    Location
    DeathValley
    Posts
    184

    General question regarding VC++ 6.0 and VC++.NET

    Hi all, I started with VC++ 6.0 a few months earlier and have done an appreciably effort taking project in it. Now this project was for an organization and they have systems using both Windows and Linux.
    I have been offered another project which the same thing, but the only catch is "It has to be platform independent and work equally well on Windows as well as Linux". Now since I did the whole thingy, I am totally aware of its requirements and architecture. In order to make it platform idependent, I have to options, recoded it in JAVA or VC++.NET.

    Personally, I don't have any plans of doing it in JAVA, since my peculiar project uses VC++'s Doc-View architecture heavily for cammuncation between multiple views (in diff frames).

    My Questions ::

    Does V++.NET follow the same architecture?
    Is it easy to learn and re-implement my original design(VC++ 6.0)?
    Can I convert my existing VC++ 6.0 code to .NET?
    Software Development is an art, not a job.

  2. #2

    Re: General question regarding VC++ 6.0 and VC++.NET

    just comment, surely not recommendation (i'm not very in):
    maybe have a look at http://www.mono-project.com
    (but if i know well it is few .net versions late comparing to ms, also have no info about it's future)

    btw. doc-view is language specific?

  3. #3
    Join Date
    Mar 2001
    Posts
    2,529

    Re: General question regarding VC++ 6.0 and VC++.NET

    ur_unholyness, I would like to respond to part of your post:

    can I convert my existing project to .NET

    The answer is yes, with managed extensions.

    In your project, /CLR enables the common language runtime environment.

    managed classes that use clr:

    Code:
    public __gc class MyManagedClass
    {
    } ;
    unmanaged classes that dont use garbage collection:

    Code:
    class CMyUnmanagedClass
    {
    
    } ;
    note: _gc enables garbage collection also never having used mono, I cant
    answer that part of the post.

    HTH,

    ahoodin

    PS If this post helped dont forget to rate.
    Last edited by ahoodin; April 5th, 2005 at 09:33 AM. Reason: spelling err

  4. #4
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: General question regarding VC++ 6.0 and VC++.NET

    Quote Originally Posted by real name
    btw. doc-view is language specific?
    Document/View architecture is a simplification of MVC (Model View Controler). Is not language-specific. VC++ is not a language, if this is what you are implying... The language is C++.

    Does V++.NET follow the same architecture?
    Document/View architecture is implemented within MFC. If you want to switch to .NET and use MFC is fine. But won't work on Linux.

    As for .NET specific, in FCL there is no equivalent for CDocument/CView. So no, .NET does not offer built-in support for doc-view architecture. Neither does Java.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  5. #5
    Join Date
    Dec 2004
    Location
    DeathValley
    Posts
    184

    Re: General question regarding VC++ 6.0 and VC++.NET

    So then ,
    What can be the simplest plausible soltion to my situation to attain platform independency?

    What is the simplest way for a .NET beginner to convert existing VC++ 6.0 code to .NET?
    Software Development is an art, not a job.

  6. #6
    Join Date
    Mar 2001
    Posts
    2,529

    Re: General question regarding VC++ 6.0 and VC++.NET

    1. Use _gc in your class definitions.
    2. Make sure /CLR is in your project settings.

    HTH,

    ahoodin

    Best to use VC 7.0, and that will also deploy your common language runtime.

  7. #7
    Join Date
    Jun 1999
    Posts
    153

    Re: General question regarding VC++ 6.0 and VC++.NET

    There was an article (or two) in The Association of C and C++ Users magazine about converting from MFC to Qt (Qt is X-platform GUI, similar to MFC). It is not available online but it might be worth going to their site and asking about it. The author could send you a copy or you could get them to send you the magazine issues.

    http://www.accu.org
    Kevin

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