By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

Converting C# Byte Pointer into VB.NET

P: 1
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

Expand|Select|Wrap|Line Numbers
  1. 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

Expand|Select|Wrap|Line Numbers
  1. byte* ptr = (byte*)(void*)bmpData.Scan0;
Thanks for the help!
Nov 20 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.