Why the project can Compile, but cann't Make or Build?(200分)

  • 主题发起人 主题发起人 wcwcw
  • 开始时间 开始时间
W

wcwcw

Unregistered / Unconfirmed
GUEST, unregistred user!
[Linker Error] Unresolved external 'DiretDrawCreate' referenced from D:/WorkSpace
/DirectDraw/Main.Obj
???
 
main.cpp的DiretDrawCreate函数只有申明,没有定义。
 
<ddraw.h>
extern HRESULT WINAPI DirectDrawCreate( GUID FAR *lpGUID, LPDIRECTDRAW FAR *lplpDD, IUnknown FAR *pUnkOuter );
How Can I use this?

Thank You!
 
I haven't used BCB ever, but I think you should link with ddraw.lib.
Header: Declared in ddraw.h.
Import Library: Use ddraw.lib.
 
要连接相应的 Lib 文件。
 
use project->add to project ,to add the .lib file to the project
if u have not the lib file,use implib to generate it
 
The question has been solved!!!
Thanks a lot!!!
 
后退
顶部