Tagged: GetCurrentProcessId C++ SDK
- 07/05/2015 at 13:10 #2946Tilman ReipschParticipant
I followed the tutorial for setting up a project with the EyeX C++ SKD using visual studio 2012. However, when building the project (or the sample project) I get the Error Message:
“GetCurrentProcessId” Identifier not found in interactionbase.inl
What can I do to solve this?
Thanks in advance.08/06/2015 at 12:05 #3074Jenny [Tobii]Participant
The tutorial shows how to set up a project using the C API. The error you got is related to the C++-binding. The InteractionAgentBase is a simple utility class that registers an application as an EyeX client for the current process using a Windows API call to GetCurrentProcessId to get hold of the process id. You need to include the correct header for your Windows version to be able to compile it. Please refer to MSDN to find the correct header to include:03/06/2016 at 04:34 #5284Jorge NonellParticipant
Thanks for the response, it definitely helped me fix the problem. So Im working in visual studio 2015, and in addition to including windows32.lib I also had to place a #include “Windows.h” at the top of interactionagentbase.inl in order for vc2015 to be able to compile the project. Otherwise it would not find the reference. Not sure if there’s another way I can fix this, but just wanted to make sure you guys were aware.
- You must be logged in to reply to this topic.