ReneNyffenegger / cpp-MSHTML

Programming the MSHTML Web Browser Control with C++
9 stars 3 forks source link

cannot convert ‘long unsigned int*’ to ‘DWORD*’ #2

Open tdtc-hrb opened 11 months ago

tdtc-hrb commented 11 months ago

Windows 10 1809(x64) Cygwin: 3.4.9-1 Gcc: 11.4.0-1 Make: 4.4.1-2

HTMLWindow.cpp:485: error: cannot convert ‘long unsigned int’ to ‘DWORD’ {aka ‘unsigned int’} 485 | if (! (SUCCEEDED(cp->Advise(static_cast<IDispatch>(this), &cookie)) ) ) {

tdtc-hrb commented 11 months ago

// TODO: Member Var unsigned long cookie = 1;

=> // TODO: Member Var unsigned int cookie = 1;

tdtc-hrb commented 11 months ago

Windows 10 1809(x64) msys2(i686): 20210705 mingw-w64-i686-gcc: 13.2.0-2 make: 4.3-1-i686

no problem