Click here to Skip to main content
15,867,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Binary Edit Source Pin
Yusuf20-Mar-09 16:17
Yusuf20-Mar-09 16:17 
AnswerRe: Binary Edit Source Pin
Michael Schubert21-Mar-09 0:49
Michael Schubert21-Mar-09 0:49 
JokeRe: Binary Edit Source Pin
norish21-Mar-09 1:49
norish21-Mar-09 1:49 
JokeRe: Binary Edit Source Pin
Rajesh R Subramanian21-Mar-09 4:52
professionalRajesh R Subramanian21-Mar-09 4:52 
GeneralRe: Binary Edit Source Pin
Michael Schubert21-Mar-09 8:30
Michael Schubert21-Mar-09 8:30 
QuestionReadString() crashes at the end of file? [modified] Pin
AlanLai20-Mar-09 14:37
AlanLai20-Mar-09 14:37 
AnswerRe: ReadString() crashes at the end of file? Pin
CPallini21-Mar-09 1:13
mveCPallini21-Mar-09 1:13 
GeneralRe: ReadString() crashes at the end of file? Pin
AlanLai23-Mar-09 10:24
AlanLai23-Mar-09 10:24 
Everything is as usual. Here is a fragment of the code. Note that COXCsvFile class is a wrapper from Ultimate Toolbox.

COXCsvFile inFile;
CFileException fe;
int nRow=0;
//
// Open the input file
int nColumns = GetOurApp()->m_MIUtility.GetFileColumnCount(sFile, "\t");
if (!inFile.Open(sFile, CFile::modeRead, &fe))
{
return 1;//no record added
}
TRY
{
//inFile.GetColumns(4);
inFile.GetColumns(nColumns);
inFile.SetFieldDelimiter(_T('\t'));//set delimiter as tab
//
// Read the records in one at a time from the second table.
//
while (inFile.ReadLine())
{

inFile.ReadColumn(0, sSelCell);
inFile.ReadColumn(1, sNbCell);
inFile.ReadColumn(2, sRLAttempts);
inFile.ReadColumn(3, sTimeInActiveSet);


dSCellSCODE.strCell = sNbCell;
dSCellSCODE.strCI = strRowData;

m_aTempData.Add(dSCellSCODE);
nRow++;
}
inFile.Close();
}
CATCH_ALL(e)
{
inFile.Abort();
return 1;
}
END_CATCH_ALL
GeneralRe: ReadString() crashes at the end of file? Pin
CPallini23-Mar-09 10:45
mveCPallini23-Mar-09 10:45 
GeneralRe: ReadString() crashes at the end of file? Pin
AlanLai23-Mar-09 11:45
AlanLai23-Mar-09 11:45 
GeneralRe: ReadString() crashes at the end of file? Pin
AlanLai31-Mar-09 9:00
AlanLai31-Mar-09 9:00 
QuestionRun-time error stops dialog when combo box added: [8002] Window Create, and Create Dialog failure Error code-20 Pin
Goo220-Mar-09 12:00
Goo220-Mar-09 12:00 
AnswerRe: Run-time error stops dialog when combo box added: [8002] Window Create, and Create Dialog failure Error code-20 Pin
norish20-Mar-09 19:48
norish20-Mar-09 19:48 
QuestionWant to stop full screen display when using Windows media player Pin
Keith Worden20-Mar-09 8:43
Keith Worden20-Mar-09 8:43 
AnswerRe: Want to stop full screen display when using Windows media player Pin
V Shah11-Mar-10 6:28
V Shah11-Mar-10 6:28 
GeneralRe: Want to stop full screen display when using Windows media player Pin
Keith Worden11-Mar-10 6:45
Keith Worden11-Mar-10 6:45 
QuestionGetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
zouzoulikou20-Mar-09 7:49
zouzoulikou20-Mar-09 7:49 
AnswerRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
David Crow20-Mar-09 7:57
David Crow20-Mar-09 7:57 
GeneralRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
zouzoulikou20-Mar-09 22:48
zouzoulikou20-Mar-09 22:48 
GeneralRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
David Crow21-Mar-09 16:11
David Crow21-Mar-09 16:11 
AnswerRe: GetSaveFileName: does not work propoerly when the option "Hide file extension for know file type" is checked Pin
norish21-Mar-09 1:54
norish21-Mar-09 1:54 
Questionhow to use #pragma data_seq() Pin
ernst2002053020-Mar-09 7:48
ernst2002053020-Mar-09 7:48 
AnswerRe: how to use #pragma data_seq() Pin
David Crow20-Mar-09 7:55
David Crow20-Mar-09 7:55 
GeneralRe: how to use #pragma data_seq() Pin
ernst2002053020-Mar-09 8:04
ernst2002053020-Mar-09 8:04 
GeneralRe: how to use #pragma data_seq() Pin
David Crow20-Mar-09 8:09
David Crow20-Mar-09 8:09 

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.