Tim Preuster

blog

  Home  |   Contact  |   Syndication    |   Login
  7 Posts | 0 Stories | 1 Comments | 4 Trackbacks

News

Archives

Post Categories

Wednesday, September 08, 2004 #

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

 

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

I am now officially back at home after 2 weeks holiday in the beautiful Unterach (Austria -> Alps). Just before that when I started my blog I was doing some project work in the UK on a POS System, which made it a bit complicated to dive completely in my new blog  ...

But now I am back  and I have the fortune to start a complete new software, and the ideas I have for it are currently faster coming out of me then I am with researching / planning / designing ...

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati