L
Lathe_Biosas
Hi
While compiling my application that needs "windows.h" there are some
typedef redefinition errors
redefinition at winnt.h( line 207) typedef void *HANDLE
redefinition at windef.h( line 143) typedef unsigned char BYTE
redefinition at windef.h( line 141) typedef unsigned long DWORD
#define INVALID_HANDLE_VALUE -1 redefinition at winbase.h(55) #define
INVALID_HANDLE_VALUE (HANDLE)-1
The DLL that links to my application needs the following typedefs at
the moment declared at my_include.h
As stated in User Manual --> My Definition (working and handling data
perfect but without windows.h)
HANDLE: An opaque 32-bit integer --> typedef int HANDLE;
BYTE: A 8-bit unsigned integer --> typedef unsigned int BYTE;
DWORD: A 32-bit unsigned integer --> typedef unsigned int DWORD;
LPBYTE: A 32 bit flat pointer to a variable of type BYTE --> typedef
BYTE * LPBYTE;
LPDWORD: A 32 bit flat pointer to a variable of type DWORD --> typedef
DWORD * LPDWORD;
#define INVALID_HANDLE_VALUE -1
Is it possible to make my typedefs compatible with the ones of winnt.h,
windef.h and winbase.h and still manage the data as stated in the DLL
User Manual?
Any help would be kindly appreciated
Best Regards
While compiling my application that needs "windows.h" there are some
typedef redefinition errors
redefinition at winnt.h( line 207) typedef void *HANDLE
redefinition at windef.h( line 143) typedef unsigned char BYTE
redefinition at windef.h( line 141) typedef unsigned long DWORD
#define INVALID_HANDLE_VALUE -1 redefinition at winbase.h(55) #define
INVALID_HANDLE_VALUE (HANDLE)-1
The DLL that links to my application needs the following typedefs at
the moment declared at my_include.h
As stated in User Manual --> My Definition (working and handling data
perfect but without windows.h)
HANDLE: An opaque 32-bit integer --> typedef int HANDLE;
BYTE: A 8-bit unsigned integer --> typedef unsigned int BYTE;
DWORD: A 32-bit unsigned integer --> typedef unsigned int DWORD;
LPBYTE: A 32 bit flat pointer to a variable of type BYTE --> typedef
BYTE * LPBYTE;
LPDWORD: A 32 bit flat pointer to a variable of type DWORD --> typedef
DWORD * LPDWORD;
#define INVALID_HANDLE_VALUE -1
Is it possible to make my typedefs compatible with the ones of winnt.h,
windef.h and winbase.h and still manage the data as stated in the DLL
User Manual?
Any help would be kindly appreciated
Best Regards