jdl
jdl

Reputation: 6333

c++ header file errors?

(Visual Studio c++ 6.0)

.\app.h(69) : error C2146: syntax error : missing ';' before identifier 'IsProcessRunning'
.\app.h(69) : error C2501: 'DWORD' : missing storage-class or type specifiers
.\app.h(69) : error C2061: syntax error : identifier 'LPCTSTR'
.\app.h(70) : error C2061: syntax error : identifier 'LPCTSTR'

Not sure why these errors? Why the syntax error? DWORD and LPCTSRT are recognized.

    virtual BOOLEAN DoNew( void );

    DWORD IsProcessRunning(LPCTSTR procname);
    bool TerminateProcess(LPCTSTR procname);

    void UpdateControllerStatus( void );

Upvotes: 0

Views: 9994

Answers (2)

Michael Haephrati
Michael Haephrati

Reputation: 4245

Add #include to the beginning of your code...

Upvotes: -1

Jeest
Jeest

Reputation: 66

According to the errors, DWORD is not recognized. Are you sure you are including windows.h?

Upvotes: 3

Related Questions