Hi!
I have just downloaded GAPI emulator for Pocket PC and have copied the files to the following folders:
gx.lib - Lib directory
gx.dll - emulator/palm300/windows directory
gx.h - include directory
When I try to build a small project I get the following errors:
--------------------Configuration: Project01 - Win32 (WCE x86em) Release--------------------
Compiling...
StdAfx.cpp
Compiling...
Project01.cpp
Linking...
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXCloseDisplay(void)" (__imp_?GXCloseDisplay@@YGHXZ) referenced in function "int __stdcall InitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YGHPAUH
INSTANCE__@@H@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) struct GXDisplayProperties __stdcall GXGetDisplayProperties(void)" (__imp_?GXGetDisplayProperties@@YG?AUGXDisplayProperties@@XZ) referenced in function "int __stdcall I
nitInstance(struct HINSTANCE__ *,int)" (?InitInstance@@YGHPAUHINSTANCE__@@H@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXOpenDisplay(struct HWND__ *,unsigned long)" (__imp_?GXOpenDisplay@@YGHPAUHWND__@@K@Z) referenced in function "int __stdcall InitInstance(struct HINSTANC
E__ *,int)" (?InitInstance@@YGHPAUHINSTANCE__@@H@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXResume(void)" (__imp_?GXResume@@YGHXZ) referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJPAU
HWND__@@IIJ@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXSuspend(void)" (__imp_?GXSuspend@@YGHXZ) referenced in function "long __stdcall WndProc(struct HWND__ *,unsigned int,unsigned int,long)" (?WndProc@@YGJP
AUHWND__@@IIJ@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) int __stdcall GXEndDraw(void)" (__imp_?GXEndDraw@@YGHXZ) referenced in function "bool __stdcall ClearScreen(struct COLOR)" (?ClearScreen@@YG_NUCOLOR@@@Z)
Project01.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void * __stdcall GXBeginDraw(void)" (__imp_?GXBeginDraw@@YGPAXXZ) referenced in function "bool __stdcall ClearScreen(struct COLOR)" (?ClearScreen@@YG_NUCOLOR@@@Z)
X86EMRel/Project01.exe : fatal error LNK1120: 7 unresolved externals
Error executing link.exe.
Project01.exe - 8 error(s), 0 warning(s)
-----------------------------------------------------
Can anyone tell me what I am doing wrong. Is the gx.dll file supposed to go into some other folder.
Thanks
Vikram