Thanks Dr. Claudio, which stated, no longer displays the "warning".
Code: Select all
HB_FUNC( HDGETSERIAL)
{
hb_retnl( Get_SerialNumber((char *) hb_parc(1)) );
}
Esto es lo que tengo:
Code: Select all
#pragma BEGINDUMP
#define _WIN32_IE 0x0500
#define HB_OS_WIN_32_USED
#define _WIN32_WINNT 0x0400 <-------------- Ya tengo un define
#define _WIN32_WINNT 0x0500 <-------------- si añado este otro, despliega lo siguiente
#include <windows.h>
#include <commctrl.h>
#include "hbapi.h"
#include "hbvm.h"
#include "hbstack.h"
#include "hbapiitm.h"
#include "winreg.h"
#include "tchar.h"
#include <shlobj.h>
#include <winuser.h>
#include <vfw.h>
#include <windowsx.h>
Si comento *#define _WIN32_WINNT 0x0400, me despliega muchos errores mas.D:\RespaldosPCs\DiscoC\Trabajo\ConAd>C:\hmg.3.1.5\build conad
Harbour 3.2.0dev (r1307180024)
Copyright (c) 1999-2013, http ://harbour-project.org/
conad.prg:7980:0: warning: "_WIN32_WINNT" redefined [enabled by default]
conad.prg:7979:0: note: this is the location of the previous definition
conad.prg:8190:0: warning: "LWA_COLORKEY" redefined [enabled by default]
c:\hmg.3.1.5\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:2399:0: note: this is
the location of the previous definition
conad.prg:8191:0: warning: "LWA_ALPHA" redefined [enabled by default]
c:\hmg.3.1.5\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/winuser.h:2400:0: note: this is
the location of the previous definition
If I comment * # define _WIN32_WINNT 0x0400, displays many bugs more.