Win32 API problem

  • 18 years ago

    Code:

    include <winuser.h>


    include <iostream.h>


    void main(){
       long ga=0;
       ga=::FindWindow("AOL Frame25, null);
       cout << ga;
    }



    --------------------Configuration: test - Win32 Debug--------------------
    Compiling...
    test.cpp
    c:\program files\microsoft visual studio\vc98\include\winuser.h(39) : error C2146: syntax error : missing ';' before identifier 'HDWP'
    c:\program files\microsoft visual studio\vc98\include\winuser.h(39) : fatal error C1004: unexpected end of file found
    Error executing cl.exe.


    test.obj - 2 error(s), 0 warning(s)




    So.... What do you with this problem?  I think I need a new winuser.h cause the whole file included with Microsofts Visual Studio 6.0 Enterprise is capitalized.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Before software should be reusable, it should be usable.” - Ralph Johnson