Can anyone give me a link for a program that shows you your location?
I've tried this one: http://www.lfsforum.net/showthread.php?t=47675
but i get error when it's initialising or something...
You have to have the pthread2GC.dll in the same dir as EXE for this app to run. Writing a simple X-Y-Z app yourself is a good way to learn InSim basics though...
Can't you just read the source of the MaKaKaZo's app? It's C++ so it's not exactly easy to read, but the basic idea is there.
You don't have to create any button, you just read the X, Y and Z coords from the MCI packet. MCI packet contains CompCar sturcture which holds the coordinates.
If you use extra libs like InSim.NET, you don't even have to know anything about network communication, I suppose tha X-Y-Z positioning can be done very easily with InSim.NET.