§ ¶Bug in XInput/DirectInput detection sample
MSDN has code to detect whether a controller device enumerated by the DirectInput API is also an XInput device, so that programs can avoid reporting the same controller twice when both APIs are supported:
Be warned, there is a memory leak in the supplied IsXInputDevice() function: the VARIANT returned by IWbemClassObject::Get() needs to be freed with VariantClear() after the device string is checked. This is hard to notice if you just drop in the code, as it only triggers on device enumeration and that likely only happens on startup or when a device change notification is received. I only noticed it because I temporarily modified my device enumeration code to run in a loop to see how fast (or slow) the WMI-based check would be.
Unluckily, MSDN has a lot of bugs in official code...
Orlando (link) - 26 02 14 - 19:55
Long time no see!
Marcio - 24 04 14 - 15:05
After a year of silence....I should really stop checking back here.....
.....but I won't. Obviously :)
Nic - 29 12 14 - 07:32
a times of very I wish to the says you. I remembered now. I want to be fixed Altirra Errors by you. Please I can help to you. Yo can help to me. default altirra error is give a those are message: "save state is invalid". writable an .altstate. However not readable an .altstate. Altirra problems is 4.0,5.0,6.0,7.0. I use to the 4.0 sinse. However there is routine by an error. Very importent. I have not saparate options. Because I want to just use my Atari Altirra. Altirra is very best Emulatör. 4.0-7.0 problem. Resolving the alati altirra. Very big problem for atari altirra and I.
Onur Angün (link) - 23 12 15 - 00:34
Since there is no more forum where is the right place to ask questions about VirtualDub?
kfft - 01 01 16 - 22:44
Hot air... ignore if busy. I am SO impressed! I'm enjoying your blog, your documentation, and your software. I just want to say thanks, and offer some appreciation for a great solution to problems too complex for most of us to deal with. I did a little programming, back in the DOS days, but I can't keep up when it has nothing to do with my real job. You've done great work, and provided some great entertainment. Thanks!
Jim - 02 01 16 - 08:56
Please keep comments on-topic for this entry.
If you have unrelated comments about VirtualDub, the forum is a better place to post them.