DirectX on windows 7
DirectX on windows 7
DirectX on windows 7
DirectX on windows 7
DirectX on windows 7
DirectX on windows 7 DirectX on windows 7 DirectX on windows 7 DirectX on windows 7 DirectX on windows 7 DirectX on windows 7 DirectX on windows 7 DirectX on windows 7
DirectX on windows 7 DirectX on windows 7
DirectX on windows 7
Go Back  Xtreme Visual Basic Talk > > > DirectX on windows 7


Reply
 
Thread Tools Display Modes
  #1  
Old 03-29-2010, 09:16 AM
k0nstantin0s k0nstantin0s is offline
Newcomer
 
Join Date: Mar 2010
Posts: 1
Default DirectX on windows 7


i've downloaded a visual basic game for you guys that uses directx and when i tried to open it, it showed me this:
http://i43.tinypic.com/2ch28o1.png

while i was searching on google for the problem i found out this in a Microsoft support' s page

Visual Basic 6.0 DirectX applications fail to run on Windows Vista and later

and me question is, is there any way to make it run?
Reply With Quote
  #2  
Old 03-29-2010, 02:39 PM
FireBot FireBot is offline
Centurion
 
Join Date: Mar 2008
Posts: 100
Default

Could try a compatibility mode.

Another option might be to use a newer version of DX.
Reply With Quote
  #3  
Old 03-29-2010, 03:38 PM
surfR2911 surfR2911 is offline
Contributor
 
Join Date: Oct 2009
Posts: 719
Default VB6, Windows7, and Directx9, DirectX10 and DirectX11

I believe the Microsoft support page that k0nstantin0s is referring to is:
http://support.microsoft.com/kb/971028

Since this is a "future-oriented" question that is likely to come up again, perhaps a little more info (and explanation) is in order.

Here's is a selected (excerpted) quote from DirectX Wikipedia Page
http://en.wikipedia.org/wiki/DirectX
Quote:
A major update to DirectX API, DirectX 10 ships with and is only available with Windows Vista and later..
In order to achieve backwards compatibility, DirectX in Windows Vista contains several versions of Direct3D:
* Direct3D 9: emulates Direct3D 9 behavior as it was on Windows XP. Details and advantages of Vista's Windows Display Driver Model are hidden from the application if WDDM drivers are installed. This is the only API available if there are only XP graphic drivers (XDDM) installed, after an upgrade to Vista for example.
* Direct3D 9Ex (known internally during Windows Vista development as 9.0L or 9.L): allows full access to the new capabilities of WDDM (if WDDM drivers are installed) while maintaining compatibility for existing Direct3D applications. The Windows Aero user interface relies on D3D 9Ex.
* Direct3D 10: Designed around the new driver model in Windows Vista and featuring a number of improvements to rendering capabilities and flexibility, including Shader Model 4.
[more info]
http://msdn.microsoft.com/en-us/libr...56(VS.85).aspx

Prior to DirectX 10, DirectX runtime was designed to be backward compatible with older drivers, meaning that newer versions of the APIs were designed to interoperate with older drivers written against a previous version's DDI. The application programmer had to query the available hardware capabilities using a complex system of "cap bits" each tied to a particular hardware feature. For example, a game designed for and running on Direct3D 9 with a graphics adapter driver designed for Direct3D 6 would still work, albeit most likely with degraded functionality.

However, the Direct3D 10 runtime in Windows Vista cannot run on older hardware drivers due to the significantly updated DDI, which requires a unified feature set and abandons the use of "cap bits".
So basically there was a DirectX "cutoff" for Windows that happened between DirectX 9 and DirectX 10.
Vista (and I assume also Windows 7) had a slight "fudge" that would allow them to have DX9 capability but not go any further back (DX8, DX7, etc) without using a compatibility mode (or virtual PC software window inside the OS).

VB6's cutoff (as far as I know) is between DirectX 8.1b and DirectX 9.
Or in other words Direct X up to DirectX 8.1b (including the including the important 3D/Direct3D functions) is supported, but DirectX 9 code (and any code for later DirectX versions) are not.
Reference thread: "Can i use DirectX9 in VB6?"
Can i use DirectX9 in VB6

