- Messages
- 368
- Country

I may be being a bit dense as it's my first time using classes but it's time to admit the spaghetti like flow of code I have needs to be more organised.
The issue I've got is that I seem to need to open a SimConnect connection in each function in a class to get it to work, rather than opening it in the main body of code. Oddly this doesn't seem to produce any errors looking at the list of messages in the SimConnect console, even though I've made multiple SimConnect_Open calls with the same handle.
I'm still not happy with this even though it works as it doesn't seem like the right way to go about things! Is there a way of opening a SimConnect connection so it's available to all the classes in a project? Probably best to use smallish words as we appear to be at the bleeding edge of my abilities!
The issue I've got is that I seem to need to open a SimConnect connection in each function in a class to get it to work, rather than opening it in the main body of code. Oddly this doesn't seem to produce any errors looking at the list of messages in the SimConnect console, even though I've made multiple SimConnect_Open calls with the same handle.
I'm still not happy with this even though it works as it doesn't seem like the right way to go about things! Is there a way of opening a SimConnect connection so it's available to all the classes in a project? Probably best to use smallish words as we appear to be at the bleeding edge of my abilities!
