DavidOliveira Posted July 8, 2009 Posted July 8, 2009 hey people,i want to get data from edit and show to the user,
Killboy Posted July 8, 2009 Posted July 8, 2009 For most window interaction SendMessage is your friend. In this case GetWindowText might help.On a side note, this forum is meant to help you with problems you can't solve yourself. It is not a replacement for google or a decent C++ reference or MSDN.
mudlord Posted July 8, 2009 Posted July 8, 2009 DWORD WINAPI GenerateSerial(HWND hwnd){ unsigned char name[MAX_NAME]; char serial[MAX_SERIAL]; memset(serial,0,MAX_SERIAL); if(GetDlgItemText(hwnd,IDC_NAME,(char*)name,MAX_NAME)<MIN_NAME) { SetDlgItemText(hwnd, IDC_SERIAL,"Please enter a longer name..."); return 1; } process_serial((char*)name, serial); SetDlgItemText(hwnd, IDC_SERIAL,serial); return 0;}
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now