Hello,
may I compile an exe with visual c++.net standard compiler
without using .net framework?
like the old vc6 compiler?
thanks for any hint.
best regards juergen
Printable View
Hello,
may I compile an exe with visual c++.net standard compiler
without using .net framework?
like the old vc6 compiler?
thanks for any hint.
best regards juergen
I assume that you are asking whether you still can produce native application which are able to run without the CLR...in this case the answer is yes.
Note that you can this only with Visual C++ though...
i'm interested in this too. could u please fully explain how to get to this option or is this default anyway? i never really try my programs on comps w/o the .net framework.Quote:
Originally posted by Andreas Masur
I assume that you are asking whether you still can produce native application which are able to run without the CLR...in this case the answer is yes.
Note that you can this only with Visual C++ though...
Thanks very much adreas, that's good news!Quote:
Originally posted by Andreas Masur
I assume that you are asking whether you still can produce native application which are able to run without the CLR...in this case the answer is yes.
Note that you can this only with Visual C++ though...
juergen
Well...since I have not done anything yet with Visual Studio .NET I pretty much cannot help here. I would assume that the wizard gives you the choice whether you want to program managed or unmanaged C++ code though...Quote:
Originally posted by R3xy
i'm interested in this too. could u please fully explain how to get to this option or is this default anyway? i never really try my programs on comps w/o the .net framework.
Thanks again,
If I find the solution I will post it here.
juergen
oh it's just if i do a managed or unmanaged code? kinda makes sense i guess. but is there a way of compiling an mfc project into an exe that does need the clr only it doesn't need the .net framework? it's 2 diff layers the clr and the .net framework.Quote:
Originally posted by Andreas Masur
Well...since I have not done anything yet with Visual Studio .NET I pretty much cannot help here. I would assume that the wizard gives you the choice whether you want to program managed or unmanaged C++ code though...
I believe that if you use unmanaged code, a la VC 6, the .net framework is not required.
The .NET framework is required for applications in "managed mode", which must be compiled with the /CLR compiler switch.
Also, remember that when you write a managed applications (requiring .NET framework) this does not means that you cannot write "old" unmanaged code. You can switch between the unmanaged code and the new managed .net code with the following directives:
andCode:#pragma managed
Anyone sees advantages in using (and mixing) managed code with C++? may be a c++ program using this code style becomes an unreadable mess.Code:#pragma unmanaged
For .NET, go with Visual Basic or C#, I think (altough I must recognize that I've not read the .NET documentation deeply to see the good features)
thanks very much for your informations.
that's it what I'm looking for.
yours juergen:)
Hello,Quote:
Originally Posted by Andreas Masur
I need to write a native app on XP. I haven't used VC since DOS days (1.52), but I do have the full MSDN and can install VC .net.
I don' t know C++ or MFC< so I will probably have to write the native app in C.
From your posts it sounds like a native app can be written with VC.net.
Do you know of any resources for a beginner on how to write a native app with VC .net?
thanks
As a starting point..Learn Visual C++ 2005Quote:
Originally Posted by cappy2112