Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Mapped Files and Performance Strategies Pin
David Crow16-Jul-03 6:55
David Crow16-Jul-03 6:55 
GeneralRe: Memory Mapped Files and Performance Strategies Pin
Mike Dimmick16-Jul-03 22:41
Mike Dimmick16-Jul-03 22:41 
GeneralRe: Memory Mapped Files and Performance Strategies Pin
David Crow17-Jul-03 5:59
David Crow17-Jul-03 5:59 
Generalcarriage return/line feed Pin
butterbean73015-Jul-03 9:55
butterbean73015-Jul-03 9:55 
GeneralRe: carriage return/line feed Pin
John M. Drescher15-Jul-03 10:04
John M. Drescher15-Jul-03 10:04 
GeneralRe: carriage return/line feed Pin
Ryan Binns15-Jul-03 14:54
Ryan Binns15-Jul-03 14:54 
Generalshowing # recds in CRecordset Pin
RalfPeter15-Jul-03 9:30
RalfPeter15-Jul-03 9:30 
GeneralRe: showing # recds in CRecordset Pin
David Crow15-Jul-03 9:40
David Crow15-Jul-03 9:40 
RalfPeter wrote:
I would like to be able to display the number of records of a table on the status bar...

CRecordset::GetRecordCount() should work.

Jumping to a specific record is simply a matter of determining the difference between the current record number and the desired record number. If the difference is negative, you'll need to call CRecordset::MovePrev() X number of times. If the difference is positive, you'll need to call CRecordset::MoveNext() X number of times. After the moves are complete, then update the view.

You'll also want to consider the situation where there are 100 records and you want to jump to the 99th record. In this case, and others like it, it would be far less costly to jump to the last record and then call CRecordset::MovePrev() once rather than call CRecordset::MoveNext() 99 times!
GeneralRe: showing # recds in CRecordset Pin
RalfPeter15-Jul-03 11:11
RalfPeter15-Jul-03 11:11 
GeneralRe: showing # recds in CRecordset Pin
Toni7815-Jul-03 15:33
Toni7815-Jul-03 15:33 
GeneralRe: showing # recds in CRecordset Pin
David Crow16-Jul-03 3:00
David Crow16-Jul-03 3:00 
GeneralRe: showing # recds in CRecordset Pin
Toni7816-Jul-03 16:06
Toni7816-Jul-03 16:06 
GeneralLBN_SELCHANGE Pin
John R. Shaw15-Jul-03 9:16
John R. Shaw15-Jul-03 9:16 
GeneralProcess, Module and Thread enumeration classes Pin
kurnaziso15-Jul-03 9:10
kurnaziso15-Jul-03 9:10 
QuestionExchange server plugin... Where to start? Pin
LukeV15-Jul-03 8:46
LukeV15-Jul-03 8:46 
AnswerRe: Exchange server plugin... Where to start? Pin
Michael P Butler15-Jul-03 9:07
Michael P Butler15-Jul-03 9:07 
GeneralHelp! Mysterious type mismatch errors with my ActiveX control Pin
David F Zimny15-Jul-03 8:39
David F Zimny15-Jul-03 8:39 
QuestionPlay sound from console program? Pin
DaveE9th15-Jul-03 8:26
DaveE9th15-Jul-03 8:26 
AnswerRe: Play sound from console program? Pin
John M. Drescher15-Jul-03 8:30
John M. Drescher15-Jul-03 8:30 
GeneralRe: Play sound from console program? Pin
DaveE9th15-Jul-03 9:09
DaveE9th15-Jul-03 9:09 
AnswerRe: Play sound from console program? Pin
David Crow15-Jul-03 9:46
David Crow15-Jul-03 9:46 
GeneralRe: Play sound from console program? Pin
Ryan Binns15-Jul-03 14:51
Ryan Binns15-Jul-03 14:51 
Generalgetting device context without the title bar Pin
Member 45099015-Jul-03 8:21
Member 45099015-Jul-03 8:21 
QuestionHow to add a Control In a List Control Pin
Cyberizen15-Jul-03 8:01
Cyberizen15-Jul-03 8:01 
AnswerRe: How to add a Control In a List Control Pin
John M. Drescher15-Jul-03 8:10
John M. Drescher15-Jul-03 8:10 

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.