Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Scrolling big documents

Posted on 2000-03-18
7
Medium Priority
?
172 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

636 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