Ralf Habacker ralf.habacker@freenet.de wrote:
GetDlgItemTextA(hDlg, cmb2, lpdm->dmFormName, sizeof(lpdm->dmFormName));
Please use CCHFORMNAME instead of sizeof().
GetDlgItemTextW(hDlg, cmb2, lpdm->dmFormName, sizeof(lpdm->dmFormName)/sizeof(WCHAR));
Same here.