Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB
byte* p = (byte*)(void*)bmData.Scan0.ToPointer();


i got this
VB
Dim p As Pointer(Of Byte) = CType(CType(bmData.Scan0.ToPointer(), Pointer(Of System.Void)), Pointer(Of Byte))


how to make it running? to avoid error

please help me. . thanks in advance.
Posted
Updated 16-Jan-12 18:03pm
v2

There is no conversion. VB.NET doesn't support pointers.
 
Share this answer
 
Agree with Dave. Probably you need to Code rewrite. Check these
Vb.net Pointers[^]
.NET Code Conversion[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900