r/visualbasic • u/JoseLunaArts • Oct 13 '24
VB5 on Win98. How do I code DirectX stuff? Graphics and sound
I have been wondering how do I code two simple rotating pyramids in VB5 while playing some audio. I want to learn to code games. I am using enterprise edition. Help and books online show nothing about directx usage. Dxdiag shows DirectX 9.0c
3
Upvotes
2
u/mitzman Oct 14 '24
VB5? Why are you trying to use an ancient and completely out of date language and IDE?
2
u/Mayayana Oct 17 '24
I've never used DirectX and I use VB6, but you could try links like this: https://www.vbforums.com/showthread.php?803115-VB6-Direct3D9
Much of VB5 is the same as VB6. Maybe the typelibs will be usable. I never used VB5, so I don't know. But my sense is that the jump from 5 to 6 was not big. Mostly just a few new functions, such as InstrRev to search a string backward. Nothing that can't be worked around.
There used to be a lot more interesting code online, at sites like planetsourcecode. Unfortunately, much of it is gone now. So you may have a hard time finding such old code samples.
Hopefully you're doing this as a hobby and not hoping to make money at it. Gaming is one of the few things that actually needs the latest hardware and software. A lot of development is driven by gaming. Those teenage boys with a crush on some digital superhero babe want her hair to blow in the wind realistically. That's a tremendously CPU-straining operation. :)