I have gotten lots of inquiries about how to build module DLLs for Microsoft Flight Simulator. I have taken the relevant code out of SquawkBox 3 as an example of this. You can download it from the downloads page.
I would be happy to receive feedback about whether this is useful to you.