?
Solved

Scrolling big documents

Posted on 2000-03-18
7
Medium Priority
?
170 Views
Last Modified: 2013-11-20
In several programs I've written in Visual C++ version 6 under Windows 98 I find that I cannot scroll document larger that approx CSize (*,4500), when using MM_TEXT. Using 5000, for example, causes a system crash. No warnings when in debug mode.
0
Comment
Question by:mgordon
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 2635204
Could you post some peace of code where it crashes?
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 300 total points
ID: 2638303
In Windows 98 coordinates are limited to 16bits.  This is probably related to your problem.

Some into about the message that appears when the crash hppens would probably help .. as would some code.

0
 

Author Comment

by:mgordon
ID: 2639376
Adjusted points from 50 to 150
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:mgordon
ID: 2639398
Sorry, No message, the system just locks up.
I can't tell where it crashes as the system just locks up. I get a vertical white line down the screen and then nothing works.
If the document .cy size is set to 5000 everything is fine until I scroll nearly to end of the document then the system locks. If I set the document .cy to 4500 (or less) no problem.
This gives a document much much shorter than those possible in the Visual C++ editor. It certainly gives the impression that I've exceed some max value or run out of memory, but I can't find a value that gets too big.
Hope this helps. Mike Gordon.
0
 

Author Comment

by:mgordon
ID: 2639409
Sorry,
I can't tell where it crashes as the system locks up. I get a vertical white line down the screen and then nothing works.
If the document .cy size is set to 5000 everything is fine until I scroll nearly to end of the document then the system locks. If I set the document .cy to 4500 (or less) no problem.
Hope this helps. Mike Gordon.
0
 
LVL 31

Expert Comment

by:Zoppo
ID: 2639439
First, why did you accept this answer if it doesn't help you anything??? Did you read the EE-guidelines or EE-help?

BTW, what kind of drawing occurs for the document in the view's ? Is it that you're creating a bitmap in memory with the size >4500 pixels? I once had problems with creating thus large bitmaps (reproducable blue screen on a IBM LapTop running NT4) which seemed to be hardware (graphic card) dependant. Neither MicroSoft nor IBM could help me to solve the problem so I had to redesign my application to use an array of smaller bitmaps.

ZOPPO
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2639913
I didn't even post it as an answer.  Guess he must have been impressed?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question