xumepoc Posted February 19, 2010 Report Share Posted February 19, 2010 I'm a bit new to this. I want to write Scenery BGL variable ―usrvr2 and I did a C code module, but in BOOL FSUIPC_Write(DWORD dwOffset, DWORD dwSize, void *pSrce, DWORD *pdwResult); what type should void *pSrce be for that case? Also if I try to test to set the variable from FS-Interrogate2 it stays always 0 (I guess it gets overwritten ), what I'm doing wrong there? Link to comment Share on other sites More sharing options...
Pete Dowson Posted February 19, 2010 Report Share Posted February 19, 2010 I'm a bit new to this. I want to write Scenery BGL variable ―usrvr2 and I did a C code module, but in BOOL FSUIPC_Write(DWORD dwOffset, DWORD dwSize, void *pSrce, DWORD *pdwResult); what type should void *pSrce be for that case? Also if I try to test to set the variable from FS-Interrogate2 it stays always 0 (I guess it gets overwritten ), what I'm doing wrong there? What version of FS? I'm pretty certain the BGL variables aren't accessible in FSX, and only one set is usable in FS9. The types of variables are irrelevant to the FSUIPC interface at the "FSUIPC_Write" level, because all the interface actually deals in is bytes -- or unsigned characters if you like. If the variable is a 2-byte value then your source could be a WORD or a short or simply the lower 16 bits of a 32-bit integer, and so on. Up to you really. Regards Pete Link to comment Share on other sites More sharing options...
xumepoc Posted February 19, 2010 Author Report Share Posted February 19, 2010 HI Pete, thanks for the fast reply. Yes the FS version is 9. Will try it. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now