tags:

views:

47

answers:

2

Why does this code result in error?

class CommonRuntine
{
    public:
        struct TProcess;
        TProcess GetProcessByName(LPCSTR ProcessName);
};

It says "E2293 ) Expected" on the "};" bit

PS : LPCSTR is a type

A: 

Most likely the error is elsewhere in the file - I would check the lines prior to this one for a missing closing parenthesis.

Andrew Hare
+1  A: 
#include <windows.h>

Had to include the file defining that type

Nick Brooks
This is the reason I have not asked a question here. One finds the answer oneself first... (I wonder, can one accept their own answer ;))
UncleBens
You can accept yourself after a few days. Do you see a `delete` button under the question?
Potatoswatter