Coder's Guild Mailing List

Re: DirectX w/ Borland 4.52

Posted by Fox on 2000-02-26

> Hello,
>     I have a book, "Tricks of the Windows Game Programming Gurus", it talks 
> about directx and stuff.  So I installed the SDK and drivers for version 6.1. 
>  But when I go to compile and link the sources to the, let's say direct draw, 
> library.  I get an error, it's not an unresolved external one either.  It 
> says it's an IDE error: "Unexpected termination during link (BCWS32 
> 0000:0000).  I've restarted and tried again but it's the same thing.  Does 
> anybody have any ideas?  Did I install the SDK wrong?  Is something wrong 
> with my software?  Thanks.

//
	I'm speaking purly out of ignorence here(meaning that I've never worked with 
DirectX).  But here go a few logical thoughts......................

	I think you're working with the latest version of DirectX.  You're also working 
with, by computer standards, an obsolete compiler(Borland's up to version 5.0+).  
There might be some sort of conflict with the compiler/linker and the library; I 
doubt it though.

	Also, check to see that you have that version of DirectX, or later, installed on 
your computer.  A DLL might be needed that the compiler isn't finding, thus 
producing a nasty error(that's a bit redundant; whoever heard of a good error?)

	A distant possibility: you could have a later version of DirectX already installed 
on your computer than the library is designed for(your SDK is old compared to 
your current version of DirectX).  Programming a later version with old commands; 
possible crash and burn...(BTW--it stands to reason that the reverse could also 
pose a problem.  Your SDK is newer than your current version of DirectX installed 
on your computer.  I really doubt this, but don't rule out anything you haven't 
checked).

	One more thing, if this is a static link library(.lib) make sure you're including 
all the necessary files in your project(I believe your smart enough to check this, 
but I have to say it just in case :-).  The compiler won't include them for you; you 
must make sure that you have included those libraries in the project file.

	Like I said though, I have no idea how DirectX works.  I've never worked with it 
before, but the above were common sence issues that could be the problem.  
Anything more specific I can't help with.  No matter what, I hope I've done 
something that helped.	

/*
Remember, complex problems almost 
always have simple solutions!

*/
To signoff send a mail to listserver@xxxx.xx.xx with 
  "signoff tcg" in the body of your message.