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. Application failed to start because .dll not found

Application failed to start because .dll not found

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++visual-studio
16 Posts 6 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.
  • A Offline
    A Offline
    ashishbhatt 0
    wrote on last edited by
    #1

    Hi All, I have read many forum answers on this error but I could not found solution. I am using MFC Application in VS 2005. I my application I have created one .dll file named VNCHooks.dll which is running before the my MFC solution .exe file. Now when I run it uising F5 I got tjhe error like below.... This application has failed to start because VNCHooks.dll was not found.Re-installing the application may fix this problem. in the Messagebox. I tried it to copy in C:\WINDOWS\system32 but it still gave me same error.Before some time it was working very nice but suddendly it got problem. So, kindly reply if you got some solution or any suggetion. Thanks in Advance.

    Ashish Bhatt

    A H C P T 5 Replies Last reply
    0
    • A ashishbhatt 0

      Hi All, I have read many forum answers on this error but I could not found solution. I am using MFC Application in VS 2005. I my application I have created one .dll file named VNCHooks.dll which is running before the my MFC solution .exe file. Now when I run it uising F5 I got tjhe error like below.... This application has failed to start because VNCHooks.dll was not found.Re-installing the application may fix this problem. in the Messagebox. I tried it to copy in C:\WINDOWS\system32 but it still gave me same error.Before some time it was working very nice but suddendly it got problem. So, kindly reply if you got some solution or any suggetion. Thanks in Advance.

      Ashish Bhatt

      A Offline
      A Offline
      Anu_Bala
      wrote on last edited by
      #2

      Hi, Some days bfore i got the same problem.We are using third party dll.It was working fine.but one day it shows error. I made this,then it works fien.Pls follow this 1)Type REGSVR32 VNCHooks.dll in ur Run Command and click OK. It shows the message like DLLregisterServer succeeded. THen it works fine. Bye

      Anu

      A 1 Reply Last reply
      0
      • A ashishbhatt 0

        Hi All, I have read many forum answers on this error but I could not found solution. I am using MFC Application in VS 2005. I my application I have created one .dll file named VNCHooks.dll which is running before the my MFC solution .exe file. Now when I run it uising F5 I got tjhe error like below.... This application has failed to start because VNCHooks.dll was not found.Re-installing the application may fix this problem. in the Messagebox. I tried it to copy in C:\WINDOWS\system32 but it still gave me same error.Before some time it was working very nice but suddendly it got problem. So, kindly reply if you got some solution or any suggetion. Thanks in Advance.

        Ashish Bhatt

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

        Regsvr32.exe is an application that used to register Dlls and activex controls,did you use of it?

        A 1 Reply Last reply
        0
        • A Anu_Bala

          Hi, Some days bfore i got the same problem.We are using third party dll.It was working fine.but one day it shows error. I made this,then it works fien.Pls follow this 1)Type REGSVR32 VNCHooks.dll in ur Run Command and click OK. It shows the message like DLLregisterServer succeeded. THen it works fine. Bye

          Anu

          A Offline
          A Offline
          ashishbhatt 0
          wrote on last edited by
          #4

          I have already tried what you are trying to say but I got message like below..... LoadLibrary("VNCHooks.dll")failed- The specified module could not be found. And also I tried it to put this dll into System32 folder but it stil gave me the same error. Do you have any other suggetion? then give me.I will appreciate them. Thanks.

          Ashish Bhatt

          1 Reply Last reply
          0
          • H Hamid Taebi

            Regsvr32.exe is an application that used to register Dlls and activex controls,did you use of it?

            A Offline
            A Offline
            ashishbhatt 0
            wrote on last edited by
            #5

            You can see my above post as I have posted. if you any more suggetion then give me. Thanks.

            Ashish Bhatt

            H 1 Reply Last reply
            0
            • A ashishbhatt 0

              You can see my above post as I have posted. if you any more suggetion then give me. Thanks.

              Ashish Bhatt

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

              If you used of Regsvr32.exe previous whats its message?

              A 1 Reply Last reply
              0
              • H Hamid Taebi

                If you used of Regsvr32.exe previous whats its message?

                A Offline
                A Offline
                ashishbhatt 0
                wrote on last edited by
                #7

                LoadLibrary("VNCHooks.dll")failed- The specified module could not be found. In messagebox.

                Ashish Bhatt

                H 1 Reply Last reply
                0
                • A ashishbhatt 0

                  LoadLibrary("VNCHooks.dll")failed- The specified module could not be found. In messagebox.

                  Ashish Bhatt

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

                  Windows searches for dlls in this folder 1. c:\windows 2. c:\Windows\system32 3. c:\Windows\system 4. App's current directory 5. App's startup directory 6. Path environment variable sometimes you can see this error for one or more DLL's in many cases windows uses of Path environment variable to find additional dlls Can you use of other OS for register your dll and see result

                  A 1 Reply Last reply
                  0
                  • A ashishbhatt 0

                    Hi All, I have read many forum answers on this error but I could not found solution. I am using MFC Application in VS 2005. I my application I have created one .dll file named VNCHooks.dll which is running before the my MFC solution .exe file. Now when I run it uising F5 I got tjhe error like below.... This application has failed to start because VNCHooks.dll was not found.Re-installing the application may fix this problem. in the Messagebox. I tried it to copy in C:\WINDOWS\system32 but it still gave me same error.Before some time it was working very nice but suddendly it got problem. So, kindly reply if you got some solution or any suggetion. Thanks in Advance.

                    Ashish Bhatt

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

                    Copy the dll in the same folder than your application.


                    Cédric Moonen Software developer
                    Charting control [v1.2]

                    A 1 Reply Last reply
                    0
                    • H Hamid Taebi

                      Windows searches for dlls in this folder 1. c:\windows 2. c:\Windows\system32 3. c:\Windows\system 4. App's current directory 5. App's startup directory 6. Path environment variable sometimes you can see this error for one or more DLL's in many cases windows uses of Path environment variable to find additional dlls Can you use of other OS for register your dll and see result

                      A Offline
                      A Offline
                      ashishbhatt 0
                      wrote on last edited by
                      #10

                      ya I have searched this dll in all paths as u told. And let me remind u that this is my application's dll so it is created in my debug folder when I compiled my project.And also I tried to put this dll in c:\windows\system32 then still I got same error. thanks.

                      Ashish Bhatt

                      H 1 Reply Last reply
                      0
                      • C Cedric Moonen

                        Copy the dll in the same folder than your application.


                        Cédric Moonen Software developer
                        Charting control [v1.2]

                        A Offline
                        A Offline
                        ashishbhatt 0
                        wrote on last edited by
                        #11

                        ya I have my dll in my same folder as my application

                        Ashish Bhatt

                        A 1 Reply Last reply
                        0
                        • A ashishbhatt 0

                          ya I have my dll in my same folder as my application

                          Ashish Bhatt

                          A Offline
                          A Offline
                          ashishbhatt 0
                          wrote on last edited by
                          #12

                          By the way I got solution by removing that dll project and once again add it to workspace. At present it is working nice. If I will get some problem then I will contact you later. But I realy want to know the reason why this happened for my knowledge point of view. Thanks to All.

                          Ashish Bhatt

                          C 1 Reply Last reply
                          0
                          • A ashishbhatt 0

                            ya I have searched this dll in all paths as u told. And let me remind u that this is my application's dll so it is created in my debug folder when I compiled my project.And also I tried to put this dll in c:\windows\system32 then still I got same error. thanks.

                            Ashish Bhatt

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

                            Maybe your dll needs to load other dlls and it cant,can you check your dll on other OS?

                            1 Reply Last reply
                            0
                            • A ashishbhatt 0

                              Hi All, I have read many forum answers on this error but I could not found solution. I am using MFC Application in VS 2005. I my application I have created one .dll file named VNCHooks.dll which is running before the my MFC solution .exe file. Now when I run it uising F5 I got tjhe error like below.... This application has failed to start because VNCHooks.dll was not found.Re-installing the application may fix this problem. in the Messagebox. I tried it to copy in C:\WINDOWS\system32 but it still gave me same error.Before some time it was working very nice but suddendly it got problem. So, kindly reply if you got some solution or any suggetion. Thanks in Advance.

                              Ashish Bhatt

                              P Offline
                              P Offline
                              Peter Weyzen
                              wrote on last edited by
                              #14

                              You should run a dependency check on your exe and your DLL. It should help you determine what other DLL's are required to load yours. Get this utility: Dependency Walker[^]

                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Peter Weyzen Staff Engineer [SoonR Inc -- PC Power delivered to your phone](http://www.soonr.com)

                              1 Reply Last reply
                              0
                              • A ashishbhatt 0

                                By the way I got solution by removing that dll project and once again add it to workspace. At present it is working nice. If I will get some problem then I will contact you later. But I realy want to know the reason why this happened for my knowledge point of view. Thanks to All.

                                Ashish Bhatt

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

                                You probably pasted your dll in the wrong directory. Remember, when you start your program from the IDE, the working directory is the one where your project file (.vcproj) is, not the folder where the exe is (in general, in the debug folder).


                                Cédric Moonen Software developer
                                Charting control [v1.2]

                                1 Reply Last reply
                                0
                                • A ashishbhatt 0

                                  Hi All, I have read many forum answers on this error but I could not found solution. I am using MFC Application in VS 2005. I my application I have created one .dll file named VNCHooks.dll which is running before the my MFC solution .exe file. Now when I run it uising F5 I got tjhe error like below.... This application has failed to start because VNCHooks.dll was not found.Re-installing the application may fix this problem. in the Messagebox. I tried it to copy in C:\WINDOWS\system32 but it still gave me same error.Before some time it was working very nice but suddendly it got problem. So, kindly reply if you got some solution or any suggetion. Thanks in Advance.

                                  Ashish Bhatt

                                  T Offline
                                  T Offline
                                  ThatsAlok
                                  wrote on last edited by
                                  #16

                                  ashishbhatt wrote:

                                  This application has failed to start because VNCHooks.dll was not found.Re-installing the application may fix this problem.

                                  try copying it with same folder as of executable

                                  "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
                                  Never mind - my own stupidity is the source of every "problem" - Mixture

                                  cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

                                  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