CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13
  1. #1
    Join Date
    Oct 2002
    Posts
    209

    Run Time Environment

    Hi All,

    I have recently ported from VC++6.0 to VC++7.1 .NET.
    I have both development machines and deployment machines.
    What do I need to have on a PC to just run .NEt executables?
    Are there dlls etc I need or must I install the framework?
    I do not want the whole dev environment on my deployment machines.

    Thanks.

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

    Re: Run Time Environment

    What kind of application do you have? Does it use managed code or not? If so, you need the .NET Framework installed on the target machine.

    To get a complete list of dlls required to run use Dependency Walker.
    Marius Bancila
    Home Page
    My CodeGuru articles

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

  3. #3
    Join Date
    Oct 2002
    Posts
    209

    Re: Run Time Environment

    I am building a .NET .exe - I want to be able to run and install this software on all other machines without intsalling >NET components?

    I don't understand what you been by managed code?

  4. #4
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: Run Time Environment

    Quote Originally Posted by clodagho
    I am building a .NET .exe - I want to be able to run and install this software on all other machines without intsalling >NET components?

    I don't understand what you been by managed code?
    That won't work, you will the .NET framework if you want to run a .NET application, because .NET code (Managed Code) is not machine code, much more something like the bytecode from Java, which needs interpretion.
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

  5. #5
    Join Date
    Oct 2002
    Posts
    209

    Re: Run Time Environment

    Is this .NET framework available free like Java so it would not need a license for every machine my code is installed on.

    What if I used the dependancy walker and copied all the dlls to the runtime machine?

  6. #6
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: Run Time Environment

    Quote Originally Posted by clodagho
    Is this .NET framework available free like Java so it would not need a license for every machine my code is installed on.

    What if I used the dependancy walker and copied all the dlls to the runtime machine?
    Yes it is. You are free to contribute it with your application.

    This won't work, since the .NET framework itself must be registered and assigned with the .NET executeables. And this wourk should only be done by the .NET framework installer software.
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

  7. #7
    Join Date
    Oct 2002
    Posts
    209

    Re: Run Time Environment

    Another question where do I get the InstallSheild for .NET?
    I presume this will package up all the neccessary dlls?

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

    Re: Run Time Environment

    Quote Originally Posted by clodagho
    I don't understand what you been by managed code?
    Managed C++ code is the C++ code that runs in the .NET environment (you know garbage collector, JIT-compiler, etc, etc.). Just like C# or VB.NET, when you compile a Managed C++ code it doesn't produce native code (machine dependant code), but MSIDL code (a MS specific intermediar language), which is translated at run-time by the JIT-compiler in native code, which is later ran.

    So, what kind of application do you have. You should know at least that.
    Marius Bancila
    Home Page
    My CodeGuru articles

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

  9. #9
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: Run Time Environment

    Quote Originally Posted by clodagho
    Another question where do I get the InstallSheild for .NET?
    I presume this will package up all the neccessary dlls?
    I think InstallShield software is not free. But you can download a trial copy here. If you have Visual Studio .NET installed you should be able to create setup projects using Microsoft Installer (msi).
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

  10. #10
    Join Date
    Oct 2002
    Posts
    209

    Re: Run Time Environment

    On the machine I just want to be able to run the code on I installed .NET Framework 1.1 and Service Pack 1. On my machine with the full .NET studio I built my project and copied the .exe to my deployment machine. When I tried to run I got errors about MFC71u.dll missing. Are the dlls not installed as part of the .NET Framework?

  11. #11
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: Run Time Environment

    Quote Originally Posted by clodagho
    On the machine I just want to be able to run the code on I installed .NET Framework 1.1 and Service Pack 1. On my machine with the full .NET studio I built my project and copied the .exe to my deployment machine. When I tried to run I got errors about MFC71u.dll missing. Are the dlls not installed as part of the .NET Framework?
    MFC is not a part of the .NET framework. It is something complete different. But you can also freely ship this DLL with your program.
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

  12. #12
    Join Date
    Oct 2002
    Posts
    209

    Re: Run Time Environment

    MFC71U.dll isn't even on the machine I built the app on!
    If I installed the app on the deployment machine using InstallSheield would the MFC dlls be installed?

  13. #13
    Join Date
    Mar 2004
    Location
    (Upper-) Austria
    Posts
    2,899

    Re: Run Time Environment

    Quote Originally Posted by clodagho
    MFC71U.dll isn't even on the machine I built the app on!
    If I installed the app on the deployment machine using InstallSheield would the MFC dlls be installed?
    This DLL should come along with Visual Studio .NET 2003. Does your app run on your machine? If so check out your system32 directory for this file. Or use Dependency Walker to achieve with DLL's are needed by your application.
    I am not offering technical guidiance via email or IM
    Come on share your photo with us! CG members photo album!
    Use the Code Tags!

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