I will look into that Beatle.
I feel like an idiot. I found the sample folder. I was copying and pasting from the Reference SDK.

Any way The only problem Im having at the moment is when I Debug I get this error with the Managed_Data_Request Example
The specified module could not be found. (Exception from HRESULT: 0x8007007E)
For this code : Application.Run(new Form1());
If its compiled it wont run in XP I get the above error.
But it works in Vista ?
C#(2008) is Installed on XP(SP3)
Simconnect and FSX are installed on Vista.
Any ideas. My system has a dual boot (Vista & XP) and it's getting annoying having to reboot everytime I want to see it running.
Error when run on XP
Microsost .NET Framework
Unhandled exception has occured in you application. If you click continue the application will ignore this error and atempt to continue. If you click quit, the application will close immediately.
The specified module could not be found. (Exception from HRESULT:
0x8007007E)
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.FileNotFoundException: The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at Managed_System_Event.Form1.DefWndProc(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Managed System Event
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///G:/PROGRAM%20FILES/Microsoft%20Games/Microsoft%20Flight%20Simulator%20X%20SDK/SDK/Core%20Utilities%20Kit/SimConnect%20SDK/Samples/Managed%20System%20Event/Managed%20System%20Event/bin/Release/Managed%20System%20Event.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Any Ideas.
J