I got the loc.h file that I wrote down in the beggining, the sniffer.dll and the following main.cpp:
#include "loc.h"
#include <windows.h>
#include "iostream.h"
loc_position_t loc_pos;
int main(void) {
int err = 0;
err = loc_ini();
while (1) {
//Sleep(1);
err = loc_getposition(&loc_pos);
//Sleep(500);
cout << "Posicion x:" << loc_pos.x << endl;
cout << "posicion y:" << loc_pos.y << endl << endl;
}
}
#include "loc.h"
#include <windows.h>
#include "iostream.h"
loc_position_t loc_pos;
int main(void) {
int err = 0;
err = loc_ini();
while (1) {
//Sleep(1);
err = loc_getposition(&loc_pos);
//Sleep(500);
cout << "Posicion x:" << loc_pos.x << endl;
cout << "posicion y:" << loc_pos.y << endl << endl;
}
}
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?
Bookmarks