I'm about to explode

This is a discussion on I'm about to explode within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I just cannot get ANYTHING to work anymore. I cannot get DirectX to work, I cannot use the glAux library, ...

  1. #1
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949

    Angry I'm about to explode

    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 !!!!
    Do not make direct eye contact with me.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786

    Re: I'm about to explode

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

  3. #3
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Thanks for the second one, but unfortunately I only use the compiler, not the Builder for RAD (I prefer Notepad, thank you ) . Is there any way besides your link for the first one? Thanks !
    Do not make direct eye contact with me.

  4. #4
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,220
    Originally posted by Lurker
    (I prefer Notepad, thank you ) .
    Notepad for C++?

    damn, that's worse than emacs.

  5. #5
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    You're just spoiled - I grew up in Notepad, not some rich program like MS's VC++ .
    Do not make direct eye contact with me.

  6. #6
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    feh, i use vi

  7. #7
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    Fools! Emacs is the way to go.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  8. #8
    Registered User axon's Avatar
    Join Date
    Feb 2003
    Location
    Mt. Prospect, IL
    Posts
    2,572
    Originally posted by EvBladeRunnervE
    feh, i use vi
    ....I also use vi...and pico!!!

    some entropy with that sink? entropysink.com

    there are two cardinal sins from which all others spring: Impatience and Laziness. - franz kafka

  9. #9
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    >>rich program

    email me and i'll tell you a secret
    PHP and XML
    Let's talk about SAX

  10. #10
    Registered User Scourfish's Avatar
    Join Date
    Mar 2002
    Posts
    397
    vi sucks. Pico, on the other hand, is the text editor god uses.
    -486SX-20
    -Some random Debian Distro
    -Some version of MS-Dos
    -Day of the Tentacle

  11. #11
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,584
    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.

  12. #12
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    The problems you are experiencing are best explained here; 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 seems to offer a solution for borland builder and delphi users; you need to download both the converted libs and the dll's.

    Good luck!
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  13. #13
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,786
    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...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error
    By bartz in forum C Programming
    Replies: 31
    Last Post: 10-12-2006, 05:56 AM
  2. Create something like php's explode()
    By phatsam in forum C Programming
    Replies: 6
    Last Post: 01-07-2006, 01:27 PM
  3. Turn a string into an array
    By The Letter J in forum C++ Programming
    Replies: 8
    Last Post: 12-22-2004, 11:08 AM
  4. My head is going to explode.
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 11-16-2003, 01:41 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21