We help IT Professionals succeed at work.

C++ question

HLRosenberger
on
I'm getting compile errors.  It's been 20 years since I've code C++.   See errors in image.  Can anyone help with these?

C   errors
Comment
Watch Question

Top Expert 2016
Commented:
you could use a cast:

if (lastFocusWindow != (HWND)winId())

Open in new window


or you rewrite the winId function and return a HWND instead of an integer.

Sara

Author

Commented:
The cast works.  thanks,.

Author

Commented:
The cast works.  thanks,.