Hi,
I was trying to get vGen (the C# wrapper) running for vXbox devices but with no luck. Then I tried your vXboxInterface Test.exe and it works - the windows "USB plugged in" sound is heard. The SCPUser.exe app show everything fine.
But nothing happens when using vGen. I see that vGen uses the XOutput lib, while vXboxInterface seems to interface directly with the virtual bus, but I haven't dug deeper. If I pinvoke vXboxInterface.dll it works. Here's some example code:
class My {
[DllImport("vXboxInterface.dll")]
static extern bool isVBusExists();
[DllImport("vXboxInterface.dll")]
static extern bool PlugIn(uint idx);
public static void Main() {
var vg = new vGenInterfaceWrap.vGen();
// vGen Test
Console.WriteLine("vGen.isVBusExist(): " + vg.isVBusExist());
Byte nSlots = 0;
vg.GetNumEmptyBusSlots(ref nSlots);
Console.WriteLine("vGen.GetNumEmptyBusSlots(): " + nSlots);
Console.WriteLine("vGen.PlugIn(): " + vg.PlugIn(1));
//vXbox Test
Console.WriteLine("vXbox.isVBusExist(): " + isVBusExists());
Console.WriteLine("vXbox.PlugIn(): " + PlugIn(1));
Console.ReadKey();
}
}
Hi, I was trying to get vGen (the C# wrapper) running for vXbox devices but with no luck. Then I tried your vXboxInterface
Test.exe
and it works - the windows "USB plugged in" sound is heard. TheSCPUser.exe
app show everything fine.But nothing happens when using vGen. I see that vGen uses the XOutput lib, while vXboxInterface seems to interface directly with the virtual bus, but I haven't dug deeper. If I pinvoke vXboxInterface.dll it works. Here's some example code:
The output is:
The
vGen.PlugIn()
fails, butvXbox.PlugIn()
is ok - the "usb plugged in" sound is heard and I can see the device inSCPUser.exe
.I'm testing on Win 7 64bit, but using 32-bit C# app and dlls.
Do you have any ideas why this happens?