blagd1b Posted February 25, 2005 Report Posted February 25, 2005 :?: I have created a VB program that reads various data from FS via FSUIPC (3.45), this works fine for offsets upto and including Hex6000 (FS2004 GPS data). However, whenever I read data beyond this area, e.g. C00C (weather dynamics) or E000 (AI ground traffic), the returned values are always zero. If I use FSInterrogate to look at these offsets there is definitely non-zero data present. Why can I get correct data for most offsets but not for C00C onwards (which are mostly (?) FS2004 specific data)? Thanks in anticipation. Brian
Thomas Molitor Posted February 25, 2005 Report Posted February 25, 2005 Hi, try to add the char "&" behind those HEX values. Example: &HC000&. This should work fine. The problem is that VB thinks that &HC000 is a negative integer value. Using "&" will force a Long value in VB. Hope this helps Thomas
blagd1b Posted February 25, 2005 Author Report Posted February 25, 2005 Thanks, that has solved the problem!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now