Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I want to make a plugin for FSX in C/C++ but all the examples and documentation forward to the SimConnect Examples for FSX.

I want to access USB-hardware from the plugin and for this reason I'm looking for a way to write a plugin in C/C++ which does not rely on the SimConnect interface.

share|improve this question
add comment

1 Answer

I don't know if this helps you with FSX, however documentation for FS2004 modules has always been rare too, so this might be of help.

Here's an example of an FS2004 module: http://pastebin.com/AQG2H0Vc (written by myself, public domain). From my experience the APIs haven't changed that much so with a bit of luck you'll be able to adopt the example for FSX.

Important is the Linkage global variable (type GAUGESLINKAGE) because it includes the MSFS version (0x900 in the example) and callback functions that MSFS shall call. I don't remember exactly what ImportTable was for, however if you're not writing code for gauges, you may just ignore it for now.

Have you checked the SDK that is shipped with the FSX Pro/Deluxe edition?

share|improve this answer
    
Thanks for the sample code, I will try to create a plugin for FSX with it. –  taco24 Apr 5 '11 at 14:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.