when m compiling my program in vs version 8.it is giving following error.


error C2086: 'DWORD WINIPI' : redefinition
see declaration of 'WINIPI'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Included header: <Psapi.h>
C++ Linker Additional Dependencies: "Psapi.lib"
#define DPSAPI_VERSION (1).

any help....
thanks in advance..

You'll have to post some relevant code. Without it we haven't a clue. It sounds like you attempted a declaration either that you didn't need to or incorrectly. The only way to know is to review the code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.