Can you put a DialogBox into a DLL? I need for my DLL's to be able to control some of their internal parameters during debuging stages and id like to be able to pull up a dialog box and just change their values. I tried just putting one in, and exporting a method that calls DialogBoxParams but it just causes the program to close.
Code:// from Batch.h extern "C" DLLAPI void ParamDialog(const HINSTANCE& hInstance, const HWND& hParent); //Pre: //Post: INT_PTR CALLBACK DialogProc(HWND hwndDlg, UINT Msg, WPARAM wParam, LPARAM lParam); //Pre: //Post: //from Batch.cpp void ParamDialog(const HINSTANCE& hInstance, const HWND& hParent) { int iDlg = ::DialogBoxParam(hInstance, MAKEINTRESOURCE(IDD_DIALOG1), hParent, DialogProc, NULL); }



LinkBack URL
About LinkBacks


