Click here to Skip to main content
15,916,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Get pixel data from PBITMAPINFO struct? [modified] Pin
CPallini15-Sep-09 2:31
mveCPallini15-Sep-09 2:31 
GeneralRe: Get pixel data from PBITMAPINFO struct? Pin
Sauce!15-Sep-09 2:58
Sauce!15-Sep-09 2:58 
QuestionMS Word document creating Pin
Igor IP15-Sep-09 1:41
professionalIgor IP15-Sep-09 1:41 
AnswerRe: MS Word document creating Pin
Stuart Dootson15-Sep-09 1:56
professionalStuart Dootson15-Sep-09 1:56 
GeneralRe: MS Word document creating Pin
Igor IP15-Sep-09 2:02
professionalIgor IP15-Sep-09 2:02 
GeneralRe: MS Word document creating Pin
Stuart Dootson15-Sep-09 2:36
professionalStuart Dootson15-Sep-09 2:36 
GeneralRe: MS Word document creating Pin
Igor IP15-Sep-09 3:48
professionalIgor IP15-Sep-09 3:48 
QuestionCDaoRecordset Problem.. Pin
jadhavjitendrar15-Sep-09 1:19
jadhavjitendrar15-Sep-09 1:19 
Hi friends,
Below line contain my code.I m writting data into the text file.i have acess database and i write this databse into text file format. my access databse table contain 99 records and i m using CDaoRecordset MoveNext() to get next record data.Problem is that i get record till 18 its ok but after that i get 20 position record and afterthat i get 19 position record.then i get 26 to 30 position record and then i get 21 to 25 record data.But data in the database table is sequentially.So why this problem will occour i wont understand.

Plz help me..


m_pRecordSet = new CDaoRecordset(m_pDatabase);
CString strTablename = _T("pdpstate");
m_pRecordSet->Open(dbOpenTable,strTablename);
int nRecordCnt = m_pRecordSet->GetRecordCount();
int nFieldCnt = m_pRecordSet->GetFieldCount();

CDaoFieldInfo cTempdaoFieldInfo;
CString csSetID,csFieldStr;
CStdioFile cTestFile;
cTestFile.Open(_T("d:\\Jitu45.txt"),CStdioFile::modeCreate | CStdioFile::modeWrite);

for(int nfCnt = 0; nfCnt < nFieldCnt; nfCnt++)
{
m_pRecordSet->GetFieldInfo(nfCnt,cTempdaoFieldInfo);
cTestFile.WriteString(cTempdaoFieldInfo.m_strName);
cTestFile.WriteString(_T(","));

}
cTestFile.WriteString(_T("\n"));

while(!m_pRecordSet->IsEOF())
{
COleVariant variantTemp;
//..// Move through fields in current record..
int nFields = m_pRecordSet->GetFieldCount();
for ( int i=0; i < nFields; i++ )
{
variantTemp.Clear();
variantTemp = m_pRecordSet->GetFieldValue(i);
csSetID.Format(_T("%d"),variantTemp.intVal);
cTestFile.WriteString(csSetID);
cTestFile.WriteString(_T(","));
}
cTestFile.WriteString(_T("\n"));
m_pRecordSet->MoveNext();
}

cTestFile.Close();
AnswerRe: CDaoRecordset Problem.. Pin
CPallini15-Sep-09 2:11
mveCPallini15-Sep-09 2:11 
AnswerRe: CDaoRecordset Problem.. Pin
ramana.g15-Sep-09 21:59
ramana.g15-Sep-09 21:59 
Question_variant_t to CString Pin
rdop15-Sep-09 0:05
rdop15-Sep-09 0:05 
AnswerRe: _variant_t to CString Pin
CPallini15-Sep-09 0:21
mveCPallini15-Sep-09 0:21 
GeneralRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 0:30
professionalStuart Dootson15-Sep-09 0:30 
QuestionRe: _variant_t to CString Pin
CPallini15-Sep-09 2:07
mveCPallini15-Sep-09 2:07 
AnswerRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 2:43
professionalStuart Dootson15-Sep-09 2:43 
GeneralRe: _variant_t to CString Pin
rdop15-Sep-09 0:33
rdop15-Sep-09 0:33 
QuestionRe: _variant_t to CString Pin
CPallini15-Sep-09 2:08
mveCPallini15-Sep-09 2:08 
AnswerRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 0:28
professionalStuart Dootson15-Sep-09 0:28 
GeneralRe: _variant_t to CString Pin
rdop15-Sep-09 1:09
rdop15-Sep-09 1:09 
GeneralRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 1:53
professionalStuart Dootson15-Sep-09 1:53 
GeneralRe: _variant_t to CString Pin
rdop15-Sep-09 2:07
rdop15-Sep-09 2:07 
GeneralRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 2:27
professionalStuart Dootson15-Sep-09 2:27 
GeneralRe: _variant_t to CString Pin
Randor 15-Sep-09 3:50
professional Randor 15-Sep-09 3:50 
GeneralRe: _variant_t to CString Pin
Stuart Dootson15-Sep-09 4:44
professionalStuart Dootson15-Sep-09 4:44 
GeneralRe: _variant_t to CString Pin
rdop15-Sep-09 18:07
rdop15-Sep-09 18:07 

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.