Click here to Skip to main content
12,297,589 members (53,581 online)

C / C++ / MFC

 
AnswerRe: Filter the EN_KILLFOCUS message from CIPAddressCtrl Pin
Code-o-mat28-Jan-13 22:27
memberCode-o-mat28-Jan-13 22:27 
GeneralRe: Filter the EN_KILLFOCUS message from CIPAddressCtrl Pin
zhangyoung29-Jan-13 3:04
memberzhangyoung29-Jan-13 3:04 
GeneralRe: Filter the EN_KILLFOCUS message from CIPAddressCtrl Pin
Code-o-mat29-Jan-13 3:13
memberCode-o-mat29-Jan-13 3:13 
QuestionHow to create an uncompressed avi file from a matrix of data? Pin
Kiran Satish27-Jan-13 16:40
memberKiran Satish27-Jan-13 16:40 
QuestionRe: How to create an uncompressed avi file from a matrix of data? Pin
CPallini27-Jan-13 22:38
mvpCPallini27-Jan-13 22:38 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Kiran Satish28-Jan-13 4:42
memberKiran Satish28-Jan-13 4:42 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Chris Losinger28-Jan-13 5:10
memberChris Losinger28-Jan-13 5:10 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Vaclav_Sal28-Jan-13 9:50
memberVaclav_Sal28-Jan-13 9:50 
AnswerRe: How to create an uncompressed avi file from a matrix of data? Pin
Max_Power_Up26-Feb-13 5:51
memberMax_Power_Up26-Feb-13 5:51 
QuestionWaveInOpen() returns error code 11 Pin
AmbiguousName26-Jan-13 3:14
memberAmbiguousName26-Jan-13 3:14 
AnswerRe: WaveInOpen() returns error code 11 Pin
Richard MacCutchan26-Jan-13 3:28
mvpRichard MacCutchan26-Jan-13 3:28 
QuestionStuck with function pointers in C and C++ Pin
Simon Langdon25-Jan-13 0:38
memberSimon Langdon25-Jan-13 0:38 
AnswerRe: Stuck with function pointers in C and C++ Pin
CPallini25-Jan-13 0:59
mvpCPallini25-Jan-13 0:59 
AnswerRe: Stuck with function pointers in C and C++ Pin
Freak3025-Jan-13 1:08
memberFreak3025-Jan-13 1:08 
If I remember correctly, you can't declare a pointer to a non-static member function in native C++. If you need to keep the original functions as they are, I would add a static helper function which gets the class object pointer as additional parameter and calls the member function. Something like that:
/*static*/ int theClass::theFunctionCaller(theClass * obj, int theParam1)
{
    if (obj != NULL)
        obj->theFunction(theParam1);
}
 
bool globFunction (theClass * obj, funcPtr  aFunction)
{
    int anArg = 0;
    int ret = aFunction(obj, anArg);
    return true;
}
 
int theClass::anotherFunction(void)
{
    globFunction (this, &theClass::theFunctionCaller, true);
}

