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

C / C++ / MFC

 
AnswerRe: Serial C++ Pin
Richard MacCutchan21-Jun-12 22:36
mveRichard MacCutchan21-Jun-12 22:36 
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 
jawadali477 wrote:
typedef void CvMouseCallback( int CV_EVENT_LBUTTONDBCLK, int x, int y, int flags, void* param )
 
{
//do some stuff here
}

When you are defining (writing the code of) your function to handle the callback, you don't want typedef, and you want to USE the typedef from the header file. So what you want is something like
C++
CvMouseCallback my_callback_function(int event, int x, int y, int flags, void *param) 
{
// do stuff
}

Also, you don't want the constant CV_EVENT_LBUTTONDBCLK in your function definition.

Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

GeneralRe: error c2071: illegal storage class Pin
jawadali47721-Jun-12 19:42
jawadali47721-Jun-12 19:42 
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 

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.