Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 118
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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