Click here to Skip to main content
15,904,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there method to set DeviceCaps so as if system font changed? Pin
vgrigor10-Mar-04 4:24
vgrigor10-Mar-04 4:24 
GeneralEorr on exit with RichEditDoc/RichEditView Pin
Luoxz9-Mar-04 5:34
Luoxz9-Mar-04 5:34 
GeneralRe: Eorr on exit with RichEditDoc/RichEditView Pin
David Crow9-Mar-04 7:13
David Crow9-Mar-04 7:13 
GeneralRe: Eorr on exit with RichEditDoc/RichEditView Pin
Luoxz9-Mar-04 9:18
Luoxz9-Mar-04 9:18 
GeneralRe: Eorr on exit with RichEditDoc/RichEditView Pin
Antti Keskinen9-Mar-04 7:18
Antti Keskinen9-Mar-04 7:18 
GeneralAsk Create your own control Pin
Best Friend9-Mar-04 5:33
Best Friend9-Mar-04 5:33 
GeneralRe: Ask Create your own control Pin
Bin2Hex9-Mar-04 6:49
Bin2Hex9-Mar-04 6:49 
Generalsimple database problem Pin
pnpfriend9-Mar-04 5:27
pnpfriend9-Mar-04 5:27 
Hi gurus!
I use CRecordSet to insert/read the data from the database.

I am inserting the file name into the database.
before I insert the file to the database I want to find out whether the file is already exit in the database. the files might have the different but they content of the files are the same. So I try to get each file name from the db and compare with the file about to insert.

I use the following code but the message box is displaying empty string eventhough the data are there in the db.

<br />
//insert a data here by using "Insert Into myTable..etc"<br />
myRecordSet->m_pDatabase->ExecuteSQL("Select fileName from myTable");<br />
while(!myRecordSet->IsEOF())<br />
{<br />
//doing comparing here<br />
   MessageBox(myRecordSet->fileName);<br />
   myRecordSet->MoveNext();<br />
}<br />
//insert a data here again...<br />
<br />


please point me out what/where am i doing wrong?


thanks
GeneralRe: simple database problem Pin
Bin2Hex9-Mar-04 6:55
Bin2Hex9-Mar-04 6:55 
GeneralRe: simple database problem Pin
Antti Keskinen9-Mar-04 7:03
Antti Keskinen9-Mar-04 7:03 
GeneralRe: simple database problem Pin
pnpfriend9-Mar-04 7:17
pnpfriend9-Mar-04 7:17 
GeneralRe: simple database problem Pin
David Crow9-Mar-04 7:10
David Crow9-Mar-04 7:10 
GeneralMSVC.NET slowed on startup by MDM.EXE Pin
TroyGilbert9-Mar-04 5:04
TroyGilbert9-Mar-04 5:04 
QuestionMultiscripting?? Pin
Anonymous9-Mar-04 4:48
Anonymous9-Mar-04 4:48 
AnswerRe: Multiscripting?? Pin
David Crow9-Mar-04 7:02
David Crow9-Mar-04 7:02 
General$500 to $10,000++ if you can decode this.. Pin
Member 9347019-Mar-04 4:22
Member 9347019-Mar-04 4:22 
GeneralRe: $500 to $10,000++ if you can decode this.. Pin
David Crow9-Mar-04 4:51
David Crow9-Mar-04 4:51 
GeneralRe: $500 to $10,000++ if you can decode this.. Pin
Iain Clarke, Warrior Programmer9-Mar-04 8:02
Iain Clarke, Warrior Programmer9-Mar-04 8:02 
GeneralRe: $500 to $10,000++ if you can decode this.. Pin
Prakash Nadar9-Mar-04 4:54
Prakash Nadar9-Mar-04 4:54 
QuestionHow to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 4:09
vgrigor9-Mar-04 4:09 
AnswerRe: How to declare class Member with template declaration ? Pin
Antti Keskinen9-Mar-04 5:32
Antti Keskinen9-Mar-04 5:32 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 5:45
vgrigor9-Mar-04 5:45 
GeneralRe: How to declare class Member with template declaration ? Pin
Robert A. T. Káldy9-Mar-04 5:58
Robert A. T. Káldy9-Mar-04 5:58 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 6:09
vgrigor9-Mar-04 6:09 
GeneralRe: How to declare class Member with template declaration ? Pin
Robert A. T. Káldy9-Mar-04 6:39
Robert A. T. Káldy9-Mar-04 6:39 

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.