FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > SimConnect > SimConnect

SimConnect Use this forum for all your SimConnect related discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 25 Aug 2010, 13:42
bcs112 bcs112 is offline
  belgium
Join Date: Mar 2006
Posts: 47
Read XML variables through simconnect ?

Hi,

Was wondering if it is possible to read XML variables as created using the

registered_named_variable

macro (think you XML guys call them "L:" variables ?), can be read through simconnect. I have created a dll module and now I want it to be able to communicate with the rest of my panel/gauges!

I have tried using:

hr = SimConnect_AddToDataDefinition(hSimConnect, TEST, "L:TestVariable", "number");

and then

hr = SimConnect_RequestDataOnSimObjectType(hSimConnect, REQUEST, TEST, 0, SIMCONNECT_SIMOBJECT_TYPE_USER);

But that doesn't seem to return anything usefull. Note that standard FSX XML variables work well using this technique...

Can anyone help me out here ?

Thanks,
Björn
__________________
Björn Comhaire
Lead developer - SimCheck A300B4-200
Reply With Quote
  #2  
Old 03 Sep 2010, 01:54
bcs112 bcs112 is offline
  belgium
Join Date: Mar 2006
Posts: 47
Just a short check? Did no one ever get this to work or is this the kind of data that people don't want to share? Or is this just a stupid question ?

Björn
__________________
Björn Comhaire
Lead developer - SimCheck A300B4-200
Reply With Quote
  #3  
Old 03 Sep 2010, 06:35
Simon853 Simon853 is offline
 
Join Date: Jan 2007
Posts: 517
As far as I believe, you can't get to Lvars like that. I'm surprised you say it works with Avars, if you mean you're preceding them with A: in the SimConnect_AddToDataDefinition call.

The only way I know to pass them to an out of process simconnect client would be to do so via an in-process client in a gauge dll and a shared client data area.

Si
Reply With Quote
  #4  
Old 03 Sep 2010, 07:02
bcs112 bcs112 is offline
  belgium
Join Date: Mar 2006
Posts: 47
Hi Simon,

Reading Avars is without the preceding "A:" you are right, I never even tried with the "A:".

Björn
__________________
Björn Comhaire
Lead developer - SimCheck A300B4-200
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[FSX] SimConnect does not return any data lordofwings SimConnect 0 02 Aug 2010 12:52
SimConnect variables panchon SimConnect 1 29 Jul 2010 14:27
[FSXA] Simconnect to read FSX in other PC mendiola_loyola SimConnect 2 23 Jun 2009 12:48
FSUIPC & Simmconnect version pb Yamasuki SimConnect 0 09 May 2008 08:28
SimConnect Simulator Variables FlapsOut SimConnect 3 12 Jun 2007 19:24


All times are GMT -4. The time now is 20:26.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.