NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 81 82 83 84 85 … 93 Next »
references in .net

 
  • 0 Vote(s) - 0 Average
references in .net
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2004-12-12, 10:50 AM
im having trouble with a file reference. i wrote a static class, which uses a reference to a dll and i wrote a form to test it. it worked fine, compile ran smoothly, then i tried using the same class in a plugin. added all the same references and everything. so it compiles but everytime a goto run the static class i get a "one of its dependencies, was not found" error. ive added a few references to the plugin, and all seem fine, this reference looks a little different. for starts it uses "Interop.originaldllname.dll" instead of the original dll, and creates a dll of that name which is only like 6k. also the path of that reference is in my project dir\ob\interop.orginalname.dll (this was also the case in the working form). i have no idea why its doing the reference this way, but im sure this is what is screwing it up. im building the plugin directly to the gbpvr\plugins dir too, so its not going into myproject\bin\debug.

any ideas what im doing wrong, and how i can fix it.

like i could always write another program to do what this does (cdripper to mp3s with id3 tags) but why write another program to do this, when the plugin code do this.

this is really frustrating me.
jasonf
Offline

Member

Posts: 121
Threads: 7
Joined: Oct 2004
#2
2004-12-12, 07:39 PM
The interop dll is probably because the actual DLL that you are referencing is a COM DLL, not a .NET assembly. This is pretty normal (i.e., you must use an interop layer to have .NET use COM).

When the plugin runs, remember that the executable is GBPVR.exe, not your plugin DLL. Therefore, auxillary DLL's probably need to be in the same directory as GBPVR.exe (i.e., not the plugin directory) so they can be located.
JasonF
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2004-12-12, 07:48 PM
thank you jasonf! its working, i cant believe it was that simple. thats was driving me nuts.
hopefully ill have a working alpha of my plugin in the next days, with cd - mp3 (id3 tags and all)



« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode