Can anybody help with a DirectX related problem im having in Borland c++ 4.5<br>
<br>
i have a win32 directx programme setup as follows: include directories are set to "c:\bc45\include; c:\mssdk\include", library directories are set to "c:\bc45\lib; c:\mssdk\lib\borland".<br>
<br>
i placed the following code at the start of my programme as i read somewhere it was necessary:<br>
<br>
#if defined(__BORLANDC__) && defined(__WIN32__)<br>
#define _WIN32<br>
#endif<br>
<br>
i also have the following includes:<br>
<br>
#include <windows.h><br>
#include <windowsx.h><br>
#include <ddraw.h><br>
<br>
the programme compiles find but i keep getting this linker error:<br>
<br>
"Linker Error: Unresolved external 'DirectDrawCreate' referenced from module 'prog1.cpp'"<br>
<br>
****<br>
<br>
i thought this was down to the fact that i had not directed my project to the ddraw.lib file. so i added a lib node to my project pointing to 'c:\mssdk\lib\ddraw.lib'<br>
<br>
after compiling i get this linker error:<br>
<br>
"Linker Fatal: Bad object file 'c:\mssdk.....' near file offset 0"<br>
<br>
does anybody know why this is happening?<br>
any help would be appreciated<br>
<br>
thanks<br>