error: extra qualification on .. on member ...

why am i getting this error, everything seems fine ??

message.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef MESSAGE_HPP_INCLUDED
#define MESSAGE_HPP_INCLUDED
////////////////////////////
#include <windows.h>
#include "types.hpp"
///////////////////////////
class message
{
public :
    message( const message& ) = delete;
    message& operator= ( const message& ) = delete;

    bool getMessage(
        const uint_t minFilter = 0,
        const uint_t maxFilter = 0 );

    bool translateMessage() const;
    lresult_t dispatchMessage() const;
    inline wparam_t wParam() const { return msg_.wParam; }

protected :
    message() {}
    message_t msg_;
#endif // MESSAGE_HPP_INCLUDED 



All the function implementation here has extra qualification error :

message.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "..\include\message.hpp"

bool
message::getMessage(
    const uint_t minFilter, //= 0
    const uint_t maxFilter )//= 0
{
    return( GetMessage( &msg_, NULL, minFilter, maxFilter ) );
}

bool
message::translateMessage() const
{
    return( TranslateMessage( &msg_ ) );
}

lresult_t
message::dispatchMessage() const
{
    return( DispatchMessage( &msg_ ) );
}
Last edited on
Did you forget to close off your class message definition?
21
22
23
24
25
protected :
    message() {}
    message_t msg_;
// What happened to your }; ?
#endif // MESSAGE_HPP_INCLUDED  

oh crap,,, haha, yes, thank you, compiles fine now
Topic archived. No new replies allowed.