Click here to Skip to main content
15,908,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do you merge multiple bitmap files? Pin
Dale Haessel9-Dec-09 17:04
Dale Haessel9-Dec-09 17:04 
GeneralRe: How do you merge multiple bitmap files? Pin
loyal ginger9-Dec-09 17:53
loyal ginger9-Dec-09 17:53 
GeneralRe: How do you merge multiple bitmap files? Pin
LunaticFringe9-Dec-09 19:22
LunaticFringe9-Dec-09 19:22 
AnswerRe: How do you merge multiple bitmap files? Pin
Sauce!9-Dec-09 13:50
Sauce!9-Dec-09 13:50 
AnswerRe: How do you merge multiple bitmap files? Pin
KarstenK9-Dec-09 21:55
mveKarstenK9-Dec-09 21:55 
QuestionCMenu what the scrolling menu buttons named ? Pin
Maximilien9-Dec-09 9:52
Maximilien9-Dec-09 9:52 
AnswerRe: CMenu what the scrolling menu buttons named ? Pin
KarstenK9-Dec-09 21:57
mveKarstenK9-Dec-09 21:57 
QuestionCan't get local system time to show in a StatusStrip label Pin
spicture9-Dec-09 9:18
spicture9-Dec-09 9:18 
AnswerRe: Can't get local system time to show in a StatusStrip label Pin
Richard MacCutchan9-Dec-09 9:52
mveRichard MacCutchan9-Dec-09 9:52 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture10-Dec-09 6:51
spicture10-Dec-09 6:51 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
Richard MacCutchan10-Dec-09 7:18
mveRichard MacCutchan10-Dec-09 7:18 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture11-Dec-09 8:23
spicture11-Dec-09 8:23 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture11-Dec-09 8:20
spicture11-Dec-09 8:20 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
Richard MacCutchan12-Dec-09 1:30
mveRichard MacCutchan12-Dec-09 1:30 
AnswerRe: Can't get local system time to show in a StatusStrip label Pin
loyal ginger9-Dec-09 10:37
loyal ginger9-Dec-09 10:37 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture10-Dec-09 6:45
spicture10-Dec-09 6:45 
GeneralRe: Can't get local system time to show in a StatusStrip label Pin
spicture11-Dec-09 8:22
spicture11-Dec-09 8:22 
Questionmouse in openGL, double click ?? Pin
a04.lqd9-Dec-09 8:33
a04.lqd9-Dec-09 8:33 
Questiondoubt in CFile Pin
Rakesh59-Dec-09 6:27
Rakesh59-Dec-09 6:27 
AnswerRe: doubt in CFile Pin
Jonathan Davies9-Dec-09 6:51
Jonathan Davies9-Dec-09 6:51 
GeneralRe: doubt in CFile Pin
Rakesh59-Dec-09 7:23
Rakesh59-Dec-09 7:23 
GeneralRe: doubt in CFile Pin
Jonathan Davies9-Dec-09 7:40
Jonathan Davies9-Dec-09 7:40 
GeneralRe: doubt in CFile Pin
Richard MacCutchan9-Dec-09 8:46
mveRichard MacCutchan9-Dec-09 8:46 
AnswerRe: doubt in CFile Pin
Wes Aday9-Dec-09 6:53
professionalWes Aday9-Dec-09 6:53 
AnswerRe: doubt in CFile Pin
krmed9-Dec-09 6:58
krmed9-Dec-09 6:58 
After you open the file, use the SeekToEnd function:
myfile.Open("example.xls",CFile::modeCreate|CFile::modeWrite, NULL);
myfile.SeekToEnd();
myfile.Write(sUserID,sUserID.GetLength());

I can't say that I've ever seen anyone use CFile to write to an excel file, so I'm not sure how you're accomplishing that. Most people would write the data to a .csv file, which can then be opened in excel. Each cell data on the same line would be separated by a comma, with a CR/LF pair at the end of that line.

I don't think you're actually creating a true .xls file - it's most likely just a text file, but with the .xls extension, excel may be able to open it.

Be aware that just because you name a file with .xls as an extension, it's not really an Excel file.

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

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.