I have an API I have to interact with which was originally written in Delphi.
It contains a method which needs an integer passed to it which represents the handle to the current window.
The problem is that in .net as far as I can see the handle to the current window is of IntPtr type and cannot be converted to an int type.
e.g.
Any Ideas Chaps and Chapesses ?Code:System.IntPtr myHandle = this.Handle; workflowAPI.myMethod(Convert.ToInt32(myHandle)); Error "Unable to cast object of type System.IntPtr" to type "System.IConvertible"
![]()





Reply With Quote