Click here to Skip to main content
15,888,286 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Serial C++ Pin
David Crow22-Jun-12 2:20
David Crow22-Jun-12 2:20 
GeneralRe: Serial C++ Pin
SoMad23-Jun-12 17:21
professionalSoMad23-Jun-12 17:21 
QuestionHow to get list of C++ class names from source code Pin
pandit8421-Jun-12 21:33
pandit8421-Jun-12 21:33 
SuggestionRe: How to get list of C++ class names from source code Pin
David Crow22-Jun-12 2:29
David Crow22-Jun-12 2:29 
GeneralRe: How to get list of C++ class names from source code Pin
Sivaraman Dhamodharan22-Jun-12 4:22
Sivaraman Dhamodharan22-Jun-12 4:22 
Questionerror c2071: illegal storage class Pin
jawadali47721-Jun-12 18:36
jawadali47721-Jun-12 18:36 
AnswerRe: error c2071: illegal storage class Pin
Peter_in_278021-Jun-12 18:55
professionalPeter_in_278021-Jun-12 18:55 
GeneralRe: error c2071: illegal storage class Pin
jawadali47721-Jun-12 19:42
jawadali47721-Jun-12 19:42 
thank you Peter for your reply.
i did modified the code as you suggested but now i'm having this errors
error C2660: 'SetDlgItemTextW' : function does not take 2 arguments
error C2660: 'SetDlgItemTextW' : function does not take 2 arguments 
error C2660: 'SetDlgItemTextW' : function does not take 2 arguments 
error C2664: 'cvSetMouseCallback' : cannot convert parameter 2 from 'CvMouseCallback (__cdecl *)(int,int,int,int,void *)' to 'CvMouseCallback' 


the lines that are giving this errors are
CvMouseCallback on_mouse( int event, int x, int y, int flags, void* param )

{
	//SetDlgItemText(IDC_Blue, (LPCTSTR) L"ok");
	CvScalar s; 
	CString Blue, Green, Red;
	IplImage* zoomed = (IplImage*) param;

	s=cvGet2D(zoomed,x,y);		// get the (x,y) pixel value 
	Blue.Format(_T("%0.2f"), s.val[0]);
	Green.Format(_T("%0.2f"), s.val[1]);
	Red.Format(_T("%0.2f"), s.val[2]);
	SetDlgItemText(IDC_Blue, Blue);   //error C2660
	SetDlgItemText(IDC_Green, Green);   //error C2660
	SetDlgItemText(IDC_Red, Red);    //error C2660
			
		
}

cvSetMouseCallback("box.png", on_mouse, (void*) zoomed) //error C2664 
(defined some other place);

AnswerRe: error c2071: illegal storage class Pin
Parthi_Appu21-Jun-12 21:40
Parthi_Appu21-Jun-12 21:40 
QuestionDisable text zooming in Rich Edit control. Pin
Member 225379321-Jun-12 14:12
Member 225379321-Jun-12 14:12 
AnswerRe: Disable text zooming in Rich Edit control. Pin
Brandon-X1200021-Jun-12 21:30
Brandon-X1200021-Jun-12 21:30 
Questionopencv with MFC Pin
jawadali47720-Jun-12 18:39
jawadali47720-Jun-12 18:39 
AnswerRe: opencv with MFC Pin
Richard MacCutchan20-Jun-12 23:55
mveRichard MacCutchan20-Jun-12 23:55 
AnswerRe: opencv with MFC Pin
Sivaraman Dhamodharan21-Jun-12 1:48
Sivaraman Dhamodharan21-Jun-12 1:48 
GeneralRe: opencv with MFC Pin
jawadali47721-Jun-12 18:16
jawadali47721-Jun-12 18:16 
GeneralRe: opencv with MFC Pin
Sivaraman Dhamodharan22-Jun-12 4:16
Sivaraman Dhamodharan22-Jun-12 4:16 
Questionshow powerpoint slides in visual C++ 2010 form Pin
amir70020-Jun-12 18:32
amir70020-Jun-12 18:32 
AnswerRe: show powerpoint slides in visual C++ 2010 form Pin
_Flaviu20-Jun-12 23:00
_Flaviu20-Jun-12 23:00 
GeneralRe: show powerpoint slides in visual C++ 2010 form Pin
amir70021-Jun-12 22:35
amir70021-Jun-12 22:35 
AnswerRe: show powerpoint slides in visual C++ 2010 form Pin
Maximilien21-Jun-12 8:40
Maximilien21-Jun-12 8:40 
AnswerRe: show powerpoint slides in visual C++ 2010 form Pin
Brandon-X1200021-Jun-12 21:33
Brandon-X1200021-Jun-12 21:33 
GeneralRe: show powerpoint slides in visual C++ 2010 form Pin
amir70021-Jun-12 22:38
amir70021-Jun-12 22:38 
GeneralRe: show powerpoint slides in visual C++ 2010 form Pin
_Flaviu22-Jun-12 6:30
_Flaviu22-Jun-12 6:30 
QuestionCan I create a dialog template for other dialog boxes? Pin
DeepT20-Jun-12 5:47
DeepT20-Jun-12 5:47 
AnswerRe: Can I create a dialog template for other dialog boxes? Pin
fat_boy20-Jun-12 6:31
fat_boy20-Jun-12 6:31 

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.