Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: linking with an mfc extension dll Pin
valikac4-Jul-03 15:07
valikac4-Jul-03 15:07 
GeneralRe: linking with an mfc extension dll Pin
(Steven Hicks)n+14-Jul-03 17:19
(Steven Hicks)n+14-Jul-03 17:19 
GeneralRe: linking with an mfc extension dll Pin
(Steven Hicks)n+14-Jul-03 17:21
(Steven Hicks)n+14-Jul-03 17:21 
GeneralRe: linking with an mfc extension dll Pin
Kelly Herald7-Jul-03 6:06
Kelly Herald7-Jul-03 6:06 
GeneralExtracting records from file, but don't know how long records could be... Pin
IrishSonic4-Jul-03 13:26
IrishSonic4-Jul-03 13:26 
GeneralRe: Extracting records from file, but don't know how long records could be... Pin
David Crow4-Jul-03 13:40
David Crow4-Jul-03 13:40 
GeneralRe: Extracting records from file, but don't know how long records could be... Pin
IrishSonic4-Jul-03 13:57
IrishSonic4-Jul-03 13:57 
GeneralRe: Extracting records from file, but don't know how long records could be... Pin
David Crow7-Jul-03 4:19
David Crow7-Jul-03 4:19 
Given the variableness of the data, it doesn't appear that CString::Find() will be of any benefit to you. However, you can still use a memory-mapped file so that you only have to access the disk once.

CFile file;
LPBYTE lpBuffer;
CMemFile fileMem;

if (file.Open(...) == TRUE)
{
    lpBuffer = new BYTE[file.GetLength()];

    file.Read(lpBuffer, file.GetLength());

    file.Close();

    fileMem.Attach(lpBuffer, file.GetLength());

    // read from lpBuffer
    ...

    fileMem.Detach();

    delete [] lpBuffer;
}

GeneralSize and Position Pin
Zak_4-Jul-03 12:33
Zak_4-Jul-03 12:33 
GeneralRe: Size and Position Pin
Michael Dunn4-Jul-03 13:09
sitebuilderMichael Dunn4-Jul-03 13:09 
Generaldealing with bi-directional association Pin
RK_20004-Jul-03 12:18
RK_20004-Jul-03 12:18 
QuestionIs it possible to manually resize a statusbar? Pin
clintsinger4-Jul-03 11:31
clintsinger4-Jul-03 11:31 
AnswerRe: Is it possible to manually resize a statusbar? Pin
Ryan Binns4-Jul-03 15:27
Ryan Binns4-Jul-03 15:27 
QuestionSetting GetAsyncKeyState() output? Pin
S O S4-Jul-03 11:09
S O S4-Jul-03 11:09 
QuestionSome tips for my first real application in VC++ ?? Pin
konac4-Jul-03 10:42
konac4-Jul-03 10:42 
AnswerRe: Some tips for my first real application in VC++ ?? Pin
Toni784-Jul-03 11:53
Toni784-Jul-03 11:53 
GeneralRe: Some tips for my first real application in VC++ ?? Pin
conac8-Jul-03 1:09
conac8-Jul-03 1:09 
QuestionWH_CALLWNDPROC global hook not receiving messages? Pin
S O S4-Jul-03 9:57
S O S4-Jul-03 9:57 
QuestionMulti colored text in CEdit box? Pin
Sorcia4-Jul-03 9:10
Sorcia4-Jul-03 9:10 
AnswerRe: Multi colored text in CEdit box? Pin
Maximilien4-Jul-03 9:20
Maximilien4-Jul-03 9:20 
GeneralRe: Multi colored text in CEdit box? Pin
adamUK4-Jul-03 9:25
adamUK4-Jul-03 9:25 
GeneralRe: Multi colored text in CEdit box? Pin
Maximilien4-Jul-03 9:47
Maximilien4-Jul-03 9:47 
AnswerRe: Multi colored text in CEdit box? Pin
adamUK4-Jul-03 9:24
adamUK4-Jul-03 9:24 
GeneralRe: Multi colored text in CEdit box? Pin
Sorcia4-Jul-03 10:58
Sorcia4-Jul-03 10:58 
Generalvc++ programming Pin
Member 3451564-Jul-03 8:40
Member 3451564-Jul-03 8:40 

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.