CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11
  1. #1
    Join Date
    Jan 2000
    Location
    Germany
    Posts
    99

    exe without .net framework?

    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

  2. #2
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    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...

  3. #3
    Join Date
    Jul 2002
    Posts
    56
    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...
    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.

  4. #4
    Join Date
    Jan 2000
    Location
    Germany
    Posts
    99
    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!


    juergen

  5. #5
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    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.
    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...

  6. #6
    Join Date
    Jan 2000
    Location
    Germany
    Posts
    99
    Thanks again,

    If I find the solution I will post it here.

    juergen

  7. #7
    Join Date
    Jul 2002
    Posts
    56
    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...
    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.

  8. #8
    Join Date
    Dec 2002
    Location
    La Plata, Buenos Aires
    Posts
    615
    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:

    Code:
    #pragma managed
    and

    Code:
    #pragma unmanaged
    Anyone sees advantages in using (and mixing) managed code with C++? may be a c++ program using this code style becomes an unreadable mess.

    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)

  9. #9
    Join Date
    Jan 2000
    Location
    Germany
    Posts
    99
    thanks very much for your informations.

    that's it what I'm looking for.

    yours juergen

  10. #10
    Join Date
    Apr 2003
    Posts
    322

    Re: exe without .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...
    Hello,

    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

  11. #11
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Re: exe without .net framework?

    Quote Originally Posted by cappy2112
    Do you know of any resources for a beginner on how to write a native app with VC .net?
    As a starting point..Learn Visual C++ 2005

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