Click here to Skip to main content
15,917,926 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: afxloadlibrary Pin
the_augy18-Jul-04 10:21
the_augy18-Jul-04 10:21 
GeneralRe: afxloadlibrary Pin
the_augy18-Jul-04 10:23
the_augy18-Jul-04 10:23 
GeneralRe: afxloadlibrary Pin
PJ Arends18-Jul-04 10:29
professionalPJ Arends18-Jul-04 10:29 
GeneralRe: afxloadlibrary Pin
Anonymous18-Jul-04 12:58
Anonymous18-Jul-04 12:58 
GeneralRe: afxloadlibrary Pin
PJ Arends19-Jul-04 0:38
professionalPJ Arends19-Jul-04 0:38 
Generalplane seats Pin
rex4417-Jul-04 13:40
rex4417-Jul-04 13:40 
GeneralRe: plane seats Pin
Johan Rosengren17-Jul-04 20:45
Johan Rosengren17-Jul-04 20:45 
GeneralA crashing DC... Pin
0v3rloader17-Jul-04 11:36
0v3rloader17-Jul-04 11:36 
Hello,

As a MFC newbie I am, it is with much frustration and also humbleness that I would like to know from one of you experienced programmers what the hell is going wrong with my program.

It happens that I have several custom controls operating in different dialog boxes (one per each) and in one of these I have a 7 segment (LCD) display outputting a 5 digit (signed) number.

There is no problem whatsoever unless you hover a dialog box over the one that contains the above referred 7 segment display control -- if it is painting at that particular time, it stops with a debug assertion, as, apparently there isn't a valid DC. Just before starting any graphical output, I attach the control's own DC, by means of calling GetDC(), set the viewport up, and at the end of the output, I simply Detach it.

I really don't know what's wrong... so if you could please lend me a hand or two, that would be great. (A finger would be enough, as I would be more than happy to know the direction to take Smile | :) )


Thanks,

David
GeneralRe: A crashing DC... Pin
Michael Dunn17-Jul-04 14:12
sitebuilderMichael Dunn17-Jul-04 14:12 
GeneralRe: A crashing DC... Pin
0v3rloader17-Jul-04 21:23
0v3rloader17-Jul-04 21:23 
GeneralRe: A crashing DC... Pin
Jörgen Sigvardsson18-Jul-04 0:03
Jörgen Sigvardsson18-Jul-04 0:03 
GeneralAffine Transformation Pin
wyoung17-Jul-04 11:20
wyoung17-Jul-04 11:20 
GeneralRe: Affine Transformation Pin
Andrew Walker17-Jul-04 18:27
Andrew Walker17-Jul-04 18:27 
GeneralAC-3 Pin
Alexander M.,17-Jul-04 10:03
Alexander M.,17-Jul-04 10:03 
GeneralRe: AC-3 Pin
bikram singh17-Jul-04 10:06
bikram singh17-Jul-04 10:06 
GeneralThreading and non User-Interface Classes Pin
0v3rloader17-Jul-04 6:35
0v3rloader17-Jul-04 6:35 
GeneralRe: Threading and non User-Interface Classes Pin
Antti Keskinen17-Jul-04 7:04
Antti Keskinen17-Jul-04 7:04 
GeneralRe: Threading and non User-Interface Classes Pin
0v3rloader17-Jul-04 7:30
0v3rloader17-Jul-04 7:30 
GeneralRe: Threading and non User-Interface Classes Pin
PJ Arends17-Jul-04 7:39
professionalPJ Arends17-Jul-04 7:39 
GeneralRe: Threading and non User-Interface Classes Pin
Antti Keskinen18-Jul-04 3:29
Antti Keskinen18-Jul-04 3:29 
GeneralStatic lib Pin
Atlence17-Jul-04 5:46
Atlence17-Jul-04 5:46 
GeneralRe: Static lib Pin
Antti Keskinen17-Jul-04 7:09
Antti Keskinen17-Jul-04 7:09 
GeneralControl similar to Windows 2000 peroformance tab Pin
Azghar Hussain17-Jul-04 5:00
professionalAzghar Hussain17-Jul-04 5:00 
GeneralRe: Control similar to Windows 2000 peroformance tab Pin
Johan Rosengren17-Jul-04 5:22
Johan Rosengren17-Jul-04 5:22 
Generalabout using ActiveX in dll Pin
yingkou17-Jul-04 3:06
yingkou17-Jul-04 3:06 

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.