|
-
Apr 25th, 2005, 08:27 PM
#1
Thread Starter
Junior Member
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:
'//3. Update the frame to the screen...
' This is the same as the Primary.Flip method as used in DirectX 7
' These values below should work for almost all cases...
D3DDevice.Present ByVal 0, ByVal 0, 0, ByVal 0
Any assistance? I can't learn if the examples don't work.
-
Apr 25th, 2005, 08:30 PM
#2
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.
Last edited by Jacob Roman; Apr 25th, 2005 at 09:18 PM.
-
Apr 25th, 2005, 10:42 PM
#3
Thread Starter
Junior Member
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.
-
Apr 26th, 2005, 11:28 AM
#4
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.
-
Apr 26th, 2005, 02:45 PM
#5
Thread Starter
Junior Member
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.
-
Apr 26th, 2005, 04:37 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|