brilliant link, just what I needed :thumb:Quote:
Originally Posted by tr333
VB.NET <3
Printable View
brilliant link, just what I needed :thumb:Quote:
Originally Posted by tr333
VB.NET <3
Is there a equivalent to objptr function in VB 2005.
I'm converting code from vb 6 to vb 2005.
gcTimerObjects.Add(ObjPtr(Me), mnTimerID) - converted vb 6 code.
ObjPtr is deprecated and it can no more be used. So is there any substitute for it in VB 2005.
how can we find the address of a object??
Thanks,
Sugan
Did you try just removing it and seeing if it works?Quote:
Originally Posted by vsugan_work
If i remove the ObjPtr function , the following is the error i get.Quote:
Originally Posted by kleinma
"Value of type 'vbuSoftButton.objTimer' cannot be converted to 'Integer'."
The function add requires the first argument as integer, which is the address of the object that requires to be passed. So if the objptr function is removed, "Me" refers to a objTimer which cannot be converted to integer.
So pls help how to proceed with this issue.
Thanks,
Sugan