After reading through the above reference thread the question of "Why hasn't someone come up with a DX9 Type Library for DirectX?" might still be hanging in the air.
Here's a thread that talks about creating a VB6 type lib "wrapper" around
the .Net assemblies needed for DX 9,10,11:
http://www.truevision3d.com/forums/g...-t10246.0.html

What Microsoft seems to be pushing is for programmers who don't want to use unmanaged C/C++.Net code to develop advanced DX9, 10 and 11 games is to instead use managed C#.Net code with XNA.

However, Microsoft has never said that you can't use managed VB.Net code to develop DirectX 9,10, and 11 games but then again they hasn't exactly been forthcoming about providing a VB.Net SDK loaded with complete game samples either.

As a side note (and I know this is the legacy VB side of the forum and not the VB.Net side, but it does refer to what I brought up in the last paragraph of this post),
I would mention someone who used to work for Microsoft (up until 2005) named "ZMan".
Together with another another programmer named "twawsico", they have made available an interesting conversion of some of graphical oriented parts of the C#.Net SDK samples into VB.Net code samples.
The links:
http://www.thezbuffer.com/articles/51.aspx
http://www.thezbuffer.com/articles/187.aspx
Of course this does not replace great conversion of C#.Net DirectX tutorials into VB.Net by one of our own forum members DrunkenHyena:
http://www.drunkenhyena.com/cgi-bin/dx9_net.pl

Just to not have to end this post on a VB.Net orientation here is a thread (with ZMan involved) that talks about running (and getting to work) VB6 coded directX 8 games under Vista and certain EULA issues.
DX8VB.DLL, DX7VB.DLL, VB6 and Vista Compatibility"
http://social.msdn.microsoft.com/For...-f5f255c2c679/

Last edited by surfR2911; 03-29-2010 at 04:40 PM.
Reply With Quote
  #4  
Old 03-30-2010, 04:29 PM
FireBot FireBot is offline
Centurion
 
Join Date: Mar 2008
Posts: 100
Default

DxIce supports DX9c.

