Click here to Skip to main content
15,909,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBuilding a linked list inside a DLL before DllMain Pin
Steve The Plant12-Jun-01 11:02
Steve The Plant12-Jun-01 11:02 
GeneralRe: Building a linked list inside a DLL before DllMain Pin
Tomasz Sowinski12-Jun-01 11:20
Tomasz Sowinski12-Jun-01 11:20 
GeneralRe: Building a linked list inside a DLL before DllMain Pin
Tim Deveaux12-Jun-01 14:13
Tim Deveaux12-Jun-01 14:13 
GeneralRe: Building a linked list inside a DLL before DllMain Pin
Steve The Plant12-Jun-01 15:24
Steve The Plant12-Jun-01 15:24 
GeneralRe: Building a linked list inside a DLL before DllMain Pin
12-Jun-01 16:32
suss12-Jun-01 16:32 
GeneralRe: Building a linked list inside a DLL before DllMain Pin
Steve The Plant12-Jun-01 17:36
Steve The Plant12-Jun-01 17:36 
GeneralExporting classes in a dll that uses MFC Pin
Wes Jones12-Jun-01 9:59
Wes Jones12-Jun-01 9:59 
GeneralText viewer application Pin
Jeff Naber12-Jun-01 9:55
Jeff Naber12-Jun-01 9:55 
Hi all,

I'm in the process of writing a Text Viewer application. Notepad does not open large files, and Wordpad opens them but reads them all into RAM and brings the OS to its knees with the swap files, etc.

What I want to do is to open a text file and just read in the portion of the file that should be showing (and some extra for caching, but not terribly urgent right now). Then as the user runs the scroll bar, I would redraw the text that I need to redraw.

A future addition to this program will be for other file types, so I wil have a class to work with Text drawing, and then add other classes as necessary to draw TIFF's or our own file format, etc.

Unfortunately, as I work with this, I keep running into problems with MFC.

I'm working with MS Visual C++ 6.0, SP 4, MFC 6.

Using CScrollView I can print the file, and print preview, but when I try to scroll the file on the screen, it chops off the top, or the bottom, or chops the bottom off lines of text, etc.

Any thoughts about a good way to go about this? Is ScrollView too much of a "helper" if you're not planning on reading the whole file into RAM? Would CView be better? Should I just scrap MFC and write it using the APIs myself?

Any thoughts would be appreciated.
Jeff

GeneralRe: Text viewer application Pin
Jeff Naber12-Jun-01 11:29
Jeff Naber12-Jun-01 11:29 
Generalopen files. Pin
12-Jun-01 8:58
suss12-Jun-01 8:58 
GeneralRe: open files. Pin
Carlos Antollini12-Jun-01 9:05
Carlos Antollini12-Jun-01 9:05 
GeneralI did not understand you !!!! Pin
12-Jun-01 19:17
suss12-Jun-01 19:17 
GeneralRe: open files. Pin
12-Jun-01 9:06
suss12-Jun-01 9:06 
Generalwell done !!!!! It was realy silly misprint! Pin
12-Jun-01 19:25
suss12-Jun-01 19:25 
General*.dsw and Borland Compiler Pin
12-Jun-01 8:19
suss12-Jun-01 8:19 
GeneralRe: *.dsw and Borland Compiler Pin
Tim Deveaux12-Jun-01 12:18
Tim Deveaux12-Jun-01 12:18 
GeneralSerial Port Communication. Pin
John Uhlenbrock12-Jun-01 7:44
John Uhlenbrock12-Jun-01 7:44 
GeneralRe: Serial Port Communication. Pin
John Uhlenbrock12-Jun-01 8:55
John Uhlenbrock12-Jun-01 8:55 
GeneralRe: Serial Port Communication. Pin
Eric Hansen12-Jun-01 9:52
Eric Hansen12-Jun-01 9:52 
GeneralRe: Serial Port Communication. Pin
12-Jun-01 22:38
suss12-Jun-01 22:38 
GeneralRe: Serial Port Communication. Pin
Eric Hansen12-Jun-01 9:49
Eric Hansen12-Jun-01 9:49 
GeneralReplacing file types combo in CFileDialog Pin
12-Jun-01 6:54
suss12-Jun-01 6:54 
GeneralRe: Replacing file types combo in CFileDialog Pin
Ben Burnett12-Jun-01 12:08
Ben Burnett12-Jun-01 12:08 
GeneralRe: Replacing file types combo in CFileDialog Pin
18-Jun-01 6:39
suss18-Jun-01 6:39 
GeneralRe: Replacing file types combo in CFileDialog Pin
20-Jun-01 9:21
suss20-Jun-01 9:21 

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.