Mr. Hutch,
Just to humbly let you know I encountered an equate missing from windows.inc :
INVALID_SET_FILE_POINTER equ -1
If it is defined elsewhere.. sorry to trouble you. I was surprised no one else has picked it up.. I use it with SetFilePointer function.. maybe it's an antiquated function which no one uses !
Cheers for the excellent MASM32 package
CodeBug
Just to humbly let you know I encountered an equate missing from windows.inc :
INVALID_SET_FILE_POINTER equ -1
If it is defined elsewhere.. sorry to trouble you. I was surprised no one else has picked it up.. I use it with SetFilePointer function.. maybe it's an antiquated function which no one uses !
Cheers for the excellent MASM32 package
CodeBug
My Win32 API reference says it just returns 0xFFFFFFFF, which is -1.
Indeed you are correct, but in microsofts whistler edition SDK states that a return value of
'INVALID_SET_FILE_POINTER' is given for an error. When I tried using this equate it wasn't recognised as it's not defined in hutch's package
only tryingto be helpful and stop some other newbie bangin their heads against a wall for hours
codebug
'INVALID_SET_FILE_POINTER' is given for an error. When I tried using this equate it wasn't recognised as it's not defined in hutch's package
only tryingto be helpful and stop some other newbie bangin their heads against a wall for hours
codebug
CodeBug,
Thanks for the equate, every bit contributed is useful. I am collecting errata at the moment but not much is coming through.
Regards,
hutch@movsd.com
Thanks for the equate, every bit contributed is useful. I am collecting errata at the moment but not much is coming through.
Regards,
hutch@movsd.com
Hi
Since you're still looking, there are a few progress bar includes I found missing..
Regards,
Kayaker
Since you're still looking, there are a few progress bar includes I found missing..
Regards,
Kayaker
These are already included in windows.inc 5/21/02
PBM_SETRANGE equ WM_USER+1
PBM_SETPOS equ WM_USER+2
PBM_DELTAPOS equ WM_USER+3
PBM_SETSTEP equ WM_USER+4
PBM_STEPIT equ WM_USER+5
Included as #defines in resource.h
PBS_SMOOTH equ 00000001h
PBS_VERTICAL equ 00000004h
And these are missing
PBM_SETRANGE32 equ (WM_USER+6)
PBM_GETRANGE equ (WM_USER+7)
PBM_GETPOS equ (WM_USER+8)
PBM_SETBARCOLOR equ (WM_USER+9)
PBM_SETBKCOLOR CCM_SETBKCOLOR
These are the original defines from CBuilder5 commctrl.h
// begin_r_commctrl
#if (_WIN32_IE >= 0x0300)
#define PBS_SMOOTH 0x01
#define PBS_VERTICAL 0x04
#endif
// end_r_commctrl
#define PBM_SETRANGE (WM_USER+1)
#define PBM_SETPOS (WM_USER+2)
#define PBM_DELTAPOS (WM_USER+3)
#define PBM_SETSTEP (WM_USER+4)
#define PBM_STEPIT (WM_USER+5)
#if (_WIN32_IE >= 0x0300)
#define PBM_SETRANGE32 (WM_USER+6)
// lParam = high, wParam = low
typedef struct
{
int iLow;
int iHigh;
} PBRANGE, *PPBRANGE;
#define PBM_GETRANGE (WM_USER+7)
// wParam = return (TRUE ? low : high). lParam = PPBRANGE or NULL
#define PBM_GETPOS (WM_USER+8)
#if (_WIN32_IE >= 0x0400)
#define PBM_SETBARCOLOR (WM_USER+9) // lParam = bar color
#endif // _WIN32_IE >= 0x0400
#define PBM_SETBKCOLOR CCM_SETBKCOLOR // lParam = bkColor
#endif // _WIN32_IE >= 0x0300
@Hutch: If you didn't update your MASMv7 so far, there is still missing this one:
HFILE_ERROR equ -1
case change
COORD STRUCT
x WORD ?
y WORD ?
COORD ENDS
COORD STRUCT
X WORD ?
Y WORD ?
COORD ENDS
windows.inc also seems to be missing some virtual key consts...
VK_OEM_1 equ 0BAh
VK_OEM_PLUS equ 0BBh
VK_OEM_COMMA equ 0BCh
VK_OEM_MINUS equ 0BDh
VK_OEM_PERIOD equ 0BEh
VK_OEM_2 equ 0BFh
VK_OEM_3 equ 0C0h
VK_OEM_4 equ 0DBh
VK_OEM_5 equ 0DCh
VK_OEM_6 equ 0DDh
VK_OEM_7 equ 0DEh
VK_OEM_8 equ 0DFh
there are probably more missing. these were just some that i was using. :alright:
VK_OEM_1 equ 0BAh
VK_OEM_PLUS equ 0BBh
VK_OEM_COMMA equ 0BCh
VK_OEM_MINUS equ 0BDh
VK_OEM_PERIOD equ 0BEh
VK_OEM_2 equ 0BFh
VK_OEM_3 equ 0C0h
VK_OEM_4 equ 0DBh
VK_OEM_5 equ 0DCh
VK_OEM_6 equ 0DDh
VK_OEM_7 equ 0DEh
VK_OEM_8 equ 0DFh
there are probably more missing. these were just some that i was using. :alright: