Adrian Hernando Solanas Asked: 2020-09-22 13:20:52 +0800 CST 2020-09-22 13:20:52 +0800 CST 2020-09-22 13:20:52 +0800 CST ERROR Convert string to integer to store in IntPtr 772 I need to pass a value of type string to IntPtr. I am using the following method: Any ideas to get around that error? Thank you very much! vb.net 1 Answers Voted Best Answer Jocksan Cruz 2020-09-22T14:05:05+08:002020-09-22T14:05:05+08:00 Remember that integers have a limit, in this case you are exceeding those limits, declare IntPtrDest as "Long" and use: IntPtrDest = CLng(mystring)
Remember that integers have a limit, in this case you are exceeding those limits, declare IntPtrDest as "Long" and use: