Converting C# Byte Pointer into VB.NET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Daryl Lee
    New Member
    • Nov 2010
    • 1

    Converting C# Byte Pointer into VB.NET

    I'm currently coding a for fun version of a texture transfer tool from a paper i read from SIGGRAPH'01..i' ve figured out most of the coding based on the C# i found somewhere but I'm having trouble with its conversion into VB.NET.

    my line

    Code:
    Dim ptr As Pointer(As Byte) = CType(CType(bmpData.Scan0, Pointer(Of System.Void)), Pointer(Of Byte))
    returns an error that says Pointer is not defined (BC30002).

    the original C# is

    Code:
    byte* ptr = (byte*)(void*)bmpData.Scan0;
    Thanks for the help!
Working...