K8055, C++ and Visual Studio

I am trying to build the demo project in visual studio 2008, but each time I try to build the project, I get compilation errors as below:

[quote]1>d:\scuits\documents\visual studio 2008\projects\usb interface project\k8055d_c.h(22) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\scuits\documents\visual studio 2008\projects\usb interface project\k8055d_c.h(24) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\scuits\documents\visual studio 2008\projects\usb interface project\k8055d_c.h(25) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\scuits\documents\visual studio 2008\projects\usb interface project\k8055d_c.h(26) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int[/quote]

There are normally 16 in total, this is a sample.

I have copied the .dll files to the correct locations (the project directory and Windows/System32 folder).

Please help.

Thanks

Two ways to solve this:

Include windows.h

ifdef __cplusplus
extern "C" {
#endif

#include <windows.h>

#define FUNCTION __declspec(dllexport)
...

Replace VOID by void

...
void __stdcall CloseDevice();
...

First method is recommended. Use the second method if you don’t have windows.h available (normally included in the windows SDK).

Enjoy!