Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Can't run my program on other computers

Can't run my program on other computers

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpcsharpdotnetvisual-studio
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    Tnarol
    wrote on last edited by
    #1

    Hi, I have a basic Visual C++/MFC program written with VS .Net 2005 but that doesn't use .NET Framework. I tried to run it on another PC, and it didn't work although I had all the required DLLs in the same directory. It said something like "application could not initialize properly...". I tried to fix this by installing .Net Framework 2.0 (which did not solve the problem) and then using the setup wizard. This eventually worked but I don't know why. I want to be able to run my program from a USB key, without any installation or download. This should be possible since I'm not using the .NET Framework (at least not intentionnally...). I've never had this kind of problem with VS 6.0. Any idea of what I need to do with VS 2005 to make my program standalone ? Thanks

    H S 2 Replies Last reply
    0
    • T Tnarol

      Hi, I have a basic Visual C++/MFC program written with VS .Net 2005 but that doesn't use .NET Framework. I tried to run it on another PC, and it didn't work although I had all the required DLLs in the same directory. It said something like "application could not initialize properly...". I tried to fix this by installing .Net Framework 2.0 (which did not solve the problem) and then using the setup wizard. This eventually worked but I don't know why. I want to be able to run my program from a USB key, without any installation or download. This should be possible since I'm not using the .NET Framework (at least not intentionnally...). I've never had this kind of problem with VS 6.0. Any idea of what I need to do with VS 2005 to make my program standalone ? Thanks

      H Offline
      H Offline
      Hamid Taebi
      wrote on last edited by
      #2

      maybe you used from services that are only in your system or dlls files_**


      **_

      whitesky


      T 1 Reply Last reply
      0
      • T Tnarol

        Hi, I have a basic Visual C++/MFC program written with VS .Net 2005 but that doesn't use .NET Framework. I tried to run it on another PC, and it didn't work although I had all the required DLLs in the same directory. It said something like "application could not initialize properly...". I tried to fix this by installing .Net Framework 2.0 (which did not solve the problem) and then using the setup wizard. This eventually worked but I don't know why. I want to be able to run my program from a USB key, without any installation or download. This should be possible since I'm not using the .NET Framework (at least not intentionnally...). I've never had this kind of problem with VS 6.0. Any idea of what I need to do with VS 2005 to make my program standalone ? Thanks

        S Offline
        S Offline
        Sarath C
        wrote on last edited by
        #3

        even, you hadn't use any CLR APIs, you might have linked with those DLL. change the project settings accrodingly. SaRath.
        _"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"


        My Blog | Understanding State Patte_

        T 1 Reply Last reply
        0
        • H Hamid Taebi

          maybe you used from services that are only in your system or dlls files_**


          **_

          whitesky


          T Offline
          T Offline
          Tnarol
          wrote on last edited by
          #4

          WhiteSky wrote:

          maybe you used from services that are only in your system or dlls files

          I checked every single DLL loaded by my program (using "attach to process..." in visual studio) and copied them to the program directory.

          1 Reply Last reply
          0
          • S Sarath C

            even, you hadn't use any CLR APIs, you might have linked with those DLL. change the project settings accrodingly. SaRath.
            _"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"


            My Blog | Understanding State Patte_

            T Offline
            T Offline
            Tnarol
            wrote on last edited by
            #5

            Sarath.even, you hadn't use any CLR APIs, you might have linked with those DLL.

            I'm not using the "/clr" option in the compile command line... Is there anything else that can make me link with unused DLLs ?

            S 1 Reply Last reply
            0
            • T Tnarol

              Sarath.even, you hadn't use any CLR APIs, you might have linked with those DLL.

              I'm not using the "/clr" option in the compile command line... Is there anything else that can make me link with unused DLLs ?

              S Offline
              S Offline
              Sarath C
              wrote on last edited by
              #6

              are you linking with MFC DLLs? I dont know more about executable created by VC++ 2005 Check with Dependency walker SaRath.
              _"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"


              My Blog | Understanding State Patte_

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups