Pelles C > General discussions
Getting variables
(1/1)
post from old forum:
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:
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:
i mean from a windows application
from a Editbox in a dialog
Bryan Whitehorn
post from old forum:
Try using the Windows API function GetDlgItemInt().
Pelle
Navigation
[0] Message Index
Go to full version