Ten
June 11th, 2005, 06:52 AM
Hi all,
i'm trying to use a dialogbox and its dialog procedure from a dll.
For example :
HINSTANCE hDll = LoadLibrary("Dialog.dll");
DialogBoxParam(hDll, (LPCTSTR)101,NULL, reinterpret_cast<DLGPROC>(&AppDlgProc), 0);
but i don't want to use 'AppDlgProc' but the procedure of the dialog which is in the dll.
Is it possible ? i know that it's possible by calling a function in the dll that launch the dialog but if i don't have the dll's source code, i can't.
In spy++ there is a property : 'Window Proc', can i use it ?
Thanks.
i'm trying to use a dialogbox and its dialog procedure from a dll.
For example :
HINSTANCE hDll = LoadLibrary("Dialog.dll");
DialogBoxParam(hDll, (LPCTSTR)101,NULL, reinterpret_cast<DLGPROC>(&AppDlgProc), 0);
but i don't want to use 'AppDlgProc' but the procedure of the dialog which is in the dll.
Is it possible ? i know that it's possible by calling a function in the dll that launch the dialog but if i don't have the dll's source code, i can't.
In spy++ there is a property : 'Window Proc', can i use it ?
Thanks.