Click here to Skip to main content
15,920,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: get the current working directory Pin
Dudi Avramov17-Jun-04 0:56
Dudi Avramov17-Jun-04 0:56 
GeneralManipulate text file Pin
?!?17-Jun-04 0:47
?!?17-Jun-04 0:47 
GeneralRe: Manipulate text file Pin
toxcct17-Jun-04 1:00
toxcct17-Jun-04 1:00 
GeneralRe: Manipulate text file Pin
V.17-Jun-04 2:02
professionalV.17-Jun-04 2:02 
GeneralRe: Manipulate text file Pin
chauteen25-Aug-04 22:44
chauteen25-Aug-04 22:44 
GeneralRe: Manipulate text file Pin
V.25-Aug-04 23:23
professionalV.25-Aug-04 23:23 
Generalstill wnat to ask_Re: Manipulate text file Pin
chauteen26-Aug-04 18:15
chauteen26-Aug-04 18:15 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
V.26-Aug-04 20:47
professionalV.26-Aug-04 20:47 
I suppose you are using MFC? Then you know that a spinbutton is a textbox attached with a spincontrol.

Get a handle to your textboxes (assign a control variable or via GetDlgItem)
eg your handlers are called: edit1, edit2, ... edit8
and assign CStrings eg. string1 -> string8
then you can do when onchangeedit1 occurs.
edit1.GetWindowText(string1);
etc...
then print them with fprintf and read them with freadf.

If you don't use CString use char or a char array, not BYTE. (a BYTE can be anything).

You could try casting the BYTE to a char, but I'm not sure what it will give.

I think the reason of your strange results is that a BYTE will not be interpreted as a character, but that just a guess.

if the char array doesn't seem to work you probably forgot the "\o" character.

You can find this stuff on MSDN. Look on CString, GetWindowText (SetWindowText) etc.

(note: if you can't assign a control variable do this:
CWnd* pWnd;<br />
pWnd = (CWnd*)GetDlgItem(IDC_NAMEOF_EDIT_BOX);<br />
pWnd->GetWindowText(.....)
.... )


"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
Anonymous2-Sep-04 0:47
Anonymous2-Sep-04 0:47 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
V.2-Sep-04 1:21
professionalV.2-Sep-04 1:21 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
chauteen2-Sep-04 16:22
chauteen2-Sep-04 16:22 
GeneralRe: still wnat to ask_Re: Manipulate text file Pin
V.2-Sep-04 20:59
professionalV.2-Sep-04 20:59 
QuestionAre there good WMI samples, articles, books ? Pin
vgrigor117-Jun-04 0:37
vgrigor117-Jun-04 0:37 
AnswerRe: Are there good WMI samples, articles, books ? Pin
Antony M Kancidrowski17-Jun-04 1:52
Antony M Kancidrowski17-Jun-04 1:52 
Generalbatch file for setting env variables Pin
John Oliver17-Jun-04 0:05
John Oliver17-Jun-04 0:05 
GeneralRe: batch file for setting env variables Pin
David Crow17-Jun-04 3:15
David Crow17-Jun-04 3:15 
GeneralRe: batch file for setting env variables Pin
John Oliver17-Jun-04 3:39
John Oliver17-Jun-04 3:39 
QuestionAny idea on this simple application? Pin
Nelson L.16-Jun-04 22:25
Nelson L.16-Jun-04 22:25 
AnswerRe: Any idea on this simple application? Pin
John Oliver17-Jun-04 0:08
John Oliver17-Jun-04 0:08 
GeneralON_COMMAND_RANGE problem Pin
ThatsAlok16-Jun-04 22:20
ThatsAlok16-Jun-04 22:20 
GeneralRe: ON_COMMAND_RANGE problem Pin
Cedric Moonen16-Jun-04 23:24
Cedric Moonen16-Jun-04 23:24 
Generaloperator- in Date Class Pin
foxele16-Jun-04 21:35
foxele16-Jun-04 21:35 
GeneralRe: operator- in Date Class Pin
V.16-Jun-04 22:00
professionalV.16-Jun-04 22:00 
GeneralRe: operator- in Date Class Pin
John Oliver17-Jun-04 2:12
John Oliver17-Jun-04 2:12 
GeneralRe: operator- in Date Class Pin
John Oliver17-Jun-04 0:20
John Oliver17-Jun-04 0:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.