ERROR Convert string to integer to store in IntPtr

0

I need to pass a value of type string to IntPtr.

I am using the following method:

Any ideas to skip that error?

Thank you very much!

    
asked by Adrian Hernando Solanas 21.09.2018 в 23:20
source

1 answer

2

Remember that the integers have a limit, in this case you are exceeding those limits, declares IntPtrDest as "Long" and uses:

IntPtrDest = CLng(mystring)
    
answered by 22.09.2018 / 00:05
source