UnhappyHelpC++ Problem :(

Posts 1–4 of 4 · Page 1 of 1
C++ Problem :(
Tudo que tento dar Debug me deparo com esse erro:
Code:
C:\program files\microsoft directx sdk (june 2010)\include\winuser.h(14): fatal error C1021: invalid preprocessor command 'lib'
O winuser.h:
Code:
#ifndef __WINUSER_H
#define __WINUSER_H
#include <windows.h>

struct RECT {
  int left;
  int top;
  int right;
  int bottom;
};
typedef RECT* LPRECT;
typedef int (*WNDENUMPROC) (void*,long);

#lib user32.dll
extern "C" {
 WINAPI HWND GetActiveWindow();
 WINAPI BOOL GetWindowRect(HWND,LPRECT);
 WINAPI BOOL MoveWindow(HWND,int,int,int,int,BOOL);
 WINAPI int  GetWindowTextA(HWND,LPSTR,int);
 WINAPI BOOL SetWindowTextA(HWND,LPSTR);
 WINAPI HWND FindWindowA(LPSTR,LPSTR);
 WINAPI BOOL EnumWindows(WNDENUMPROC callback, int lparam);
 WINAPI  int  SendMessageA(HWND,int,int,int);
 WINAPI BOOL InvalidateRect(HWND,LPRECT,BOOL);
}
#lib
#endif
Agradeço bastante quem puder me ajudar >_>
vc esta incluindo winuser em alguma coisa? se estiver use <winuser.h>
se continuar dando erro reinstale seu sdk
O pior que o "winuser.h" não veio no SDK, não teria como você upar pra mim ?
Code:
#ifndef __WINUSER_H
#define __WINUSER_H
#include <windows.h>

struct RECT {
  int left;
  int top;
  int right;
  int bottom;
};
typedef RECT* LPRECT;
typedef int (*WNDENUMPROC) (void*,long);

#lib user32.dll
extern "C" {
 WINAPI HWND GetActiveWindow();
 WINAPI BOOL GetWindowRect(HWND,LPRECT);
 WINAPI BOOL MoveWindow(HWND,int,int,int,int,BOOL);
 WINAPI int  GetWindowTextA(HWND,LPSTR,int);
 WINAPI BOOL SetWindowTextA(HWND,LPSTR);
 WINAPI HWND FindWindowA(LPSTR,LPSTR);
 WINAPI BOOL EnumWindows(WNDENUMPROC callback, int lparam);
 WINAPI  int  SendMessageA(HWND,int,int,int);
 WINAPI BOOL InvalidateRect(HWND,LPRECT,BOOL);
}

#lib
#endif
Posts 1–4 of 4 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?