Click here to Skip to main content
15,925,255 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Fatal Error C1010 !!! Pin
JoeSox14-Sep-03 8:15
JoeSox14-Sep-03 8:15 
GeneralRe: Fatal Error C1010 !!! Pin
Michael Dunn14-Sep-03 9:01
sitebuilderMichael Dunn14-Sep-03 9:01 
GeneralRe: Fatal Error C1010 !!! Pin
PengFeidu14-Sep-03 14:53
PengFeidu14-Sep-03 14:53 
GeneralChecking Directory Modified Pin
Dilshad Husain14-Sep-03 5:57
Dilshad Husain14-Sep-03 5:57 
GeneralRe: Checking Directory Modified Pin
Michael Dunn14-Sep-03 6:55
sitebuilderMichael Dunn14-Sep-03 6:55 
GeneralRe: Checking Directory Modified Pin
valikac14-Sep-03 7:05
valikac14-Sep-03 7:05 
GeneralRe: Checking Directory Modified Pin
Dilshad Husain14-Sep-03 19:34
Dilshad Husain14-Sep-03 19:34 
GeneralProblem with CBitmap (MFC prog) Pin
LordOfSword14-Sep-03 5:03
LordOfSword14-Sep-03 5:03 
I have a problem with CBitmaps. I want to copy one bitmap into another, which wouldn’t be a problem if I didn’t use multithreading. My situation is this:

I made a program which calculates the Mandelbrot fractal. I have a bitmap in which the picture is saved and which is used to make it display in the window. The function calculating the fractal creates a temporary bitmap and after it has finished, I want to copy the temporary image to the main image which is used to display but I receive either an assertion error or the bitmap becomes blank (white).

The problem only occurs when I run the function in a separate thread but if I don’t use multithreading, all works fine…

I tried a lot of things (for example using the BitBlt-function or working with pointers to the bitmaps) but none really helps. The weird thing is, that even if I get the assertion error, the program displays the bitmap correctly (only on some comps!). I gave it to a friend to test it (he has the same OS as me, Win2000 Professional) but it didn’t show the image (only a white window). It also seems to work correctly under WinXP.

I’m running out of ideas, so please give me some suggestions what to do

GeneralRe: Problem with CBitmap (MFC prog) Pin
JWood14-Sep-03 11:30
JWood14-Sep-03 11:30 
GeneralRe: Problem with CBitmap (MFC prog) Pin
PengFeidu14-Sep-03 15:01
PengFeidu14-Sep-03 15:01 
GeneralRe: Problem with CBitmap (MFC prog) Pin
Jagadeesh VN14-Sep-03 20:03
Jagadeesh VN14-Sep-03 20:03 
GeneralRe: Problem with CBitmap (MFC prog) Pin
LordOfSword15-Sep-03 5:16
LordOfSword15-Sep-03 5:16 
QuestionHow not to display the seconds in DateTimePicker ctrl?? Pin
YaronNir14-Sep-03 3:44
YaronNir14-Sep-03 3:44 
AnswerRe: How not to display the seconds in DateTimePicker ctrl?? Pin
Michael Dunn14-Sep-03 4:20
sitebuilderMichael Dunn14-Sep-03 4:20 
QuestionSubclassing a tree control? Pin
Kayembi14-Sep-03 3:18
Kayembi14-Sep-03 3:18 
AnswerRe: Subclassing a tree control? Pin
cje15-Sep-03 5:35
cje15-Sep-03 5:35 
GeneralWhere can I get Word Developer's Kit Pin
Mahesh Perumal14-Sep-03 3:18
Mahesh Perumal14-Sep-03 3:18 
Generalloging into irc,user nick please help Pin
thes3cr3t114-Sep-03 1:49
thes3cr3t114-Sep-03 1:49 
GeneralRe: loging into irc,user nick please help Pin
User 665814-Sep-03 3:12
User 665814-Sep-03 3:12 
GeneralRe: loging into irc,user nick please help Pin
thes3cr3t114-Sep-03 3:32
thes3cr3t114-Sep-03 3:32 
GeneralRe: loging into irc,user nick please help Pin
User 665814-Sep-03 3:45
User 665814-Sep-03 3:45 
GeneralRe: loging into irc,user nick please help Pin
thes3cr3t114-Sep-03 3:48
thes3cr3t114-Sep-03 3:48 
GeneralRe: loging into irc,user nick please help Pin
User 665814-Sep-03 3:52
User 665814-Sep-03 3:52 
GeneralRe: loging into irc,user nick please help Pin
thes3cr3t114-Sep-03 7:01
thes3cr3t114-Sep-03 7:01 
GeneralRe: loging into irc,user nick please help Pin
User 665815-Sep-03 9:11
User 665815-Sep-03 9:11 

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.