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. Visual Studio
  4. Problem with location the DLL

Problem with location the DLL

Scheduled Pinned Locked Moved Visual Studio
helpcsharpvisual-studio
5 Posts 4 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.
  • E Offline
    E Offline
    Evil Lord
    wrote on last edited by
    #1

    I have following code in my app: [DllImport("C0.DLL", EntryPoint = "#1")] public static extern void Operate(string input, string output); ... private void GenerateAsmCode() { ... Operate(inputFileName, outputFileName); } where C0.dll is unmanaged DLL written in C, it works ok on computers with Visual Studio 2005 installed, and it fails with "System.DllNotFoundException: Unable to load DLL 'C0.DLL': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" on computers where VS2005 not installed. please help me to fix this bug thank you in advance!

    The Dark Side of the Force is a pathway to many abilities some consider to be unnatural...

    S 1 Reply Last reply
    0
    • E Evil Lord

      I have following code in my app: [DllImport("C0.DLL", EntryPoint = "#1")] public static extern void Operate(string input, string output); ... private void GenerateAsmCode() { ... Operate(inputFileName, outputFileName); } where C0.dll is unmanaged DLL written in C, it works ok on computers with Visual Studio 2005 installed, and it fails with "System.DllNotFoundException: Unable to load DLL 'C0.DLL': The specified module could not be found. (Exception from HRESULT: 0x8007007E)" on computers where VS2005 not installed. please help me to fix this bug thank you in advance!

      The Dark Side of the Force is a pathway to many abilities some consider to be unnatural...

      S Offline
      S Offline
      songjacky
      wrote on last edited by
      #2

      Hello How do u do ! That must be computer system have no msvcrt70.dll Copy that dll to system directory . And then OK result. Goog luck. Written by songJacky.. :cool:

      E A 2 Replies Last reply
      0
      • S songjacky

        Hello How do u do ! That must be computer system have no msvcrt70.dll Copy that dll to system directory . And then OK result. Goog luck. Written by songJacky.. :cool:

        E Offline
        E Offline
        Evil Lord
        wrote on last edited by
        #3

        Thank you for advice, but unfortunately file "msvcrt70.dll" hasn't been found on my local drives nor in the GAC ((

        The Dark Side of the Force is a pathway to many abilities some consider to be unnatural...

        D 1 Reply Last reply
        0
        • E Evil Lord

          Thank you for advice, but unfortunately file "msvcrt70.dll" hasn't been found on my local drives nor in the GAC ((

          The Dark Side of the Force is a pathway to many abilities some consider to be unnatural...

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          You won't find this file in the GAC. It's part of the Visual C++ runtime library and should be in the C:\Windows\System32 folder. You can find the redistributable runtime package here[^].

          Dave Kreskowiak Microsoft MVP - Visual Basic

          1 Reply Last reply
          0
          • S songjacky

            Hello How do u do ! That must be computer system have no msvcrt70.dll Copy that dll to system directory . And then OK result. Goog luck. Written by songJacky.. :cool:

            A Offline
            A Offline
            Alex Cohn
            wrote on last edited by
            #5

            Only that for VS 2005 it will be msvcrt80.dll and a bunch of others. Also you need manifest files for these DLLs if you run it on Windows XP.

            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