If you need the globFunction() for different classes, you could pass the obj as void * and cast it back in the helper function, because you know which class it is for at that point.
GeneralRe: Stuck with function pointers in C and C++ Pin
Simon Langdon25-Jan-13 1:41
memberSimon Langdon25-Jan-13 1:41 
GeneralRe: Stuck with function pointers in C and C++ Pin
Stefan_Lang29-Jan-13 0:02
memberStefan_Lang29-Jan-13 0:02 
GeneralRe: Stuck with function pointers in C and C++ Pin
Simon Langdon29-Jan-13 0:38
memberSimon Langdon29-Jan-13 0:38 
GeneralRe: Stuck with function pointers in C and C++ Pin
Stefan_Lang29-Jan-13 4:31
memberStefan_Lang29-Jan-13 4:31 
GeneralRe: Stuck with function pointers in C and C++ Pin
CPallini25-Jan-13 2:04
mvpCPallini25-Jan-13 2:04 
GeneralRe: Stuck with function pointers in C and C++ Pin
Freak3027-Jan-13 23:30
memberFreak3027-Jan-13 23:30 
AnswerRe: Stuck with function pointers in C and C++ Pin
Stephen Hewitt27-Jan-13 4:40
memberStephen Hewitt27-Jan-13 4:40 
QuestionUSB Device Path Handle Problem Pin
yogeshs24-Jan-13 21:21
memberyogeshs24-Jan-13 21:21 
AnswerRe: USB Device Path Handle Problem Pin
Vaclav_Sal28-Jan-13 10:08
memberVaclav_Sal28-Jan-13 10:08 
QuestionHow to create a button on the right of the screen in mfc.? Pin
mbatra3124-Jan-13 19:53
membermbatra3124-Jan-13 19:53 
AnswerRe: How to create a button on the right of the screen in mfc.? Pin
Richard MacCutchan24-Jan-13 22:47
mvpRichard MacCutchan24-Jan-13 22:47 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
mbatra3127-Jan-13 19:39
membermbatra3127-Jan-13 19:39 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
Richard MacCutchan27-Jan-13 22:36
mvpRichard MacCutchan27-Jan-13 22:36 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
mbatra3128-Jan-13 0:07
membermbatra3128-Jan-13 0:07 
AnswerRe: How to create a button on the right of the screen in mfc.? Pin
Iain Clarke, Warrior Programmer24-Jan-13 23:13
memberIain Clarke, Warrior Programmer24-Jan-13 23:13 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
mbatra3127-Jan-13 20:11
membermbatra3127-Jan-13 20:11 
AnswerRe: How to create a button on the right of the screen in mfc.? Pin
Albert Holguin25-Jan-13 7:47
memberAlbert Holguin25-Jan-13 7:47 
QuestionCall CListCtrl::GetItemCount() in work thread proble. Pin
yu-jian24-Jan-13 17:41
groupyu-jian24-Jan-13 17:41 
AnswerRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
«_Superman_»24-Jan-13 18:03
member«_Superman_»24-Jan-13 18:03 
AnswerRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
Jochen Arndt24-Jan-13 21:00
memberJochen Arndt24-Jan-13 21:00 
GeneralRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
yu-jian24-Jan-13 21:48
groupyu-jian24-Jan-13 21:48 
GeneralRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
Jochen Arndt24-Jan-13 22:18
memberJochen Arndt24-Jan-13 22:18 
GeneralRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
yu-jian24-Jan-13 23:40
groupyu-jian24-Jan-13 23:40 
QuestionOpen cv C++ Pin
Member 961996424-Jan-13 7:15
memberMember 961996424-Jan-13 7:15 
AnswerRe: Open cv C++ Pin
jibesh24-Jan-13 7:44
memberjibesh24-Jan-13 7:44 
Questionhow to compress data using zlib? Pin
IICTECH24-Jan-13 1:04
memberIICTECH24-Jan-13 1:04 
AnswerRe: how to compress data using zlib? Pin
Richard MacCutchan24-Jan-13 1:45
mvpRichard MacCutchan24-Jan-13 1:45 
AnswerRe: how to compress data using zlib? Pin
Albert Holguin25-Jan-13 7:51
memberAlbert Holguin25-Jan-13 7:51 
QuestionDebugging Dll Pin
sarfaraznawaz24-Jan-13 0:30
membersarfaraznawaz24-Jan-13 0:30 
QuestionDebugging Dll Pin
sarfaraznawaz24-Jan-13 0:30
membersarfaraznawaz24-Jan-13 0:30 
AnswerRe: Debugging Dll Pin
Sivaraman Dhamodharan24-Jan-13 1:26
memberSivaraman Dhamodharan24-Jan-13 1:26 
GeneralRe: Debugging Dll Pin
sarfaraznawaz24-Jan-13 2:58
membersarfaraznawaz24-Jan-13 2:58 
GeneralRe: Debugging Dll Pin
Richard MacCutchan24-Jan-13 3:16
mvpRichard MacCutchan24-Jan-13 3:16 
GeneralRe: Debugging Dll Pin
sarfaraznawaz30-Jan-13 1:25
membersarfaraznawaz30-Jan-13 1:25 
GeneralRe: Debugging Dll Pin
Richard MacCutchan30-Jan-13 2:55
mvpRichard MacCutchan30-Jan-13 2:55 
GeneralRe: Debugging Dll Pin
sarfaraznawaz30-Jan-13 3:10
membersarfaraznawaz30-Jan-13 3:10 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 26 May 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid