I'm new to this whole "coding" thing. I've dabbled in C, but never really got anywhere with it because the textbooks I was reading were just irritatingly boring.
To the point, though, I recently became a co-proprietor of a LinearTouch sensor at work, and I've been trying to work this for some time, but I find that VC++ hates me.
I'm trying to write a simple code that will just send me the serial number back, just to prove that everything's in working order. So far, I've come up with:
int CPhidgetManager_create (CPhidgetManagerHandle man);
int CPhidgetInterfaceKit_create (CPhidgetInterfaceKitHandle LT);
int CPhidget_open (CPhidgetHandle LT);
int CPhidget_getSerialNumber (CPhidgetHandle LT, int serial);
printf("device SN: %d", serial);
And the output, after I build the .exe and run it, comes out saying "Device SN: 2019276528." No matter what. I don't even have it plugged in anymore and it's saying that.
So, obviously, my question is, what am I doing wrong? Any help would be appreciated.