如何在CBUILDER中使用directx SDK?
Hi all:
我把directxSDK(7。0)中的INCLUDE目录加到CBUILDER中的搜索INCLUDE目录中,也把相应的LIB加到搜索LIB中,编写的程序只有这些语句:
#include<ddraw.h>
........
DirectDrawCreateEx(.......IID_IDirectdraw7....);
......
然后,LINK出现两个错误:
1、在XXXXX.OBJ中没有定义 _IID_IDirectdraw7
2、在XXXXX.OBJ中没有定义 _DirectDrawCreateEx.
于是我在XXX.BPL中加入ddraw.lib,第二个错误没了。第一个就是搞不掉。
我已做的工作:
我知道DIRECTXSDK有两套LIB,一套是给BORLAND专用的,我用的就是那一套。
我在INCLUDE〈DDRAW。H〉之前加了#define INITGUID 和 #define STRICT.
感激流涕。 :~~~~)
bobby
diablohsh@163.net
>>> 唉,这么多问题,我什么时候才能成为专家啊。 :~~~~~(
问题点数:50、回复次数:5Top
1 楼radish()回复于 2000-01-29 17:15:00 得分 50
bcb自己就带有ddraw.h,会不会是BCB加入的是自带的ddraw.h,是就覆盖它了,或将ddraw.h考到BPL目录,用include "ddraw.h";Top
2 楼blaise()回复于 2000-01-29 23:46:00 得分 0
see the lib dir in mssdk?
there is a sub dir named borland.
link the dll there,since ms and borlands lib format are not the same,Top
3 楼blaise()回复于 2000-01-29 23:49:00 得分 0
sorry,I didn't read you article carefully.
maybe the search order is wrong,bcb serach the old version of ddraw.h which shipped with bcb first,so it don't try to find the one in mssdk\include.Top
4 楼Bobby(顶)回复于 2000-01-30 03:05:00 得分 0
Hi all:
我可以保证用的是新版directx的sdk,而不是borland自带的DIRECTX5.0.
bobbyTop
5 楼Bobby(顶)回复于 2000-02-11 21:24:00 得分 0
Hi all:
原来只要再link上dxguid.lib就可以了,唉,我的分数能要回来吗?
bobby
>>> 唯一能回答的问题却是自己的问题Top




