hi,
i'm sure that there is a simple solution to this problem (pocketquake obviously had to solve this). the problem is that gx.h can not be included in a .c file without compiling errors. dan east suggested to modify gx.h but this helps only for the compilation step.
next i get linking errors since gx.lib uses c++ name mangling.
so what i do is, that i define the necessary structures and declare the gapi function:
which produces the following error:
error LNK2019: unresolved external symbol __imp_GXGetDefaultKeys referenced in function wince_GetDefaultKeys
i also tried modifying the gx.h file which ofcourse produces the same results...
any ideas on this?
(since this should work, i assume that i did something completely stupid and apologize beforehand...)
thx,
Daniel
i'm sure that there is a simple solution to this problem (pocketquake obviously had to solve this). the problem is that gx.h can not be included in a .c file without compiling errors. dan east suggested to modify gx.h but this helps only for the compilation step.
next i get linking errors since gx.lib uses c++ name mangling.
so what i do is, that i define the necessary structures and declare the gapi function:
- Code:
struct GXKeyList {
short vkUp;
POINT ptUp;
short vkDown;
POINT ptDown;
short vkLeft;
POINT ptLeft;
short vkRight;
POINT ptRight;
short vkA;
POINT ptA;
short vkB;
POINT ptB;
short vkC;
POINT ptC;
short vkStart;
POINT ptStart;
};
__declspec(dllimport) struct GXKeyList GXGetDefaultKeys(int iOptions);
which produces the following error:
error LNK2019: unresolved external symbol __imp_GXGetDefaultKeys referenced in function wince_GetDefaultKeys
i also tried modifying the gx.h file which ofcourse produces the same results...
any ideas on this?
(since this should work, i assume that i did something completely stupid and apologize beforehand...)
thx,
Daniel