-
April 5th, 2005, 08:44 AM
#1
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.
-
April 5th, 2005, 08:57 AM
#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?
-
April 5th, 2005, 09:25 AM
#3
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
-
April 5th, 2005, 09:25 AM
#4
Re: General question regarding VC++ 6.0 and VC++.NET
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.
-
April 5th, 2005, 09:44 AM
#5
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.
-
April 5th, 2005, 09:48 AM
#6
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.
-
April 5th, 2005, 10:06 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|