G
Guest
I am building a custom Application class because I need to perform some
actions AFTER the main form is displayed and the message pump is started.
I have implementing my own message pump using the GetMessage /
DispatchMessage api calls, but I'm afraid my application's performance will
be impacted by using managed code in such a critical point.
After reverse engineering the System.Windows.Forms.Application type I have
noticed that the Run method calls the EnterMainLoop function from the AGL
library.
I know I am not supposed to use the AGL library but I am willing to take the
risk if I am to improve my performance. The problem is that AGL is not
visible from my app.
So how do I declate a DllImport for an AGL function?
Thanks!
actions AFTER the main form is displayed and the message pump is started.
I have implementing my own message pump using the GetMessage /
DispatchMessage api calls, but I'm afraid my application's performance will
be impacted by using managed code in such a critical point.
After reverse engineering the System.Windows.Forms.Application type I have
noticed that the Run method calls the EnterMainLoop function from the AGL
library.
I know I am not supposed to use the AGL library but I am willing to take the
risk if I am to improve my performance. The problem is that AGL is not
visible from my app.
So how do I declate a DllImport for an AGL function?
Thanks!