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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. running program across PCs

running program across PCs

Scheduled Pinned Locked Moved C / C++ / MFC
questionannouncement
7 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.
  • K Offline
    K Offline
    koumodaki
    wrote on last edited by
    #1

    I have written a program that enumetares a USB devices connected to a PC and obtains all the interface strings. I am using SetupDI APIs I compile the program on PC1 and everything works fine. When I copy the executable of my program [along with all files in release dir] to a different PC, say PC2 and execute it, the program does not return any USB interface strings. But when I compile my program on the PC2 and run it, I get all the USB interface strings Why does this happen? The configurations of both the PCs are same.

    L 1 Reply Last reply
    0
    • K koumodaki

      I have written a program that enumetares a USB devices connected to a PC and obtains all the interface strings. I am using SetupDI APIs I compile the program on PC1 and everything works fine. When I copy the executable of my program [along with all files in release dir] to a different PC, say PC2 and execute it, the program does not return any USB interface strings. But when I compile my program on the PC2 and run it, I get all the USB interface strings Why does this happen? The configurations of both the PCs are same.

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Deploying C++ applications[^]

      led mike

      D 1 Reply Last reply
      0
      • L led mike

        Deploying C++ applications[^]

        led mike

        D Offline
        D Offline
        David Crow
        wrote on last edited by
        #3

        How so, Mike? It sounds as though the second machine indeed has Visual Studio on it.

        "Love people and use things, not love things and use people." - Unknown

        "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

        L 1 Reply Last reply
        0
        • D David Crow

          How so, Mike? It sounds as though the second machine indeed has Visual Studio on it.

          "Love people and use things, not love things and use people." - Unknown

          "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          Just a wild guess, I really had no concrete ideas from reading his post. Should I not have done that?

          led mike

          D 1 Reply Last reply
          0
          • L led mike

            Just a wild guess, I really had no concrete ideas from reading his post. Should I not have done that?

            led mike

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            More often than not, the answer to "Why won't my VC++ application run on a machine other than the one it was compiled on?" is either the reason you stated, or the application was mistakingly compiled in debug mode. However, he indicated that both machines had VS installed. I'm still baffled.

            "Love people and use things, not love things and use people." - Unknown

            "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

            L 1 Reply Last reply
            0
            • D David Crow

              More often than not, the answer to "Why won't my VC++ application run on a machine other than the one it was compiled on?" is either the reason you stated, or the application was mistakingly compiled in debug mode. However, he indicated that both machines had VS installed. I'm still baffled.

              "Love people and use things, not love things and use people." - Unknown

              "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              DavidCrow wrote:

              he indicated that both machines had VS installed.

              Not all installations of VS are equal, for example a Platform SDK difference. No reason to be baffled given the lack of information we have, this thread calls for a :beer: :)

              led mike

              D 1 Reply Last reply
              0
              • L led mike

                DavidCrow wrote:

                he indicated that both machines had VS installed.

                Not all installations of VS are equal, for example a Platform SDK difference. No reason to be baffled given the lack of information we have, this thread calls for a :beer: :)

                led mike

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                led mike wrote:

                Not all installations of VS are equal, for example a Platform SDK difference.

                But didn't the code compile fine on both machines? If the code was using something specific to the SDK or the DDK, and one of the machines did not have that, I would expect a compile error, not a run-time error.

                led mike wrote:

                ...given the lack of information we have...

                Agreed.

                "Love people and use things, not love things and use people." - Unknown

                "To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne

                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