Results 1 to 6 of 6

Thread: Newbie DX programmer.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    19

    Newbie DX programmer.

    I decided to leap into DirectX using some tutorials provide here:

    http://externalweb.exhedra.com/Direc...R_Lesson03.asp


    I can't get this sample to run at all. I get an "Automation Error" with this line in the Renderer sub routine.

    VB Code:
    1. '//3. Update the frame to the screen...
    2. '       This is the same as the Primary.Flip method as used in DirectX 7
    3. '       These values below should work for almost all cases...
    4. D3DDevice.Present ByVal 0, ByVal 0, 0, ByVal 0


    Any assistance? I can't learn if the examples don't work.

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Newbie DX programmer.

    What did you do, just open their project and ran it, or did you copy and paste code from their page?

    You were suppose to download their zip file and run their project in there

    Here's the link to the zip file:
    http://externalweb.exhedra.com/Direc...8/Graph_03.zip

    Unzip that into a folder and run their project there.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    19

    Re: Newbie DX programmer.

    That's what I did.

    I downloaded it, unzipped it to a folder, loaded the project and ran it. I get that error.

  4. #4
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Newbie DX programmer.

    Hmmmm. Do you have DirectX8 installed at all?

    Or how bout this. Download any of the two zip files from my site and run those. Let's see if it'll work:

    www.angelfire.com/fl5/memorydll/index.html

    [Edit]Wait a minute. I know what it is. You need to have the computer set at 32 bit color mode. If it's at 16, you would get an automation error on that line. I can't believe I just remembered.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Apr 2005
    Posts
    19

    Re: Newbie DX programmer.

    I have it set to 32bit.
    I have directX8 installed. In fact I have 9 installed.
    I selected DirectX8 from the project references menu.

    I tried some code made for DX7 and it seems to run fine in windowed mode. From what I'm reading DX7 is easier to deal with.

  6. #6
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Newbie DX programmer.

    It could be your video card.

    By the way, have you tried out my examples to see if DX8 works ok? I have a better setup method than that site does.

    www.angelfire.com/fl5/memorydll/index.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width