Now I’m developing a little application in Visual Studio 2005 using C++ and original (from this website) driver and have some troubles with it.
In the system folder and in current app folder I have 3 files from this website (K8047E.exe, K8047D.dll and FASTTime32.dll), without them I can’t work with PCS10.
So I use it:
HINSTANCE _hK8047 = LoadLibrary(“K8047D.dll”);
then
typedef void (__stdcall *StartDevice_func)();
typedef void (__stdcall StartStop_func)();
typedef void (__stdcall ReadData_func)(int);
StartDevice_func _procStartDevice = (StartDevice_func)GetProcAddress(this->_hK8047,(LPCSTR)“StartDevice”);
StartStop_func _procStopDevice = (StartStop_func)GetProcAddress(this->_hK8047,(LPCSTR)“StopDevice”);
ReadData_func _procReadData = (ReadData_func)GetProcAddress(this->_hK8047,(LPCSTR)“ReadData”);
and then I start device by calling _procStartDevice();
read device
int nBuffer[8];
_procReadData((int)&nBuffer);
and close device by calling _procStopDevice(); and FreeLibrary(_hK8047);
I receive data - it’s ok, but sometimes when my program works I see in background small window, but can’t read anything from it, cause it shutdowns too fast and such thing appears very often.
What is that window and why it appear? Can I use original driver without this window?
[quote]Is there another way to work with K8047?[/quote]I’m sorry but the only way to communicate with the PCS10/K8047 is to use K8047d.dll and K8047e.exe.
But I have one more question:
Can you fix this driver for it normal use (without window or .exe file)? I need this fix, because i can’t use this device with such huge bug.
Nice. Very well. You have fixed this window! But you forget to add fasttime32.dll into archive, without this dll I have error from k8047.dll. I took this fasttime32.dll from the past archive.