Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
FSX - Sim Connect - SDK Documentation

FSX - Sim Connect - SDK Documentation

Ratings: (0)|Views: 14|Likes:
Published by c_s_wagon
Documentation for Microsoft Flight Simulator 10 software development kit.
Documentation for Microsoft Flight Simulator 10 software development kit.

More info:

Published by: c_s_wagon on May 05, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/04/2010

pdf

text

original

http://www.fs-seine-75.com/SDK/Core%20Utilities%20Kit/SimConnect%20SDK/SimConnect.htm
SimConnect SDK Reference
Table of Contents
\u25cf
Overview
\u25cf
Setup
\u25cf
SimConnect API Reference
\u25cf
SimConnect Structures and Enumerations
\u25cf
Programming SimConnect Clients using C#
\u25cf
Working Samples
Overview
The SimConnect SDK can be used by programmers to write add-on components to Microsoft
\u00aeFlight Simulator X

. These components can be written in C, C
++, or, if the managed API calls are being used, any Microsoft .NET lanaguge such as C#.net or VB.
net. Typically the components will perform one or more of the following:

\u25cf
Add the processing for a new complex gauge, or other instrument, to Flight Simulator.
\u25cf
Replace Flight Simulator processing of one or more events with new logic.
\u25cf
Record or monitor a flight.
\u25cf
Extend the mission system of Flight Simulator.
\u25cf
Create and set the flight plans for AI (non-user) aircraft.
\u25cf
Set different weather systems.
\u25cf
Enable new hardware to work with Flight Simulator.
\u25cf
Control an additional camera that the user can optionally select to view.
Setup
This section describes how to set up a development environment for SimConnect.
\u25cf
SimConnect Projects
\u25cf
The SimConnect.ini file
\u25cf
The SimConnect.cfg file
\u25cf
The EXE.xml and DLL.xml files
http://www.fs-seine-75.com/SDK/Core%20Utilities%20Kit/SimConnect%20SDK/SimConnect.htm (1 of 152) [5/05/2010 10:31:10 AM]
http://www.fs-seine-75.com/SDK/Core%20Utilities%20Kit/SimConnect%20SDK/SimConnect.htm
\u25cf
The SimConnect.xml file
\u25cf
Design Considerations
SimConnect Projects
To build SimConnect add-ons, you must use Microsoft \u00ae Visual Studio 2005 or later, or Microsoft \u00ae Visual C
++ 2005 Express Edition or later. To build the project make sure you have completed the following steps.
C/C++ Projects
1. For C or C++ add-ons, start a new Win32 Console Application project if the add-on will have no user

interface. Start a new Win32 Project or MFC Application if the add-on will have a user interface.
2. Include the SimConnect.h header file.
3. Link to the SimConnect.lib library, by addingSimConnect.lib to the Additional Options of the Command

Line (see image below):
4. Build the application using the function calls described in this document.
DLL Projects

1. Create and add a definition file to the project. This is needed because SimConnect expects the exported
namesDLLStart andDLLStop to be undecorated (by default additional characters are added to these
names). The definition file can be created by selecting Project/Add New Item from the main menu in
Visual Studio. Edit the definition (.def) file so it looks like this (where DLL Project is the name of your project):

LIBRARY "DLL Project"
EXPORTS
DLLStart
DLLStop

2. Confirm that the definition file has been added to the project by checking theLinker\Input properties:
http://www.fs-seine-75.com/SDK/Core%20Utilities%20Kit/SimConnect%20SDK/SimConnect.htm (2 of 152) [5/05/2010 10:31:10 AM]
http://www.fs-seine-75.com/SDK/Core%20Utilities%20Kit/SimConnect%20SDK/SimConnect.htm
3. Pay particular attention to the remarks and working samples forSimConnect_CallDispatch.
C#/.NET Projects
1. For C#, or other .NET language add-ons, refer to the special section on Programming SimConnect Clients
using C#.
2. Build the application using the function calls described in this document.
All Projects

1. Ensure theSimConnect.ini file is in your My Documents\Flight Simulator X Files folder. You do not
usually have to make any changes to this file. The SimConnect.ini file provided ensures that the
SimConnect debug window opens to display communication information between the server and the clients.

2. If the client is to work remotely, write aSimConnnect.cfg file for it.
3. Ensure the EXE.xml, DLL.xml filesand SimConnect.xml files are in the <Drive>:\Documents and
Settings\<alias>\Application Data\Microsoft\FSX folder, and edit these files according to the instructions
that follow.
4. Run Flight Simulator X to test your SimConnect client.
The SimConnect.ini file
http://www.fs-seine-75.com/SDK/Core%20Utilities%20Kit/SimConnect%20SDK/SimConnect.htm (3 of 152) [5/05/2010 10:31:10 AM]

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->