First of all big respect to Tim for his replacement for simconnect.
I was using the old simconnect but hit a brick wall sending multiple waypoints to an AI. Comments elsewhere suggest this is a marshalling problem.
Anyway, thought I'd try Tim's software and sure enough it works perfectly.
However I've hit another brick wall, I can't work out to create objects to receive data back into them. I can't work out how to translate the examples in C# to VB.
The call I'm making is this sc.RequestDataOnSimObjectType(Requests.PlaneUpdate, 200000, SIMCONNECT_SIMOBJECT_TYPE.ALL, MyClass)
The error I get back is Attempt to register a data structure that is not tagged with the DataStruct attribute
So somehow I need to add the DataStruct attribute to MyClass and I can't work out how to do this.
Can anybody post an example of how a class needs to be written?
Thanks in advance.
I was using the old simconnect but hit a brick wall sending multiple waypoints to an AI. Comments elsewhere suggest this is a marshalling problem.
Anyway, thought I'd try Tim's software and sure enough it works perfectly.
However I've hit another brick wall, I can't work out to create objects to receive data back into them. I can't work out how to translate the examples in C# to VB.
The call I'm making is this sc.RequestDataOnSimObjectType(Requests.PlaneUpdate, 200000, SIMCONNECT_SIMOBJECT_TYPE.ALL, MyClass)
The error I get back is Attempt to register a data structure that is not tagged with the DataStruct attribute
So somehow I need to add the DataStruct attribute to MyClass and I can't work out how to do this.
Can anybody post an example of how a class needs to be written?
Thanks in advance.


