c++ - Resolving 'LNK2019 unresolved external symbol' on DirectDrawCreate -
i've been attempting directdraw function on ce5.0 framework last week , i'm running odd issues.
ddrval = directdrawcreate(null, &lpdd, null); when have function in code, "error lnk2019: unresolved external symbol _directdrawcreate referenced in function "bool __cdecl directdrawinit(struct hwnd__ *)" (?directdrawinit@@ya_npauhwnd__@@@z)"
the function exists in .h, can jump directly it, makes me think i'm missing library, have no idea how check or fix being built remote ce5.0 device. run few other subtile hints missing such lr_createdibsection , other lr constants not existing , small differences in types (hbitmap not being liked , lpcwstr being prefered).
any assistance appreciated. note, windowsmobile5.0 code doesn't work on device, , if comment out offending function code compiles , runs (it's not being used directdrawcreate kind of important lnk error goes away)
you should link program ddraw.lib. import lib direct draw on windows mobile.
Comments
Post a Comment