Click here to Skip to main content
16,018,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Fastest form of Interprocess communication Pin
Albert Holguin25-Jun-12 7:24
professionalAlbert Holguin25-Jun-12 7:24 
QuestionHow to get the temperature from my aplication? Pin
MroMarcosKim25-Jun-12 6:01
MroMarcosKim25-Jun-12 6:01 
AnswerRe: How to get the temperature from my aplication? Pin
Software_Developer25-Jun-12 6:24
Software_Developer25-Jun-12 6:24 
QuestionThis class and its members cannot be used in applications that execute in the Windows Runtime. Pin
bob1697225-Jun-12 5:10
bob1697225-Jun-12 5:10 
AnswerRe: This class and its members cannot be used in applications that execute in the Windows Runtime. Pin
Albert Holguin25-Jun-12 7:36
professionalAlbert Holguin25-Jun-12 7:36 
GeneralRe: This class and its members cannot be used in applications that execute in the Windows Runtime. Pin
bob1697225-Jun-12 9:02
bob1697225-Jun-12 9:02 
GeneralRe: This class and its members cannot be used in applications that execute in the Windows Runtime. Pin
Albert Holguin25-Jun-12 12:38
professionalAlbert Holguin25-Jun-12 12:38 
Questionerror C2660 :,, opencv with mfc (Solved) Pin
jawadali47724-Jun-12 19:34
jawadali47724-Jun-12 19:34 
hi,
i'm developing dialog based GUI code for my project using opencv with mfc. i'm getting following error for the MouseCallback function which i don't understand why
error C2660: 'SetDlgItemTextW' : function does not take 2 arguments

following is the code that causes this error

void leftclick( int event, int x, int y, int flags, void* param )
{
	if( event == CV_EVENT_LBUTTONDBLCLK )
	{
		CvScalar s; 
		CString Blue, Green, Red;
		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
	}
}

this mouse event is being called in a thread as
cvSetMouseCallback( "box.png", &leftclick, 0 );

any idea what i'm missing. do i have to define the mouse event in the dialog class??

Regards
Jawad

modified 25-Jun-12 6:42am.

AnswerRe: error C2660 :,, opencv with mfc Pin
«_Superman_»24-Jun-12 19:47
professional«_Superman_»24-Jun-12 19:47 
AnswerRe: error C2660 :,, opencv with mfc Pin
SoMad24-Jun-12 19:53
professionalSoMad24-Jun-12 19:53 
AnswerRe: error C2660 :,, opencv with mfc Pin
fat_boy24-Jun-12 21:54
fat_boy24-Jun-12 21:54 
AnswerRe: error C2660 :,, opencv with mfc Pin
jawadali47725-Jun-12 0:40
jawadali47725-Jun-12 0:40 
QuestionDynamic cast question Pin
ForNow24-Jun-12 18:45
ForNow24-Jun-12 18:45 
AnswerRe: Dynamic cast question Pin
«_Superman_»24-Jun-12 19:51
professional«_Superman_»24-Jun-12 19:51 
AnswerRe: Dynamic cast question Pin
Richard MacCutchan24-Jun-12 22:29
mveRichard MacCutchan24-Jun-12 22:29 
AnswerRe: Dynamic cast question Pin
fat_boy25-Jun-12 0:45
fat_boy25-Jun-12 0:45 
QuestionSetDIBits and GetDIBits (Aarot.zip) Pin
Rabindra Laheri24-Jun-12 18:33
Rabindra Laheri24-Jun-12 18:33 
AnswerRe: SetDIBits and GetDIBits (Aarot.zip) Pin
Richard Andrew x6424-Jun-12 18:49
professionalRichard Andrew x6424-Jun-12 18:49 
GeneralRe: SetDIBits and GetDIBits (Aarot.zip) Pin
Rabindra Laheri24-Jun-12 19:39
Rabindra Laheri24-Jun-12 19:39 
AnswerRe: SetDIBits and GetDIBits (Aarot.zip) Pin
Richard MacCutchan24-Jun-12 22:22
mveRichard MacCutchan24-Jun-12 22:22 
QuestionPrecompiled Headers Pin
ForNow24-Jun-12 11:36
ForNow24-Jun-12 11:36 
AnswerRe: Precompiled Headers Pin
Chris Losinger24-Jun-12 12:35
professionalChris Losinger24-Jun-12 12:35 
AnswerRe: Precompiled Headers Pin
jschell25-Jun-12 9:45
jschell25-Jun-12 9:45 
QuestionPut text data to position where cursor is blinking Pin
khanhnd14058224-Jun-12 4:34
khanhnd14058224-Jun-12 4:34 
QuestionWin32 local aplication using accessing mysql instaled in a site with easyphp ... Pin
SNArruda23-Jun-12 13:02
SNArruda23-Jun-12 13:02 

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.