Guest ShahMat Posted August 21, 2002 Posted August 21, 2002 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...? Quote
*Gurus* Thinker Posted August 21, 2002 *Gurus* Posted August 21, 2002 I think you forgot the attachment. Quote Posting Guidelines
Guest ShahMat Posted August 22, 2002 Posted August 22, 2002 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. Quote
Guest ShahMat Posted August 22, 2002 Posted August 22, 2002 Okay, here's the class. It's pretty basic, just passing functions along the chain, but at least it works in .NET. Quote
one Posted August 11, 2008 Posted August 11, 2008 Sorry for necroposting, but is the attachment broken? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.