Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Query to function _InputBox$
#4
Petr
it compiles and runs ok IF you use the 32-bit version of QB64pe-3.6.0
which makes me think that input_box_WIN.h is using the wrong type
Code: (Select All)
ptrszint FUNC_WINDOWPROC(ptrszint*_FUNC_WINDOWPROC_OFFSET_HWND,uint32*_FUNC_WINDOWPROC_ULONG_UMSG,uptrszint*_FUNC_WINDOWPROC_UOFFSET_WPARAM,ptrszint*_FUNC_WINDOWPROC_OFFSET_LPARAM);

LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
return FUNC_WINDOWPROC((ptrszint *) (& hwnd), & uMsg, & wParam, (ptrszint *) (& lParam));
}

void * GetWindowProc() {
return (void *) WindowProc;
}


ptrszint FUNC_SUBEDIT(ptrszint*_FUNC_SUBEDIT_OFFSET_HWND,uint32*_FUNC_SUBEDIT_ULONG_UMSG,uptrszint*_FUNC_SUBEDIT_UOFFSET_WPARAM,ptrszint*_FUNC_SUBEDIT_OFFSET_LPARAM);

LRESULT CALLBACK SubEdit(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) {
return FUNC_SUBEDIT((ptrszint *) (& hwnd), & uMsg, & wParam, (ptrszint *) (& lParam));
}

void * GetSubEdit() {
return (void *) SubEdit;
}
my guess is that somewhere a wrong type is used
Reply


Messages In This Thread
Query to function _InputBox$ - by Petr - 03-30-2023, 09:44 AM
RE: Query to function _InputBox$ - by bplus - 03-30-2023, 12:34 PM
RE: Query to function _InputBox$ - by Petr - 03-30-2023, 05:37 PM
RE: Query to function _InputBox$ - by Jack - 03-30-2023, 06:27 PM
RE: Query to function _InputBox$ - by Petr - 03-30-2023, 06:52 PM
RE: Query to function _InputBox$ - by bplus - 03-30-2023, 07:51 PM
RE: Query to function _InputBox$ - by Petr - 03-30-2023, 08:12 PM
RE: Query to function _InputBox$ - by bplus - 03-31-2023, 01:21 PM
RE: Query to function _InputBox$ - by Petr - 03-30-2023, 09:44 PM
RE: Query to function _InputBox$ - by Petr - 03-31-2023, 08:55 AM
RE: Query to function _InputBox$ - by mnrvovrfc - 03-31-2023, 09:53 PM



Users browsing this thread: 4 Guest(s)