This just means FindWindowEx is not a member of CWnd, so you cannot call it
I have tried including the windows.h but still I am being prompt of the
error
"FindWindowExA is not a member of CWnd". Actually, in the past I ever did
it
before and what I did to make it work is to have a declaration similar to
the
VB one I have stated where there is an alias FindWindowExA for
FindWindowEx.
However, I could no longer find any example on the c++ syntax for this
anymore. Any idea on this?
"Scott McPhillips [MVP]" wrote:
cleohm wrote:
Thanks for your reply. But thats not what I want. What I need is the
actual
syntax for making a declaration and what is provided in the MSDN
library is
how to use it. Like the example I have shown they typically declare
with an
alias. In another words it is just like creating a function and
declaring it
and what I want is not the code on how to use the function but how to
declare
it, which in this case is a standard win32 api declaration. Any idea
how I
can get these resources?
You are asking for the wrong thing. The methods you are used to from VB
simply do not apply in C++. You said you want the declarations for C++.
In C and C++ the programmer never types the API declarations! They
are provided for you by Microsoft in the form of header files that you
#include in your program. Don't even think of typing them in yourself!
Go here and download the Vista SDK (it works for older Windows too), or
install MSDN from a CD if you have it.
<http://www.microsoft.com/downloads/results.aspx?productid=&freetext=sdk&displaylang=en>
Once this is installed, here is how you declare the most common few
thousand API functions:
#include <windows.h>
--
Scott McPhillips [VC++ MVP]