• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 129
  • Last Modified:

C++ question

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
0
HLRosenberger
Asked:
HLRosenberger
  • 2
1 Solution
 
sarabandeCommented:
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
0
 
HLRosenbergerAuthor Commented:
The cast works.  thanks,.
0
 
HLRosenbergerAuthor Commented:
The cast works.  thanks,.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now