NO

Author Topic: Getting variables  (Read 5306 times)

post from old forum

  • Guest
Getting variables
« on: September 13, 2004, 09:22:21 PM »
how do i get a word from an input box and make it into a variable that i can work with.

Bryan Whitehorn

post from old forum

  • Guest
Getting variables
« Reply #1 on: September 13, 2004, 09:22:50 PM »
I'm not fully sure what you mean by an input box. Are you referring to an edit control or something like that? If so, you'll want to use GetWindowText to get the text from it. If you mean a console window then you'd use one of the functions from the standard library such as scanf.
If you need to split a buffer of text into words, you could use strtok to loop through them.

Whatever

post from old forum

  • Guest
Getting variables
« Reply #2 on: September 13, 2004, 09:23:18 PM »
i mean from a windows application
from a Editbox in a dialog

Bryan Whitehorn

post from old forum

  • Guest
Getting variables
« Reply #3 on: September 13, 2004, 09:23:42 PM »
Try using the Windows API function GetDlgItemInt().

Pelle