Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Byval as Any error 1

Status
Not open for further replies.

astrodestino

IS-IT--Management
Feb 19, 2005
179
AR
Hi!
I migrated one app from VB to VB.NET but I got an error en the as Any Statement
Code:
Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByRef lpBaseAddress As Any, ByRef lpBuffer As Any, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
With what can I replace the as any en vb.net?

Tnx!
 
Hi,

Try substituting As Any with As IntPtr. IntPtr is VB .Net's way of representing pointers.

A quick google search brought up some example code using ReadProcessMemory in VB .Net, which uses IntPtr instead of Any, but there's a good deal of extra code to trace through as well.


Jay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top