Jump to content
Xtreme .Net Talk

Helper Class for DX8


Recommended Posts

Guest ShahMat
Posted

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...?

Guest ShahMat
Posted

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.

Guest ShahMat
Posted
Okay, here's the class. It's pretty basic, just passing functions along the chain, but at least it works in .NET.
  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...