Solved

C++ question

Posted on 2016-09-21
3
44 Views
Last Modified: 2016-09-21
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
Comment
Question by:HLRosenberger
  • 2
3 Comments
 
LVL 32

Accepted Solution

by:
sarabande earned 500 total points
Comment Utility
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
 
LVL 1

Author Comment

by:HLRosenberger
Comment Utility
The cast works.  thanks,.
0
 
LVL 1

Author Closing Comment

by:HLRosenberger
Comment Utility
The cast works.  thanks,.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now