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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error using POINTAPI

Status
Not open for further replies.

astrodestino

IS-IT--Management
Joined
Feb 19, 2005
Messages
179
Location
AR
Hi! I got a problem.
I am migrating an old vb6 app which get the desktop icons positions.
I have a problem here:

WriteProcessMemory(hProcess, lpSysShared, ptOriginal(0), dwSize, lWritten)

and in declarations:

Dim ptOriginal() As POINTAPI
Dim ptCurrent() As POINTAPI
Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByRef lpBaseAddress As Object, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer



When I run my apps it returns this error:


Value of ptOriginal(0) cannot be converted to integer.

Can this be fixeD?
Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top