Jyrno42
October 27th, 2009, 08:13 PM
I 'm trying to get the text of a dialogItem and save it to a file. The problem is that GetDlgItemText returns 0 and the strings empty. Anyhow, here's the code I'm using:
LPTSTR lpch = L"";
int s = GetDlgItemText(gg->TabCtrls[0].inside[0].cDialog, IDC_EDIT1, lpch, 128);
if(s == 0) DBGMSG(L":S"); // DBGMSG is just a MessageBox.
int lol = GetLastError(); // This is 0.
BTW: I'm using a simple WinApi wrapper class I made.
LPTSTR lpch = L"";
int s = GetDlgItemText(gg->TabCtrls[0].inside[0].cDialog, IDC_EDIT1, lpch, 128);
if(s == 0) DBGMSG(L":S"); // DBGMSG is just a MessageBox.
int lol = GetLastError(); // This is 0.
BTW: I'm using a simple WinApi wrapper class I made.