Skip to main content
GameDev.net gamedev.net
🔒 Locked

Input trouble

Started by The Heretic Feb 15, 2003 at 7:45 AM 0 replies 200+ views
Original Post
The Heretic
The Heretic
Hmm... Now it won''t let me input a string:/. cout << "Handle: "; cin >> tempInt; tempHWND = (HWND) tempInt; cout << "New caption: "; cin.getline(tempStr, 50); SetWindowText(tempHWND, tempStr); I put that in, compile it, and input my HWND. Then it just skips inputting the string. Anyone have any ideas?
Sand_Hawk
Sand_Hawk
If you''re writing a program to change the caption of a program in windows, why are you using a console app? It''s way easier to write a GUI app with a list of windows that you can change. Besides, how is the user going to find the hWnd?

Sand Hawk

----------------

(Inspired by Pouya)
----------------(Inspired by Pouya)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.