C++ Compiler

I'm using Borland C++ 5 compiler but can't seem to get the tutorials to compile and run through there. Sofar i've installed the DirectX SDK and installed Tutorial 00. But when i go to run, it tries to compile but gives me errors.

Answer this question

C++ Compiler

  • M Landy

    If it's 5.0, forget it.
    Excellent product, but too old. No namespace support for example.

  • paulisme

    that's exactly what i have.
  • Sharon277

    I assume you're using the free 5.5 compiler from Borland

    That's one old product you have (6 years old by now), it may lack some of the language features needed by the current DX SDK (even though it's pretty ISO compliant, I do notice some differences).

    I've not tried to get it to work with DX9, but had some success in the past using BC5.0 with DX6 (and that took quite some doing despite coming with Borland specific headers and import libraries).


  • SharonF

    You will need the Platform SDK as well. You can follow the link at the

    bottom of this page:

    http://msdn.microsoft.com/vstudio/express/visualc/

    Be sure to set up the environment as detailed in the how to section.



  • gustave

    i got the visual studio, but i go to build and it tells me that it can't find windows.h
  • gogoYang

    CDR-Maverick-TG wrote:
    ok, then how do i get it working in Visual c++ or will it work in BC5.5, if so where can i get it
    As laforced posted earlier, you can download the free express edition from here.

    Once you've downloaded and installed that, you need to install the Platform SDK - it's a prerequisite to the DirectX SDK and it's not included in the Express Edition download.

    Once that's downloaded/installed you might need to manually configure it by following these steps.

    Finally you can download (if you haven't already) and install the latest DirectX SDK. You might need to manually configure the lib/include paths in the same way as the previous article described for the PSDK.

    Fundamentally 3 steps and you're ready to go

    hth
    Jack



  • anand_vsd

    You need the correct libraries for Borland C++ to work with DirectX
    Here are 2 links that will help you.
    DirectX in Borland C++ from MVPS.org
    C++Builder Resources
    As you can see these resources are very old and doesn't really have the libs you are looking for.

    I would suggest getting the free Visual Studio Express products and working with that. They are free and should be what you are looking for.

    I hope this helps.
    Take care.


  • Xancholy

    installing the DX SDK in Visual C++ is as simple as telling VC where to find the header and libfiles.

    don't have the thing here at this computer, but if I remember correctly there's documentation included for the installation.


  • James E Freedle II

    Quick correction:

    Once that's downloaded/installed you might need to manually configure it by following these steps.
    Seems they might not be necessary. I'm sitting here in some labs trying to get D3D9 applications to build via VC++ EE and I can add the include/lib directories in the same way as all other VC++ versions:

    Tools -> Options -> Projects and Solutions -> VC++ Directories

    hth
    Jack


  • Sean McLeod

    I just noticed that the folder contains visual c++ files. Does that mean that I need Visual C++ to run this tutorial If my Borland C++ 5 won't run it at all will Borland C++ Builder 4 run it
  • J.Bizzle

    Actualy it's on cd and was bought a while ago. And I'm using Borland C++ 5.0 not 5.5
  • Pete dOronzio

    ok, then how do i get it working in Visual c++ or will it work in BC5.5, if so where can i get it
  • C++ Compiler