undef SendMessage /windows.h

Hey...

I have an class A like the following

1
2
3
4
5
6
7
#include <windows.h>

class A
{
    //...
    SendMessage();
};


the problem i encounter is the

1
2
#define SendMessage  SendMessageW
#define SendMessage  SendMessageA 


in winuser.h i already did try the following:


1
2
3
4
5
6
7
8
#include <windows.h>
#undef SendMessage

class A
{
    //...
    SendMessage();
};


But it does not work... the compilers still moans that SendMessage is not an elemnt of class A when i try to do something like this:

1
2
3
4
5
6
type func()
{
  //A *a;
  a->SendMessage();
  return type;
}


Anyone got any suggestions?...

greetz,
Inc
Last edited on
Why don't you just change your function name to something else?
Because I want it to be named like this^^...

I fixed it... it had nothin to do with what i suspected... shame on me *redface*^^...
Topic archived. No new replies allowed.