Posted By: fabrice Plugin - VS C++ - add windows - 05/19/23 10:20 PM
Hello, i am playing with plugin.
I start from Visual Studio example delivered with pl/sql dev, compile the dll, and everything work fine.
Now, i want to add a window, like a configuration windows.
In visual studio, i add a dialog in resources files (IDD_DIALOG1).
I try to show the dialog with this command :

DialogBox(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG1), NULL, DialogProc);
DialogProc is the callback function

But, my dialog never open.
I'm not sure it's correct to use GetModuleHandle(NULL).
Can someone show me my mistake(s) or a better way to do it.
Thanks
Posted By: lost Re: Plugin - VS C++ - add windows - 05/21/23 10:08 AM
Save hInstance in DllEntryPoint(), then use it in DialogBox.
Posted By: fabrice Re: Plugin - VS C++ - add windows - 05/21/23 12:45 PM
I replace GetModuleHandle(NULL) by save hInstance , and my dialog appear.

Thanks
© Allround Automations forums