Hello,
I want to integrate the "virtualkeys.hpp" for my application.
So I add "siapp.lib" in Linker -> Input and also in Linker- > General the path of the library.
In C/C++ -> General I integrated the path for the Additional Include Directories.
Then I included in my header file:
#include "spwmacro.h" /* Common macros used by SpaceWare functions. */
#include "si.h" /* Required for any SpaceWare support within an app.*/
#include "siapp.h" /* Required for siapp.lib symbols */
#include "virtualkeys.hpp"
After this I get an error:
virtualkeys.hpp(179): error C2664: '_tcsicmp' : cannot convert parameter 1 from 'const wchar_t *const ' to 'const char *'
Okay, it cant't convert. I understand this because "_tcsicmp" is made for "const char*".
My question is, why this doesn't matter in the "3DxTest"-project, but in my project it does?
Integrate Virtualkeys.hpp
Moderator: Moderators
Re: Integrate Virtualkeys.hpp
Maybe it is the UNICODE, _UNICODE define?
3DxTest is Unicode enabled. I forget how. Probably one of those defines. I guess virtualkeys.hpp expects Unicode also.
3DxTest is Unicode enabled. I forget how. Probably one of those defines. I guess virtualkeys.hpp expects Unicode also.
Re: Integrate Virtualkeys.hpp
Thank You for the tip! I think this fixed the problem.
(Configuration Properties --> Character Set = Use Unicode Character Set).
And after this i have 5 new errors (but now, in my code) . I really love programming
(Configuration Properties --> Character Set = Use Unicode Character Set).
And after this i have 5 new errors (but now, in my code) . I really love programming