PCS10/K8047 frequent window in background

Hello.

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?

PS
With Best Regards.

The window may be a “side effect” of the K8047e.exe.

You may try the updated K8047d.dll and K8047e.exe.
Here is the link to download:
box.net/shared/i1nd0l2e5r

There is also a demo program (written in Delphi) included.

Sorry, but this driver has same behaviour.

Is there another way to work with K8047?

[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.

Ok. I understand this.

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.

Thnx.

[quote]Can you fix this driver for it normal use (without window or .exe file)? [/quote]Yes, this can be fixed in the next update.

And when will be next update?

You can try this “quick fix” version: box.net/shared/d1mm82ar7p890mtc0xvq
The extra window should be now hidden.

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.

Thank you for the feedback.
Indeed, the fasttime32.dll is also needed - now added to the package.
It is good to see that the problem is now solved.