VB6 Proxy - Vb.Net comparision

01/10/2008 00:52 NovaCygni#1
hi again, another problem but much farther ive got now, Im converting to VB.Net and have fixed all the Syntex errors but I have a problem with the following line:
Code:
Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As [COLOR="red"]Any[/COLOR], ByVal lpBuffer As [COLOR="Red"]Any[/COLOR], ByVal nSize As Long, ByVal lpNumberOfBytesWritten As Long) As Long
Obviously 'as any' isnt supported in delcare funtions in vb.net, would anyone know the vb.net version of the any value? thanks again.




ok i found my problem
Quote:
As Any not allowed in VB.NET. As Any will not be allowed in API declarations. Get prepared by adding a separate API declaration for all parameter types you may need. Can be fixed before or after upgrade.
:confused: what it mean by declaraion for parameter types?
Quote:
VB.NET does not support the Any keyword. You must specifically declare the data type of every argument and of the return.
any ideas?
01/10/2008 04:26 bone-you#2
They both would be char/string. They'd be an array of type char if other languages. Convert that to VB =)
01/10/2008 05:39 NovaCygni#3
Quote:
Originally Posted by bone-you View Post
They both would be char/string. They'd be an array of type char if other languages. Convert that to VB =)
array of type char is c++ so if i find the VB value for that I have my value? thankyou
01/10/2008 07:02 ChrisR872#4
Change as any to as object

~Chris