|
Post by vicciu on Sept 5, 2018 10:36:53 GMT
Hi, I'm trying to build a feeder app in c# using visual studio 2017, however when I run the app, it crashes with the following message: "System.DllNotFoundException: 'Unable to load DLL 'vJoyInterface.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)' "
I added the wrapper reference, both the wrapper and the library are in the same folder and I have all the Visual C++ Redistributables from 2010 to 2017 installed. Is there anything else that I'm missing?
EDIT: Problem fixed now, it seems that visual studio wants the library to be copied in the bin folder, just a reference is not enough.
|
|
|
Post by Dennis on Sept 6, 2018 17:13:55 GMT
I have the Same Problem but your solution don't work for me, i became the error "System.BadImageFormatException". I use Visual Studio 2017.
|
|
|
Post by Shaul (Admin) on Sept 6, 2018 19:10:40 GMT
Well, older DLLs are compatible. They might require somassaging though.
|
|
|
Post by Dennis on Sept 7, 2018 10:43:09 GMT
Okey, I try this later. Thank you.
|
|
|
Post by Dennis on Sept 7, 2018 11:24:53 GMT
But it still does not work. I Downloadet the SDK from sourceforge and vJoy.exe after the installation i add the vJoyInterfaceWrap.dll to my Project this work fine but when i start my Programm it says me
"System.BadImageFormatException: "Die Datei oder Assembly "vJoyInterfaceWrap, Version=0.2.1.6, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden. Es wurde versucht, eine Datei mit einem falschen Format zu laden."(Its German sorry)
I hope you can help me.
|
|
|
Post by Guest on Nov 24, 2018 17:12:37 GMT
I know it's an old thread but here's the solution. The latest VJoy build(2.1.8.39-270518) seems to be compiled using .NET framework v2.0 so if You want to be 100% sure that everything will work fine then use that version, however I've also manged to get v3.5 to import the libraries. In VS 2017 You can change the framework during project creation and in solution properties. Once that's done add the reference to vJoyInterfaceWrap.dll to your project, then add the vJoyInterface.dll file as an item and set its "Copy to output directory" property to "Copy always". Make sure You're using the files from SDK/C# folder and not the C++ libraries.
|
|