Jump to content
The simFlight Network Forums

Does this work for C# MSFS developers?


ZenMusicSoaring
 Share

Recommended Posts

1. Where can I get a description of what this software does ? I'm just looking for something to access the L var etc. in MSFS from my application (C# and C++)

2. My C# application (uses MSFS SDK and simconnect) is 90% complete but has many holes where I've not been able to map events to MSFS. Will this fill in what I'm missing?

 

thanks for beginner's question .. I'm a professional programmer and a commercial pilot and CFI-G instructor ...

Link to comment
Share on other sites

9 hours ago, ZenMusicSoaring said:

1. Where can I get a description of what this software does ? I'm just looking for something to access the L var etc. in MSFS from my application (C# and C++)

To access lvars (+ hvars and ability to execute any calculator code) from c#, you can use the FSUIPC WASM module with the WAPI dll wrapper, available here: http://www.fsuipc.com/. The dll is just a C wrapper around the .lib. Both are also available on github - see
  FSUIPC WASM API library:   https://github.com/jldowson/FSUIPC_WAPI
  DLL wrapper:  https://github.com/jldowson/FSUIPC_WDLL 
  test client: https://github.com/jldowson/WASMClient

I will also put the WASM on github at some point....

9 hours ago, ZenMusicSoaring said:

2. My C# application (uses MSFS SDK and simconnect) is 90% complete but has many holes where I've not been able to map events to MSFS. Will this fill in what I'm missing?

You should also take a look at Paal Henty's .Net dll client - this uses the FSUIPC WAPI  (as well as the FSUIPC SDK) - see https://forum.simflight.com/forum/167-fsuipc-client-dll-for-net/

John

P.S. You can also just download FSUIPC7, install it and look in the SDK folder. All programming features are free to use (no license required).
However, as you are already using Simconnect and jyst require access to lvars/hvars, its probably only the WAPI / WAPID inrterface that you may want ti use, but that may be easier to access via Paul's .net client dll (see http://fsuipc.paulhenty.com/#home)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.