Click here to Skip to main content
15,906,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
The ExecuteSQL member function executes the SQL sentence, but does not return any rows. This means that the recordset object does not contain any rows, and thus you cannot do comparison.

Basically, if you allow me, you've understood the idea of recordsets in an ackward manner. For in-depth examples and discussion on how a recordset works, you should read this[^] MSDN link with careful thought, including all links contained there. In special, read the Your Recordsets chapter VERY carefully.

Additionally, in order to make record fetching and result handling easier, you should familiarize yourself with Stefan Chekanov's article here in CodeProject. This article speaks of a CRecordset-derived class that has a much easier and simpler user interface. The article also has examples on how to use the class. In general, this class allows you to execute an SQL statement, then fetch each resulting row's each column by column name or index. Now, if you've readed the MSDN link above, you quickly understand why this is a great relief. The article itself can be found here[^].

Hope this gets you started.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
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 
GeneralRe: How to declare class Member with template declaration ? Pin
Antti Keskinen9-Mar-04 6:52
Antti Keskinen9-Mar-04 6:52 
GeneralRe: How to declare class Member with template declaration ? Pin
vgrigor9-Mar-04 20:35
vgrigor9-Mar-04 20:35 

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.