S
Salisha Khan
I have an instance method that takes an ansi string.
Dim foo As Object
foo(String a)
The problem is Strings in VB .NET are unicode while in order for the method
to work it must accept an Ansi string. I can convert to an ansi byte array
but i can't pass a byte array, the method will only accept a string. I can't
use DllImport or Declare because the method is not static. I couldn't find
any good examples of how to use WideCharToMultibyte I'm not even sure if
this is what I need. Anybody have any ideas? Thanks
salisha
Dim foo As Object
foo(String a)
The problem is Strings in VB .NET are unicode while in order for the method
to work it must accept an Ansi string. I can convert to an ansi byte array
but i can't pass a byte array, the method will only accept a string. I can't
use DllImport or Declare because the method is not static. I couldn't find
any good examples of how to use WideCharToMultibyte I'm not even sure if
this is what I need. Anybody have any ideas? Thanks
salisha