CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2001
    Posts
    1

    why I can`t run *.exe in another PC?

    I am a new user of C#,

    why I can`t run the compiled *.exe in another PC??
    it told me can`t find the dlls.

    why and how?

    Thx.


  2. #2
    Join Date
    Jan 2001
    Posts
    11

    Re: why I can`t run *.exe in another PC?

    When you install .net sdk,it install some *.dll in you PC


  3. #3
    Join Date
    Mar 2000
    Location
    Shanghai city,PRC
    Posts
    83

    Re: why I can`t run *.exe in another PC?

    If you have been a C++ programmer or other language programmer,you should know the dll problem.
    If you has not been a C++ programmer,then I recommond you to learn it.There's much fun in C++ programming,may no in C# programming.So first enjoy C++,then have a try on C#.

    Wish you good luck!!!


    I love Inter Milan very much !

  4. #4
    Join Date
    Jun 1999
    Location
    Atlanta, GA USA
    Posts
    344

    Re: why I can`t run *.exe in another PC?

    >>>
    why I can`t run the compiled *.exe in another PC??
    <<<

    Because an application created with a .NET compiler is actually a standard Win32 PE with a stub that checks for the existence of the .NET runtime and then calls a special function that exists in the .NET runtime engine. This runtime function then calls the functions necessary to jit your code. If the stub can't find the runtime, you get an error message.


    Cheers,
    Tom Archer - CodeGuru
    Inside C# (early 2001)
    Teach Yourself Visual InterDev in 24 Hours

    ------
    Tom Archer, Archer Consulting Group Inc.
    Author - Inside C#, Visual C++.NET Bible, Extending MFC Apps with .NET
    http://www.ArcherConsultingGroup.com
    Consulting * Training * Custom Development * Enterprise Solutions

  5. #5
    Join Date
    Mar 2001
    Location
    California
    Posts
    336

    Re: why I can`t run *.exe in another PC?

    All computers running C# at this time must have the .NET SDK installed. It's not nearly as common as C++, where you can copy the .exe and get away with it (most of the time).

    And because C# is in beta stages, creating installation wizards for it isn't even enough. The .NET SDK is your answer.

    John

    Peloweb.com

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