I got the loc.h file that I wrote down in the beggining, the sniffer.dll and the following main.cpp:

Qt Code:
  1. #include "loc.h"
  2. #include <windows.h>
  3. #include "iostream.h"
  4.  
  5. loc_position_t loc_pos;
  6.  
  7. int main(void) {
  8.  
  9. int err = 0;
  10. err = loc_ini();
  11.  
  12. while (1) {
  13. //Sleep(1);
  14. err = loc_getposition(&loc_pos);
  15. //Sleep(500);
  16. cout << "Posicion x:" << loc_pos.x << endl;
  17. cout << "posicion y:" << loc_pos.y << endl << endl;
  18. }
  19. }
To copy to clipboard, switch view to plain text mode 

That is all I got, do I also need a .lib file to make it work?