Click here to Skip to main content
15,912,837 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using void* to keep track of an external object. Pin
RedSonja17-Sep-09 20:41
RedSonja17-Sep-09 20:41 
QuestionSerial port behaviour in XP and windows 2000 Pin
sunny_vc10-Sep-09 2:50
sunny_vc10-Sep-09 2:50 
QuestionRe: Serial port behaviour in XP and windows 2000 Pin
CPallini10-Sep-09 3:06
mveCPallini10-Sep-09 3:06 
AnswerRe: Serial port behaviour in XP and windows 2000 Pin
sunny_vc10-Sep-09 3:18
sunny_vc10-Sep-09 3:18 
AnswerRe: Serial port behaviour in XP and windows 2000 Pin
Marcelo Miacca10-Sep-09 14:10
Marcelo Miacca10-Sep-09 14:10 
QuestionSome libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Vetukuri Raju10-Sep-09 2:47
Vetukuri Raju10-Sep-09 2:47 
AnswerRe: Some libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Randor 10-Sep-09 4:20
professional Randor 10-Sep-09 4:20 
GeneralRe: Some libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Vetukuri Raju10-Sep-09 4:25
Vetukuri Raju10-Sep-09 4:25 
GeneralRe: Some libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Randor 10-Sep-09 4:40
professional Randor 10-Sep-09 4:40 
GeneralRe: Some libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Vetukuri Raju10-Sep-09 5:37
Vetukuri Raju10-Sep-09 5:37 
GeneralRe: Some libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Randor 10-Sep-09 5:53
professional Randor 10-Sep-09 5:53 
GeneralRe: Some libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Vetukuri Raju14-Sep-09 22:48
Vetukuri Raju14-Sep-09 22:48 
GeneralRe: Some libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Vetukuri Raju11-Sep-09 1:50
Vetukuri Raju11-Sep-09 1:50 
GeneralRe: Some libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Randor 11-Sep-09 4:32
professional Randor 11-Sep-09 4:32 
GeneralRe: Some libraries are missing in my command line project linker settings in vc++ code in vs-2008...!? Pin
Vetukuri Raju11-Sep-09 5:07
Vetukuri Raju11-Sep-09 5:07 
QuestionHow to get network connection speed WinXP using C & WinAPI Pin
mikey_eff10-Sep-09 2:44
mikey_eff10-Sep-09 2:44 
AnswerRe: How to get network connection speed WinXP using C & WinAPI Pin
David Crow10-Sep-09 3:26
David Crow10-Sep-09 3:26 
GeneralRe: How to get network connection speed WinXP using C & WinAPI Pin
mikey_eff10-Sep-09 4:50
mikey_eff10-Sep-09 4:50 
GeneralRe: How to get network connection speed WinXP using C & WinAPI Pin
David Crow10-Sep-09 5:11
David Crow10-Sep-09 5:11 
GeneralRe: How to get network connection speed WinXP using C & WinAPI Pin
mikey_eff10-Sep-09 6:18
mikey_eff10-Sep-09 6:18 
AnswerRe: How to get network connection speed WinXP using C & WinAPI Pin
Randor 10-Sep-09 4:07
professional Randor 10-Sep-09 4:07 
GeneralRe: How to get network connection speed WinXP using C & WinAPI Pin
mikey_eff10-Sep-09 4:48
mikey_eff10-Sep-09 4:48 
AnswerRe: How to get network connection speed WinXP using C & WinAPI Pin
kilt10-Sep-09 6:18
kilt10-Sep-09 6:18 
Questionhow to remove space while writing data to text file using CFile in vc++ [modified] Pin
jadhavjitendrar10-Sep-09 1:46
jadhavjitendrar10-Sep-09 1:46 
plz help me.This is my code

CFile cTestFile;
cTestFile.Open(_T("D:\\Jitu.txt"),CFile::modeCreate | CFile::modeReadWrite);
CArchive ar(&cTestFile,CArchive::store);

m_pRecordSet = new CDaoRecordset(m_pDatabase);
CString strQuery = _T("SELECT * FROM pdpstate ORDER BY pdpstate.setid");
m_pRecordSet->Open(dbOpenDynaset,strQuery,0);
int nRecordCnt = m_pRecordSet->GetRecordCount();
int nFieldCnt = m_pRecordSet->GetFieldCount();

int ntemp = 8;
COleVariant variantTemp;
for(int nCnt = 0; nCnt < nRecordCnt; nCnt++)
{
for(int nfCnt = 0; nfCnt < nFieldCnt; nfCnt ++)
{
variantTemp.Clear();
variantTemp = m_pRecordSet->GetFieldValue(nfCnt );
CString csSetID;
csSetID.Format(_T("%d"),variantTemp.intVal);
cTestFile.Write(csSetID,sizeof(csSetID));
cTestFile.Write(_T(","),1);
}
}
cTestFile.Close();


Raj

modified on Thursday, September 10, 2009 11:23 PM

AnswerRe: how to remove space while writing data to text file using CFile in vc++ Pin
Adam Roderick J10-Sep-09 1:51
Adam Roderick J10-Sep-09 1:51 

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.