Link to home
Start Free TrialLog in
Avatar of mike_marquet
mike_marquet

asked on

Problem to create a big memory DC !

I'm writing a timeline application with different horizontal resolution. The timeline is greated in memory and then the portion that must be visible is BitBlt on the screen. A problem occures when I select a big resolution (for example 30 minutes steps or 3 minutes steps).

30 minutes example, must generate a bitmap of 34507 * 100 * X pixels => bitmap handle is NULL.( X = 1 to 8)

3 minutes example, must generate a bitmap of 5751 * 100 * X pixels => bitmap handle is NULL. (X = 1 to 8)

This bitmap is the selected in the memory DC.

Did someone has an idea to generate a big memory DC ?
Avatar of Zoppo
Zoppo
Flag of Germany image

Hi mike_marquet,

only thing I can image which is guaranteed to work is to split the graph ... I'm even sure that you'll get problems with some specific graphic cards with such large bitmaps/memory DCs, because I once had a problem that selecting a 4000x32 or larger bitmap caused a blue screen in NT i.e. on a IBM ThinkPad.

So, I would suggest to use a list of bitmaps with a fixed length.

ZOPPO
Avatar of mike_marquet
mike_marquet

ASKER

OK, when no other solution possible.
Unfortunately I don't know another one ... but you should wait a while for other expert's comments
Why do you want to generate the whole timeline in the memory bitmap? Can't you draw only the part which is visible?
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes, I will do it so. But it was much simple to draw the entire timeline in memory and BitBlt the part I wanted.
> But it was much simple to draw the entire timeline in memory and BitBlt the part I wanted.


Well, no--it wasn't. That approach left you with problems you couldn't possibly solve.

..B ekiM
mike_marquet,

These questions are still open and our records show you logged in recently. Please resolve them appropriately as soon as possible. Continued disregard of your open questions will result in the force/acceptance of a comment as an answer; other actions affecting your account may also be taken. I will revisit these questions in approximately seven (7) days. Please note that the recommended minimum for an "Easy" question is 50 points.

https://www.experts-exchange.com/jsp/qShow.jsp?qid=11532221
https://www.experts-exchange.com/jsp/qShow.jsp?qid=11701138
https://www.experts-exchange.com/jsp/qShow.jsp?qid=11841838
https://www.experts-exchange.com/jsp/qShow.jsp?qid=11928102
https://www.experts-exchange.com/jsp/qShow.jsp?qid=11931818
https://www.experts-exchange.com/jsp/qShow.jsp?qid=11996498
https://www.experts-exchange.com/jsp/qShow.jsp?qid=11998538
https://www.experts-exchange.com/jsp/qShow.jsp?qid=12011459
https://www.experts-exchange.com/jsp/qShow.jsp?qid=12039459
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20005590
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20006135
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20071202
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20084832
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20091412
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20093693
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20095151
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20099190
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20099158
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20100338
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20107694
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20114039
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20071199
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20116007
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20128382
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20137131
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20155355
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20192497
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20193603
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20238400
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20239471
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20245231
https://www.experts-exchange.com/jsp/qShow.jsp?qid=20253153

EXPERTS: Please leave your thoughts on this question here.

Thanks,

Netminder
Community Support Moderator
Experts Exchange
Deletion rejected.

Sometimes "you can't" is, in fact the correct answer. Comment force/accepted as answer.

Netminder
CS Moderator, EE