Click here to Skip to main content
15,893,266 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: wait for CWinThread to terminate -- from UI thread Pin
JudyL_MD24-Oct-07 10:51
JudyL_MD24-Oct-07 10:51 
GeneralRe: wait for CWinThread to terminate -- from UI thread Pin
pierre_ribery24-Oct-07 10:59
pierre_ribery24-Oct-07 10:59 
GeneralRe: wait for CWinThread to terminate -- from UI thread Pin
JudyL_MD24-Oct-07 11:09
JudyL_MD24-Oct-07 11:09 
GeneralRe: wait for CWinThread to terminate -- from UI thread Pin
Peter Weyzen24-Oct-07 11:18
Peter Weyzen24-Oct-07 11:18 
AnswerRe: wait for CWinThread to terminate -- from UI thread Pin
Mark Salsbery24-Oct-07 12:18
Mark Salsbery24-Oct-07 12:18 
GeneralRe: wait for CWinThread to terminate -- from UI thread Pin
Peter Weyzen24-Oct-07 13:31
Peter Weyzen24-Oct-07 13:31 
GeneralRe: wait for CWinThread to terminate -- from UI thread Pin
Peter Weyzen31-Oct-07 17:49
Peter Weyzen31-Oct-07 17:49 
QuestionProblem!!! Pin
purplee8524-Oct-07 7:00
purplee8524-Oct-07 7:00 
Attached below is the program... but it fails to execute!!
When i tried to execute: Cimg0Exception window pop up with the msg: CImg<unsined char="">::load_other():Failed to open image 'piggy.jpg". Check you have either the ImageMagick or GraphicsMagick package installed.

How do i install??(mine is Windows XP)

#include "CImg.h"
using namespace cimg_library;

int main() {
CImg<unsigned char=""> image("piggy.jpg"), visu(500,400,1,3,0);
const unsigned char red[] = { 255,0,0 }, green[] = { 0,255,0 }, blue[] = { 0,0,255 };
image.blur(2.5);
CImgDisplay main_disp(image,"Click a point"), draw_disp(visu,"Intensity profile");
while (!main_disp.is_closed && !draw_disp.is_closed) {
main_disp.wait();
if (main_disp.button && main_disp.mouse_y>=0) {
const int y = main_disp.mouse_y;
visu.fill(0).draw_graph(image.get_crop(0,y,0,0,image.dimx()-1,y,0,0),red,0,256,0);
visu.draw_graph(image.get_crop(0,y,0,1,image.dimx()-1,y,0,1),green,0,256,0);
visu.draw_graph(image.get_crop(0,y,0,2,image.dimx()-1,y,0,2),blue,0,256,0).display(draw_disp);
}
}
return 0;
}
AnswerRe: Problem!!! Pin
led mike24-Oct-07 7:23
led mike24-Oct-07 7:23 
QuestionRe: Problem!!! Pin
David Crow24-Oct-07 7:30
David Crow24-Oct-07 7:30 
AnswerRe: Problem!!! Pin
jhwurmbach24-Oct-07 22:39
jhwurmbach24-Oct-07 22:39 
QuestionCreating a form at runtime Pin
Demian Panello24-Oct-07 6:23
Demian Panello24-Oct-07 6:23 
QuestionUsing ADO or OLE DB with VC++ Pin
Stevej24-Oct-07 5:54
Stevej24-Oct-07 5:54 
AnswerRe: Using ADO or OLE DB with VC++ Pin
led mike24-Oct-07 7:13
led mike24-Oct-07 7:13 
GeneralRe: Using ADO or OLE DB with VC++ Pin
Stevej24-Oct-07 8:12
Stevej24-Oct-07 8:12 
GeneralRe: Using ADO or OLE DB with VC++ [modified] Pin
led mike24-Oct-07 8:49
led mike24-Oct-07 8:49 
AnswerRe: Using ADO or OLE DB with VC++ Pin
DQNOK24-Oct-07 11:02
professionalDQNOK24-Oct-07 11:02 
QuestionHow to change windows desktop appearance through VC++/MFC ? Pin
cagespear24-Oct-07 5:46
cagespear24-Oct-07 5:46 
AnswerRe: How to change windows desktop appearance through VC++/MFC ? Pin
David Crow24-Oct-07 5:49
David Crow24-Oct-07 5:49 
AnswerRe: How to change windows desktop appearance through VC++/MFC ? Pin
Hamid_RT25-Oct-07 4:27
Hamid_RT25-Oct-07 4:27 
QuestionData parsers Pin
epsilonorion24-Oct-07 5:33
epsilonorion24-Oct-07 5:33 
AnswerRe: Data parsers Pin
jhwurmbach24-Oct-07 5:57
jhwurmbach24-Oct-07 5:57 
QuestionHELP on MFC and ImageMagicK/GraphicsMagicK Pin
purplee8524-Oct-07 5:22
purplee8524-Oct-07 5:22 
AnswerRe: HELP on MFC and ImageMagicK/GraphicsMagicK Pin
JudyL_MD24-Oct-07 6:54
JudyL_MD24-Oct-07 6:54 
QuestionSerial COM port used by unknown Pin
blueluna24-Oct-07 5:14
blueluna24-Oct-07 5:14 

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.