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: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 
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 
egerving wrote:
if you define char x[112] you then can't say x="Hello" because I guess x must be 112 chacters


No - it's because a C string, when referred to by name, is a pointer, not an array. You can use strcpy and strcat (and many other functions) to build strings.

For your situation, I'd probably use fprintf to write each record to the file, using width specifications - something like:

fprintf(fileHandle, "%-2d%-4d/%-2d/%-2d%-2d%-2d:%-2d%-20s                                        %-1d%-11.2f%-11d%%-10d\n", firstCode, year, month, day, hour, minute, second, barcode, secondCode, decimal, firstNumber, secondNumber);


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

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 
QuestionTe difference between OnKeyDown and OnKeyUp Pin
prithaa2-Sep-09 2:27
prithaa2-Sep-09 2:27 
AnswerRe: Te difference between OnKeyDown and OnKeyUp Pin
Stuart Dootson2-Sep-09 5:17
professionalStuart Dootson2-Sep-09 5:17 

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.