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. Package VC++ as static standalone

Package VC++ as static standalone

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
9 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.
  • N Offline
    N Offline
    ng kok chuan
    wrote on last edited by
    #1

    hi, i'm trying to package my console program as a static standalone, i.e. make it such that it does not require any dlls/libs on the client machine. can someone tell me how to do it?? thanks a lot!

    L 1 Reply Last reply
    0
    • N ng kok chuan

      hi, i'm trying to package my console program as a static standalone, i.e. make it such that it does not require any dlls/libs on the client machine. can someone tell me how to do it?? thanks a lot!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      MFC as a statically linked library rather than DLL and make sure you don't specifiy an external DLLs. Elaine :rose: The tigress is here :-D

      N 1 Reply Last reply
      0
      • L Lost User

        MFC as a statically linked library rather than DLL and make sure you don't specifiy an external DLLs. Elaine :rose: The tigress is here :-D

        N Offline
        N Offline
        ng kok chuan
        wrote on last edited by
        #3

        hi, thanks for replying. what do u mean by don't specify an external dll? i'm using oracle and so, i do have to use a certain oracl32.lib would that be what u mean?

        C 1 Reply Last reply
        0
        • N ng kok chuan

          hi, thanks for replying. what do u mean by don't specify an external dll? i'm using oracle and so, i do have to use a certain oracl32.lib would that be what u mean?

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          Then I think this won't be possible then. Unless you have lib file provided so you can statically link it instead of dynamically...

          N 1 Reply Last reply
          0
          • C Cedric Moonen

            Then I think this won't be possible then. Unless you have lib file provided so you can statically link it instead of dynamically...

            N Offline
            N Offline
            ng kok chuan
            wrote on last edited by
            #5

            yes, i do have the lib file. u mean *.lib right? i have that. so how can i statically link it?

            C 1 Reply Last reply
            0
            • N ng kok chuan

              yes, i do have the lib file. u mean *.lib right? i have that. so how can i statically link it?

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              Normally (but I'm not sure), you can go to the project settings somewhere and specify all the libraries you are using. But I don't remember exactly where and I don't have VC++ installed here...

              N 1 Reply Last reply
              0
              • C Cedric Moonen

                Normally (but I'm not sure), you can go to the project settings somewhere and specify all the libraries you are using. But I don't remember exactly where and I don't have VC++ installed here...

                N Offline
                N Offline
                ng kok chuan
                wrote on last edited by
                #7

                i've already done the settings. the problem arises when i try to use another computer that doesn't have the libraries already installed. when i do so, the program won't work and it will complain that the libraries are not available. the problem is i can only have one file to push, as i'm doing a activex object. so i need to package those additional dlls/libs into the dll that i'm creating. please help, i'm tearing my hair out! :(

                C 1 Reply Last reply
                0
                • N ng kok chuan

                  i've already done the settings. the problem arises when i try to use another computer that doesn't have the libraries already installed. when i do so, the program won't work and it will complain that the libraries are not available. the problem is i can only have one file to push, as i'm doing a activex object. so i need to package those additional dlls/libs into the dll that i'm creating. please help, i'm tearing my hair out! :(

                  C Offline
                  C Offline
                  Cedric Moonen
                  wrote on last edited by
                  #8

                  ng kok chuan wrote: the problem is i can only have one file to push, as i'm doing a activex object. so i need to package those additional dlls/libs into the dll that i'm creating. ?? Uhh... Why ?? An active X can use external dll, what is the problem here ?? You just need to ship all the files

                  N 1 Reply Last reply
                  0
                  • C Cedric Moonen

                    ng kok chuan wrote: the problem is i can only have one file to push, as i'm doing a activex object. so i need to package those additional dlls/libs into the dll that i'm creating. ?? Uhh... Why ?? An active X can use external dll, what is the problem here ?? You just need to ship all the files

                    N Offline
                    N Offline
                    ng kok chuan
                    wrote on last edited by
                    #9

                    it's cos the other files can't be installed as dlls. i'm using dlls from oracle and visual studio c++, and in order to use those dlls, it requires oracle and vc++ to be installed. i've tried registering the files manually but it doesn't work. hence the requirement to package as a static file instead of using dlls. sigh, weird solution to a weird problem...

                    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