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
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
Most likely the error is elsewhere in the file - I would check the lines prior to this one for a missing closing parenthesis.
#include <windows.h>
Had to include the file defining that type