Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to disable control animation, combobox Pin
Randor 2-Sep-09 15:00
professional Randor 2-Sep-09 15:00 
GeneralRe: How to disable control animation, combobox Pin
Moak2-Sep-09 15:17
Moak2-Sep-09 15:17 
GeneralRe: How to disable control animation, combobox Pin
Randor 2-Sep-09 15:23
professional Randor 2-Sep-09 15:23 
GeneralRe: How to disable control animation, combobox Pin
Code-o-mat2-Sep-09 20:34
Code-o-mat2-Sep-09 20:34 
QuestionHow to dispatch WM_LBUTTONDOWN message after calling ReleaseCapture()? Pin
includeh102-Sep-09 8:48
includeh102-Sep-09 8:48 
AnswerRe: How to dispatch WM_LBUTTONDOWN message after calling ReleaseCapture()? Pin
Stuart Dootson2-Sep-09 9:07
professionalStuart Dootson2-Sep-09 9:07 
GeneralRe: How to dispatch WM_LBUTTONDOWN message after calling ReleaseCapture()? Pin
includeh103-Sep-09 7:45
includeh103-Sep-09 7:45 
Questionchar char[] variables help Pin
egerving2-Sep-09 8:26
egerving2-Sep-09 8:26 
I am a major newbie to window API and coding in C C++. I'm having a major problem with character variables. In other languages you can just say
variable char x = "Hello"
variable char y = "I'm stupid"
x="No, I'm really not stupid"
x=y

but in c a char is basically a number from the ASCII table
and if you define char x[112] you then can't say x="Hello" because I guess x must be 112 chacters. But you can say x[]="Hello" which is ok if you just want a variable for "Hello" but if you want use a variable and assign it to different values and/or concatenat different values to it what do you do.

Anyone have any simple answers as to how to use character variables in c c++?

What I want to do is create a text file that's 112 characters on each line.

1-2= a two digit code
3-12=yyyy/mm//dd
13-20=hh:mm:ss
21-40=a barcode retrieved from an editbox
41-60=blank
61-80=blank
81-81=a single digit code
82-92=a decimal 10,2 retrieved from an editbox
92-102=a number retrieved from an edit box
103-112=a number

if numbers / values are less than allowed their padded with spaces

something like this is easy in other languages but in windows api c c++ seems to be very difficult

thanks for any help
AnswerRe: char char[] variables help Pin
Iain Clarke, Warrior Programmer2-Sep-09 8:47
Iain Clarke, Warrior Programmer2-Sep-09 8:47 
AnswerRe: char char[] variables help Pin
Stuart Dootson2-Sep-09 9:01
professionalStuart Dootson2-Sep-09 9:01 
AnswerRe: char char[] variables help Pin
Randor 2-Sep-09 9:09
professional Randor 2-Sep-09 9:09 
AnswerRe: char char[] variables help Pin
David Crow2-Sep-09 9:50
David Crow2-Sep-09 9:50 
AnswerRe: char char[] variables help Pin
egerving2-Sep-09 11:31
egerving2-Sep-09 11:31 
AnswerRe: char char[] variables help Pin
Joe Woodbury2-Sep-09 17:11
professionalJoe Woodbury2-Sep-09 17:11 
QuestionSecurity Access Functions Pin
Richard Andrew x642-Sep-09 7:28
professionalRichard Andrew x642-Sep-09 7:28 
AnswerRe: Security Access Functions Pin
Stuart Dootson2-Sep-09 8:17
professionalStuart Dootson2-Sep-09 8:17 
GeneralRe: Security Access Functions Pin
Richard Andrew x642-Sep-09 9:47
professionalRichard Andrew x642-Sep-09 9:47 
AnswerRe: Security Access Functions Pin
Randor 2-Sep-09 8:45
professional Randor 2-Sep-09 8:45 
GeneralRe: Security Access Functions Pin
Richard Andrew x642-Sep-09 9:48
professionalRichard Andrew x642-Sep-09 9:48 
QuestionSetting x-microsoftajax:Delta=true header Giving http error "400" Pin
Ash_VCPP2-Sep-09 5:38
Ash_VCPP2-Sep-09 5:38 
QuestionMDI framework do not cross over through OnActivateFrame(int nCmdShow) ? Pin
mesajflaviu2-Sep-09 4:41
mesajflaviu2-Sep-09 4:41 
AnswerRe: MDI framework do not cross over through OnActivateFrame(int nCmdShow) ? Pin
Stuart Dootson2-Sep-09 5:11
professionalStuart Dootson2-Sep-09 5:11 
GeneralRe: MDI framework do not cross over through OnActivateFrame(int nCmdShow) ? Pin
mesajflaviu2-Sep-09 7:54
mesajflaviu2-Sep-09 7:54 
GeneralRe: MDI framework do not cross over through OnActivateFrame(int nCmdShow) ? Pin
Stuart Dootson2-Sep-09 8:45
professionalStuart Dootson2-Sep-09 8:45 
GeneralRe: MDI framework do not cross over through OnActivateFrame(int nCmdShow) ? Pin
mesajflaviu3-Sep-09 7:44
mesajflaviu3-Sep-09 7:44 

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.