How DirectX discriminates VB.net developers .... or not ?!?

How DirectX discriminates VB.net developers .... or not ?!?

No, I am not talking about the point that there are no more VB.NET samples in the new 9.0c SDK. I even like the fact that they are now concentrating on one language to have more examples, so please keep up the good work and give us more manged DirectX stuff (I want to see more managed examples then C++ stuff).

I mean the following thing in the Font Class (Which is used also in GUI example) :

Public Function DrawText( _
    ByVal sprite As Sprite, _
    ByVal text As String, _
    ByVal rect As Rectangle, _
    ByVal format As DrawTextFormat, _
    ByVal color As Color _
) As Integer

Or

Public Function DrawText( _
    ByVal sprite As Sprite, _
    ByVal text As String, _
    ByRef rect As Rectangle, _
    ByVal format As DrawTextFormat, _
    ByVal color As Color _
) As Integer

Which differs only in the rect Value which is one time byval and one time byref so I am getting a "not most specific" error when I want to compile. I am still able to DrawText by another function call but then it is not possible to use the DrawTextFormat for formatting the text :-( .

So does anyone know a way to specify which way I want to call in VB.net or is it really a design flaw ?!?!

This article is part of the GWB Archives. Original Author: Tim Preuster

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.