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. Managed C++/CLI
  4. Interop problem

Interop problem

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++comhelpquestion
5 Posts 2 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
    teejayem
    wrote on last edited by
    #1

    I am working on a winamp plugin in managed c++. i have another dll referenced in my project that i need to use (in C#). Everything compiles fine, however when the dll is loaded into winamp it throws a FileNotFoundException stating it can't load the C# dll. the dll is in the same directory as the c++/cli. what do i need to do to get the assembly detected? thanks in advance,

    Don't be overcome by evil, but overcome evil with good

    L 1 Reply Last reply
    0
    • T teejayem

      I am working on a winamp plugin in managed c++. i have another dll referenced in my project that i need to use (in C#). Everything compiles fine, however when the dll is loaded into winamp it throws a FileNotFoundException stating it can't load the C# dll. the dll is in the same directory as the c++/cli. what do i need to do to get the assembly detected? thanks in advance,

      Don't be overcome by evil, but overcome evil with good

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

      teejayem wrote:

      FileNotFoundException

      Post the exception message

      led mike

      T 1 Reply Last reply
      0
      • L led mike

        teejayem wrote:

        FileNotFoundException

        Post the exception message

        led mike

        T Offline
        T Offline
        teejayem
        wrote on last edited by
        #3

        Could not load file or assembly 'Facebook, Version=1.6.2951.20499, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

        Don't be overcome by evil, but overcome evil with good

        L 1 Reply Last reply
        0
        • T teejayem

          Could not load file or assembly 'Facebook, Version=1.6.2951.20499, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

          Don't be overcome by evil, but overcome evil with good

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

          teejayem wrote:

          it can't load the C# dll. the dll is in the same directory as the c++/cli. what do i need to do to get the assembly detected?

          teejayem wrote:

          assembly 'Facebook, Version=1.6.2951.20499,

          So the DLL is "Facebook.dll"? Does of the DLL match the one in the exception message?

          teejayem wrote:

          I am working on a winamp plugin in managed c++.

          Is the winamp interface to your DLL a native C++ interface? If so then there is probably some way (configuration data) to tell winamp where your DLL is right? So when the .NET runtime is loaded into the Winamp process, the .NET runtime doesn't know anything about the Winamp configuration data that points to the folder with those DLL's. The .NET runtime is using the current working folder of the Winamp process to look for that assembly, plus of course however else it looks for assemblies, but it certainly won't look in a folder that is only known to the Winamp native code.

          led mike

          T 1 Reply Last reply
          0
          • L led mike

            teejayem wrote:

            it can't load the C# dll. the dll is in the same directory as the c++/cli. what do i need to do to get the assembly detected?

            teejayem wrote:

            assembly 'Facebook, Version=1.6.2951.20499,

            So the DLL is "Facebook.dll"? Does of the DLL match the one in the exception message?

            teejayem wrote:

            I am working on a winamp plugin in managed c++.

            Is the winamp interface to your DLL a native C++ interface? If so then there is probably some way (configuration data) to tell winamp where your DLL is right? So when the .NET runtime is loaded into the Winamp process, the .NET runtime doesn't know anything about the Winamp configuration data that points to the folder with those DLL's. The .NET runtime is using the current working folder of the Winamp process to look for that assembly, plus of course however else it looks for assemblies, but it certainly won't look in a folder that is only known to the Winamp native code.

            led mike

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

            yeah the facebook dll does match (version number and everything). you were right though, I put the facebook.dll in the directory where the executable lives (instead of the plugin directory where my plugin lives) and it worked perfectly! I always thought that the dependencies all had to be in the same folder (or else should be registered) and it had me totally messed up. thank you so much!

            Don't be overcome by evil, but overcome evil with good

            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