Can MSVS 6 leverage .net (more precisely C# forms)?
-
I maintain a very mature product (over ten years old) that was written in MSVS 6. My team is in the process of giving the app a new look and feel. We decided to try to convert the project to .net to leverage the GUI elements; but had too many issues during this process and forfeit the idea. This leads to my questions: 1.Could an application that is compiled under MSVS 6 use Win Forms? 2.This is more of a secondary question to number 1). Could controls be written in C# then; built into an assembly; be used by an app compiled in MSVS 6? 3.If you answer yes to either question; is there any documentation? Thank you:), -e -- modified at 8:33 Saturday 22nd April, 2006
-
I maintain a very mature product (over ten years old) that was written in MSVS 6. My team is in the process of giving the app a new look and feel. We decided to try to convert the project to .net to leverage the GUI elements; but had too many issues during this process and forfeit the idea. This leads to my questions: 1.Could an application that is compiled under MSVS 6 use Win Forms? 2.This is more of a secondary question to number 1). Could controls be written in C# then; built into an assembly; be used by an app compiled in MSVS 6? 3.If you answer yes to either question; is there any documentation? Thank you:), -e -- modified at 8:33 Saturday 22nd April, 2006
-e wrote:
1.Could an application that is compiled under MSVS 6 use Win Forms?
no
-e wrote:
2.Could controls be written in C# then; built into an assembly; be used by an app compiled in MSVS 6?
no
-e wrote:
3.If you answer yes to either question; is there any documentation?
sorry :-D in fact, you can't because VC6 doen't know gthe .NET framework at all. so you can't neither use the .NET SDK, nor use some assembly compiled for .NET. tell me however, why don't you just upgrade the code to VC++2003 (MFC or Win32) without wanting targetting for .NET ?
-
I maintain a very mature product (over ten years old) that was written in MSVS 6. My team is in the process of giving the app a new look and feel. We decided to try to convert the project to .net to leverage the GUI elements; but had too many issues during this process and forfeit the idea. This leads to my questions: 1.Could an application that is compiled under MSVS 6 use Win Forms? 2.This is more of a secondary question to number 1). Could controls be written in C# then; built into an assembly; be used by an app compiled in MSVS 6? 3.If you answer yes to either question; is there any documentation? Thank you:), -e -- modified at 8:33 Saturday 22nd April, 2006
MSVS is actually a studio and not specificaly intended for only C++. You are able to compile most languages using MSVS including C#, J#, C++, C. Maybe you meant to say MSVC? It is possible to call C# code from C++. Usually the C# would be in the form of a dll, and you would need to manually register the type library. Also the .NET runtimes would need to be installed on the client machine. The process of doing this is a little complicated, but there are some articles here on CP which demonstrate it.
-
-e wrote:
1.Could an application that is compiled under MSVS 6 use Win Forms?
no
-e wrote:
2.Could controls be written in C# then; built into an assembly; be used by an app compiled in MSVS 6?
no
-e wrote:
3.If you answer yes to either question; is there any documentation?
sorry :-D in fact, you can't because VC6 doen't know gthe .NET framework at all. so you can't neither use the .NET SDK, nor use some assembly compiled for .NET. tell me however, why don't you just upgrade the code to VC++2003 (MFC or Win32) without wanting targetting for .NET ?
Thanks for the input. To answer your question I had assigned developers to try to convert the application to VC++ 2003. Since the applications is over ten years old it has seen its share of GUI toolkits and some of these toolkits are not converting to the new platform. So one of my goals is to slowly move the application to the new platform. I am trying to make the application co-exist between VC ++ 6 (old code) and VC++ (maybe .net) 2003 or greater (new code). Since I don't have the option to compile the application greater than VC++ 6. Thanks, -e
-
MSVS is actually a studio and not specificaly intended for only C++. You are able to compile most languages using MSVS including C#, J#, C++, C. Maybe you meant to say MSVC? It is possible to call C# code from C++. Usually the C# would be in the form of a dll, and you would need to manually register the type library. Also the .NET runtimes would need to be installed on the client machine. The process of doing this is a little complicated, but there are some articles here on CP which demonstrate it.
Thanks for replying, I should of been more specific with the development language. The existing application is coded using VC++ 6 (MFC). At the moment I can't covert (promote) the existing code to a greater platform than VC++ 6 (for various reasons). So I am looking for a way to have new development be written in VC++ 2003(or higher) or C# and try to co-exist with the existing code. So I guess what I'm looking for is an application that is compiled with VC++ (MFC) 6 to have mixed code; the existing code to use MFC 6 components (like dialogs etc..) and the new code to use C#, VC++ 7 code (like Win-Forms etc...). Thanks, -e P.S. My goal is to eventually move the application to the newer platform (in baby steps).
-
I maintain a very mature product (over ten years old) that was written in MSVS 6. My team is in the process of giving the app a new look and feel. We decided to try to convert the project to .net to leverage the GUI elements; but had too many issues during this process and forfeit the idea. This leads to my questions: 1.Could an application that is compiled under MSVS 6 use Win Forms? 2.This is more of a secondary question to number 1). Could controls be written in C# then; built into an assembly; be used by an app compiled in MSVS 6? 3.If you answer yes to either question; is there any documentation? Thank you:), -e -- modified at 8:33 Saturday 22nd April, 2006