|
-
Mar 29th, 2000, 09:54 AM
#1
Ok, I have DX7, and this is not exactly a problem, you can say, sort of a question or an inquiry... Here's my Declaration code, that's supposed to work ONLY with DX7??
#1 --------- Code Beginning
Dim dx As New DirectX7
Dim dd As DirectDraw7
Set dd = dx.DirectDrawCreate("")
dd.SetCooperativeLevel Me.hWnd, DDSCL_FULLSCREEN Or DDSCL_EXCLUSIVE Or DDSCL_ALLOWMODEX
dd.SetDisplayMode 800,600,16,0,DDSM_DEFAULT
--------- End oF Code
ok, above code is supposed to work for Dx7 systems, but what I noticed was that the dx file also had DirectDraw4, which I read somewhere that is supposed to be for DirectX 6... Now I changed that code from above to the following
#2 -------- Code Beginning
Dim dx As New DirectX7
Dim dd As DirectDraw4
Set dd = dx.DirectDraw4Create("")
dd.SetCooperativeLevel Form1.hWnd, DDSCL_FULLSCREEN Or DDSCL_EXCLUSIVE Or DDSCL_ALLOWMODEX
dd.SetDisplayMode 640, 480, 16, 0, DDSDM_DEFAULT
-------- End of Code
Since I'm developing on Dx7 and the program that i'm making may be used by people with Dx6, I've read in places that people have problems upgrading to dx7 so I really don't want someone to mess their computers up, what I'm wondering is that, does the Code #2 works on DirectX 6 as I'm assuming? or am I wrong in assuming that? I don't have anyone to test it out, 3 peeps have tested the SIMPLE program out, but I later found out that they're DX7... so I'm like almost hopeless, untill it hit me to ask the question on this board... I know that CODE #1 won't work on Dx6, cause it's totally DX7, but would Code #2 work on DX6 systems???
If you can answer my question, I'd really appericiate it, BTW, if u still don't get my question, just read the whole message again, and then this is my question...
Code Example #2 Developed in Vb, on Dx7 system, Would it work on a Dx6 system?
that's my question, now answer if you know what I'm talking about.. please...
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
|