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

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!!!
 

Similar threads

I
回复
0
查看
651
import
I
I
回复
0
查看
3K
import
I
I
回复
0
查看
1K
import
I
I
回复
0
查看
2K
import
I
I
回复
0
查看
2K
import
I
顶部