PDA

View Full Version : I'm about to explode



Lurker
11-09-2003, 03:14 PM
I just cannot get ANYTHING to work anymore. I cannot get DirectX to work, I cannot use the glAux library, I cannot link things correctly. ARGGHHHH!!!!! So I'm really hoping someone can answer these questions, which I am guessing is the answer to the problem.

1. Has ANYONE here gotten the DirectX 9 SDK to work for the Borland compilers?

2. How do you link librarys to a program within the code in Borland? (I mean such as something like #pragma
lib "libraryfile.lib").

THANKS :D !!!!

Fordy
11-09-2003, 03:23 PM
Originally posted by Lurker
1. Has ANYONE here gotten the DirectX 9 SDK to work for the Borland compilers?

The libs have different object formats. Try here (http://www.geocities.com/foetsch/bcbfaq/bcbdx8.htm). This is for DX8, but there may be a way to use the tools discribed to convert for DX9. Otherwise, search google.


Originally posted by Lurker
2. How do you link librarys to a program within the code in Borland? (I mean such as something like #pragma
lib "libraryfile.lib").

That pragma is common for Microsoft compilers. Try here (http://info.borland.com/techpubs/bcppbuilder/)

Lurker
11-09-2003, 05:10 PM
Thanks for the second one, but unfortunately I only use the compiler, not the Builder for RAD (I prefer Notepad, thank you :D ) . Is there any way besides your link for the first one? Thanks :D !

Brian
11-09-2003, 05:56 PM
Originally posted by Lurker
(I prefer Notepad, thank you :D ) .

Notepad for C++?

damn, that's worse than emacs.

Lurker
11-09-2003, 06:10 PM
You're just spoiled - I grew up in Notepad, not some rich program like MS's VC++ :D .

EvBladeRunnervE
11-09-2003, 09:43 PM
feh, i use vi :D

Zach L.
11-09-2003, 10:05 PM
Fools! Emacs is the way to go. :D

axon
11-09-2003, 10:16 PM
Originally posted by EvBladeRunnervE
feh, i use vi :D

....I also use vi...and pico!!! ;)

Waldo2k2
11-10-2003, 01:50 PM
>>rich program

email me and i'll tell you a secret

Scourfish
11-11-2003, 03:27 AM
vi sucks. Pico, on the other hand, is the text editor god uses.

VirtualAce
11-11-2003, 03:31 AM
Your problem is that you are fighting your compiler not DirectX. Go get a basic version of MSVC and dump Borland. Borland is a great compiler but since DirectX is written by MS, it would be wise to use an MS compiler to code in DirectX. You don't have to alter headers or anything.

Getting DX to work with Borland is a major pain in the rump.

Ken Fitlike
11-11-2003, 05:28 AM
The problems you are experiencing are best explained here (http://www.bcbdev.com/faqs/faq92.htm); take particular note of the section discussing the hassles with static libs.

Although it's possible to use coff2omf or implib to generate apparently usable libs for borland what you'll get at best is something that compiles ok and then dies horribly when your run it.

As a wise man once said,
Originally posted by Bubba
Your problem is that you are fighting your compiler not DirectX. ...Getting DX to work with Borland is a major pain in the rump. Although, in fairness, ms bears some responsibility as they no longer provide borland compatible libs with the dxsdk (I think dx7 was the last).

However, this site here (http://clootie.narod.ru/) seems to offer a solution for borland builder and delphi users; you need to download both the converted libs (http://clootie.narod.ru/delphi/DX90/CBuilder_DX90_libs.zip) and the dll's (http://clootie.narod.ru/delphi/DX90/Clootie_DX90_dlls.zip).

Good luck! :)

Fordy
11-11-2003, 05:44 AM
I suppose it's the amount of hassle you are prepared to go to......either a new compiler or work to get the libs compatible..

I could show you people who program DirectX using MASM - they have to work out a way to write code to represent the COM objects and then have the task of converting all the headers into a format that will work for them! Personally.....I feel learning an API properly is difficult enough without having to constantly battle with your tools as you do it......but again, that's a point of preference...