C
cweisbrod
Hi All,
I realize I may be posting to the wrong group, but I can't help but
think my problem is more related to C++ than Microsoft's particular C++
compiler.
I've been migrating a large project from CodeWarrior to Visual Studio
and I'm having some difficulty with the Microsoft compiler.
Here's the basic problem with simplified code:
class A
{
public:
bool IsMinimized(void);
};
bool A::IsMinimized(void)
{
return true;
}
int main()
{
A* theWindow = new A;
theWindow->IsMinimized(); // Problem here
delete theWindow;
return 0;
}
The problem is that the compiler has already encountered a macro
definition, as in:
#define IsMinimized(x) IsIconic(x)
And the compiler is warning me that my call to IsMinimized() "does not
have enough actual parameters for macro 'IsMinimized'."
Is there some way to resolve this issue short of renaming my class
member functions?
Thanks for any input.
Clint Weisbrod.
I realize I may be posting to the wrong group, but I can't help but
think my problem is more related to C++ than Microsoft's particular C++
compiler.
I've been migrating a large project from CodeWarrior to Visual Studio
and I'm having some difficulty with the Microsoft compiler.
Here's the basic problem with simplified code:
class A
{
public:
bool IsMinimized(void);
};
bool A::IsMinimized(void)
{
return true;
}
int main()
{
A* theWindow = new A;
theWindow->IsMinimized(); // Problem here
delete theWindow;
return 0;
}
The problem is that the compiler has already encountered a macro
definition, as in:
#define IsMinimized(x) IsIconic(x)
And the compiler is warning me that my call to IsMinimized() "does not
have enough actual parameters for macro 'IsMinimized'."
Is there some way to resolve this issue short of renaming my class
member functions?
Thanks for any input.
Clint Weisbrod.