Notifications
Announcements
No record found.
Hello.
What is the equivalent to IntPtr in AX Dynamics code (2009)?
Also - Convert IntPtr to HWND and vice versa.
(I need to call a dll in C#, which gets a IntPtr parameter).
Thanks :)
*This post is locked for comments
If you need IntPtr in X++, simply use it via CLR Interop.
See it all in this simple example:
HWND hwnd = formRun.hWnd(); System.IntPtr intptr = new System.IntPtr(hwnd); ; hwnd = intptr.ToInt32();
Hi Martin, can you tell me why I am getting this error message?
Check if GetMbitmap() returns the a compatible type and save it to a variable before passing to the constructor. I guess that the current code is interpreted as passing an object (ClrObject), which isn't among types accepted by the constructor.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2