Helper Class for DX8

  • Thread starter Thread starter ShahMat
  • Start date Start date
S

ShahMat

Guest
I recently converted a perfectly fine DirectX 8.1 program from VB6 to VB.NET and it broke! No problem, I got most of it fixed, but I noticed in the upgrade report that unattached functions are not allowed in VB.NET. I needed to use the D3DColorRGBA function to convert a hex RGBA value to an integer (long in VB6) but since it's not attached to a class, it got dropped from the type library. So I whipped up this little class that you can compile into a VB6 dll, import as a reference, and use as D3DCOLORAUX global functions. Enjoy!

PS since this has more to do with fixing old apps to work with .NET, does this thread go here or in the DirectX forum? Or maybe both...?
 
Doh!

Oops, yes, I did forget to put up the attachment. Sorry! I don't have the code here at home, but I'll upload the class module from work tomorrow.
 
Okay, here's the class. It's pretty basic, just passing functions along the chain, but at least it works in .NET.
 
Back
Top