08-29-2022, 03:03 PM
I get a C++ error while compiling:
In file included from qbx.cpp:2185:
..\\temp\\main.txt: In function 'void SUB_MENU(qbs*, qbs*, qbs*, qbs*, qbs*)':
..\\temp\\main.txt:38620:102: error: cast from 'HANDLE' {aka 'void*'} to 'int' loses precision [-fpermissive]
*__UOFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_MENU_STRING_G)->chr, 384 ,NULL,NULL, 1 ,NULL,NULL);
^
compilation terminated due to -Wfatal-errors.
In file included from qbx.cpp:2185:
..\\temp\\main.txt: In function 'void SUB_MENU(qbs*, qbs*, qbs*, qbs*, qbs*)':
..\\temp\\main.txt:38620:102: error: cast from 'HANDLE' {aka 'void*'} to 'int' loses precision [-fpermissive]
*__UOFFSET_HFIND=( int32 )CreateFile((char*)(_SUB_MENU_STRING_G)->chr, 384 ,NULL,NULL, 1 ,NULL,NULL);
^
compilation terminated due to -Wfatal-errors.