Hello, I am a bit new to GUI programming...I am currently using code::blocks to build everything manually here. I have two dialogs, one in which I need to get whatever is typed in stored to a string, or variable, but i am unable to pull the information from the EDITTEXT box. I get an error message about invalid conversion of int to hwnd.
I am using : GetDlgItemText(DLG_SETS, IDC_SETS1, stringVariable, sizeof(stringVariable)); to try and get the value of the EDITTEXT box from the DLG_SETS dialog.
I will list my source code in the following order:
main.cpp | resource.rc | resource.h
/* !>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>
! TODO LIST:
|
| 1. DLG_SETS1 variables to file (encoded)
| 2. Utilize DLG_SETS1 variables to login to tools.bisc.cv site
| 3. Create HTML Scraper to grab and display data
| 4. API Hook to OMNI? AUTOPOLL INFO HURRAH!
|
!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>!>
case IDC_EDIT1:
/*
* TODO: Add code to initialize the dialog.
*/
return TRUE;
case IDC_GETACCT:
/*
* TODO: Add code to initialize the dialog.
*/
return TRUE;
case IDC_SAVESETS:
GetDlgItemText(DLG_SETS, IDC_SETS1, stringVariable, sizeof(stringVariable));
return TRUE;
}
}
return FALSE;
}
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
// The user interface is a modal dialog box
return DialogBox(hInstance, MAKEINTRESOURCE(DLG_MAIN), NULL, DialogProc);
}