Had a very large application, about 50k lines, largely graphical. Needed to increase the abilities(and heck, performance), and found DxIce to be a decent fit. Here's a link: http://gamedev.digiapp.com/dxice/forum.asp?FORUM_ID=1 It's a forum that requires registration(yea, it's free!). There's no real reference documentation, but there are over a dozen working examples with source code(and the forum, and a few examples are actually decent games -very basic, but decent), and it's pretty easy to pick up. I went from no DX experience to my first DX9 game in just a few days.

It's also being actively developed for VB6 and VB.Net.

This was actually a big reason behind using DX9, because it seems it will be relevant for some time, and has broad current support.

Last edited by FireBot; 03-30-2010 at 04:34 PM.
Reply With Quote
  #5  
Old 04-03-2010, 02:48 AM
surfR2911 surfR2911 is offline
Contributor
 
Join Date: Oct 2009
Posts: 719
Default DirectX9 Typelib

Thanks for the link Firebot, hopefully k0nstantin0s will be willing to explore this alternative.

I note, though, on the version DxIce Engine SDK v1.70 download page it says:
"Dx9IceA.tlb - Type library to interface some of directX9." (emphasis mine)
--but I guess some support is better than none <*shrug*>

Using the Object browser on the tlb it does appear to have a reasonable amount of D3D support include DDS files.

So (since there isn't much info on DXT files on this forum), here's some DDS / DXT related links extracted from off the DXIce forum):
Creating DDS files:
http://wiki.rigsofrods.com/index.php...g_DDS_textures
The nVidia DDS convertor tools
http://developer.nvidia.com/object/d...es_legacy.html
http://developer.nvidia.com/object/texture_tools.html
Photoshop DDS Plugins:
http://developer.nvidia.com/object/p...s_plugins.html
BMP to DDS convertor
http://www.mnwright.btinternet.co.uk...ams/dxtbmp.htm

Off course, in addition to GIMP for Windows, DDS files can also be
created by the free Paint.Net app.
The plugin has been included with the program since version 3.10:
http://paintdotnet.forumer.com/viewtopic.php?t=1637

...and here is another interesting link I found on one of their forum pages:
Installing and configuring VB6 IDE under Windows7
http://www.fortypoundhead.com/showco...sp?artid=20502
Reply With Quote
  #6  
Old 04-03-2010, 03:54 AM
FireBot FireBot is offline
Centurion
 
Join Date: Mar 2008
Posts: 100
Default

Yea, it's a heavily 2D-focused engine, pretty basic 3D support. But there are countless other engines that handle 3D, but few that focus on 2D.
Reply With Quote
  #7  
Old 05-16-2010, 07:22 AM
DracullSoft DracullSoft is offline
Newcomer
 
Join Date: Mar 2010
Posts: 2
Default

Hey - i'll just add a few comments.

Dx9IceA.tlb is just a small set of what the Dx ICE is using internally F.x. you might have trouble handling surphaces and textures using only dx9iceA.tlb.
and Yes, I actually made a typelib wrapper for nearly all of directx9 for use internally and a few stubs in C++ for the some of the parts that was earlier done in the dx8vb.dll.
If you want to run the older program samples that uses dx8vb.dll you can actually register it both on vista and win 7 - it works but I heard its not legal to distribute programs/games that do that.

Alternative is to look at http://www.planet-source-code.com/vb...59767&lngWId=1

However as Firebot says, the Dx ICE focus is 2d and isometric games (with a few 3d cut scenes). If you are looking for real 3d games you should look elsewhere and perhaps also consider C++ or C# / XNA

But if you want to make casual games (2d or isometric) using a high level game engine that hides then check it out

Last edited by Cerian Knight; 02-10-2011 at 07:10 AM. Reason: DracullSoft: added into about dx8vb.dll; Moderator: Updated URL
Reply With Quote
  #8  
Old 11-12-2011, 10:13 PM
skoal111111 skoal111111 is offline
Newcomer
 
Join Date: Dec 2004
Posts: 11
Default

FYI,

This may or may not be relevant to this thread.

Nonetheless, I Bought a new computer last month and obviously loved windows XP (old computer), but hated Windows 7 (new computer). Spent some time trying to figure out how to install Windows XP on an IDE drive, and came close but eventually gave up.

At that point, I started installing a few programs just to make Windows 7 look and feel more like Windows XP (felt trapped with Windows 7 so thought I would make the best of it). I think the main one I used was ClassicExplorerSettings.exe, but there were a few others as well.

Anyhow, as an unexpected side affect visual basic worked fine after I made the changes. It also had a working DirectX7 library. Haven’t' figured out how to get DirectX8 working yet, but don't do much 3d programming anymore so not too concerned.

Just as a side note, when I check to see what version of DirectX is on my machine is says it's running DirectX 11 under Windows 7, even thou it more or less looks likes it's running Windows XP and has most of the old visual basic libraries.

Didn't know if anybody else has done this as well or if this approach helps anybody.
Reply With Quote
  #9  
Old 01-28-2012, 04:00 AM
Mikle Mikle is offline
Newcomer
 
Join Date: Dec 2007
Location: Russia, Tuapse
Posts: 5
Default

Look at my port for DX9 with VB6:
Here my dll, port (moduls and classes), some tutorials and shader compiler.
Your program not need any d3dx9_XX.dll!
It is worked in XP, Vista and Windows7.

This is examples:
http://tuapse-mikle.narod.ru/dx_vb/Tutorials.zip

This is shader compiler:
http://tuapse-mikle.narod.ru/dx_vb/ShaderCompiler.zip

The article with demo, translated from Russian by DracullSoft:
Rendering realistic endless water surface with refraction, reflection and caustics

This is the latest version of the engine:
http://tuapse-mikle.narod.ru/dx_vb/new_dx_vb.zip
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
DirectX on windows 7
DirectX on windows 7
DirectX on windows 7 DirectX on windows 7
DirectX on windows 7
DirectX on windows 7
DirectX on windows 7 DirectX on windows 7 DirectX on windows 7 DirectX on windows 7 DirectX on windows 7 DirectX on windows 7 DirectX on windows 7
DirectX on windows 7
DirectX on windows 7
 
DirectX on windows 7
DirectX on windows 7
 
-->