Hi all,
I have searched through the forum for a couple of hours now and had no luck, so I must revert to asking for help, for yet another person trying to interface with FS2002 using Visual Basic.
Here's my issue: I'm trying to write a statement to update the Radio Audio Switches (COM1 vs. COM2 is active, Marker Sound, etc). Looking at the SDK documentation, it says to set the pSrce value to something similar to the following:
2^7 COM1 transmit
2^6 COM2 transmit
2^5 COM receive both
Using simple multiplication, 2^7=128. If I perform an FSUIPC_Read, the value received is 128. However, if I pass that to FS2002 with FSUIPC_Write I get a Windows error stating that the memory address cannot be read/written to.
I'm guessing I must be missing something obvious when interpreting the 2^7 setting, so any help that anyone can offer would be much appreciated.
Thanks for your help,
Chris