Click here to Skip to main content
13,301,100 members (77,221 online)

C / C++ / MFC

 
AnswerRe: In win7 ,how to modify registry with Non - administrator permission Pin
Jochen Arndt28-Jan-13 22:38
memberJochen Arndt28-Jan-13 22:38 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
haha_c28-Jan-13 23:02
memberhaha_c28-Jan-13 23:02 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
Jochen Arndt28-Jan-13 23:57
memberJochen Arndt28-Jan-13 23:57 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
haha_c29-Jan-13 0:18
memberhaha_c29-Jan-13 0:18 
GeneralRe: In win7 ,how to modify registry with Non - administrator permission Pin
Jochen Arndt29-Jan-13 0:33
memberJochen Arndt29-Jan-13 0:33 
QuestionGet CBitmap from CDib Pin
Flaviu228-Jan-13 21:30
memberFlaviu228-Jan-13 21:30 
AnswerRe: Get CBitmap from CDib Pin
Jochen Arndt28-Jan-13 22:31
memberJochen Arndt28-Jan-13 22:31 
QuestionAbout virtual function Pin
EhtishamArshad28-Jan-13 20:40
groupEhtishamArshad28-Jan-13 20:40 
AnswerRe: About virtual function Pin
jibesh28-Jan-13 20:51
memberjibesh28-Jan-13 20:51 
GeneralRe: About virtual function Pin
EhtishamArshad28-Jan-13 23:32
groupEhtishamArshad28-Jan-13 23:32 
AnswerRe: About virtual function Pin
Richard MacCutchan28-Jan-13 23:48
mvpRichard MacCutchan28-Jan-13 23:48 
QuestionWaveInOpen() returns error code 11 Pin
AmbiguousName26-Jan-13 4:14
memberAmbiguousName26-Jan-13 4:14 
AnswerRe: WaveInOpen() returns error code 11 Pin
Richard MacCutchan26-Jan-13 4:28
mvpRichard MacCutchan26-Jan-13 4:28 
QuestionStuck with function pointers in C and C++ Pin
Simon Langdon25-Jan-13 1:38
memberSimon Langdon25-Jan-13 1:38 
I'm trying to copy some C code to a C++ class and I've got stuck with a function pointer issue. I've been trying to mess around with calling conventions but I don't want to make my C++ function static and don't want to change the old C code. Thanks for looking.


class theClass
{
public:
    int theFunction(int theParam1);
    int anotherFunction(void);
};
 
typedef int (*funcPtr) (int Param1);
 
int theClass::theFunction(int theParam1)
{
    return 0;
}
 
int function(int theParam1)
{
    return 0;
}
 
bool globFunction (funcPtr aFunction, bool someOtherArg)
{
    int anArg = 0;
    int ret = aFunction(anArg);
    return true;
}
 
int theClass::anotherFunction(void)
{
    globFunction (function, false);
 
    globFunction (&theClass::theFunction, true); //  error C2440: 'type cast' : cannot convert from 'int (__thiscall theClass::* )(int)' to 'funcPtr'
 
    return 0;
}

AnswerRe: Stuck with function pointers in C and C++ Pin
CPallini25-Jan-13 1:59
mvpCPallini25-Jan-13 1:59 
AnswerRe: Stuck with function pointers in C and C++ Pin
Freak3025-Jan-13 2:08
memberFreak3025-Jan-13 2:08 
GeneralRe: Stuck with function pointers in C and C++ Pin
Simon Langdon25-Jan-13 2:41
memberSimon Langdon25-Jan-13 2:41 
GeneralRe: Stuck with function pointers in C and C++ Pin
Stefan_Lang29-Jan-13 1:02
memberStefan_Lang29-Jan-13 1:02 
GeneralRe: Stuck with function pointers in C and C++ Pin
Simon Langdon29-Jan-13 1:38
memberSimon Langdon29-Jan-13 1:38 
GeneralRe: Stuck with function pointers in C and C++ Pin
Stefan_Lang29-Jan-13 5:31
memberStefan_Lang29-Jan-13 5:31 
GeneralRe: Stuck with function pointers in C and C++ Pin
CPallini25-Jan-13 3:04
mvpCPallini25-Jan-13 3:04 
GeneralRe: Stuck with function pointers in C and C++ Pin
Freak3028-Jan-13 0:30
memberFreak3028-Jan-13 0:30 
AnswerRe: Stuck with function pointers in C and C++ Pin
Stephen Hewitt27-Jan-13 5:40
memberStephen Hewitt27-Jan-13 5:40 
QuestionUSB Device Path Handle Problem Pin
yogeshs24-Jan-13 22:21
memberyogeshs24-Jan-13 22:21 
AnswerRe: USB Device Path Handle Problem Pin
Vaclav_Sal28-Jan-13 11:08
memberVaclav_Sal28-Jan-13 11:08 
QuestionHow to create a button on the right of the screen in mfc.? Pin
mbatra3124-Jan-13 20:53
membermbatra3124-Jan-13 20:53 
AnswerRe: How to create a button on the right of the screen in mfc.? Pin
Richard MacCutchan24-Jan-13 23:47
mvpRichard MacCutchan24-Jan-13 23:47 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
mbatra3127-Jan-13 20:39
membermbatra3127-Jan-13 20:39 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
Richard MacCutchan27-Jan-13 23:36
mvpRichard MacCutchan27-Jan-13 23:36 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
mbatra3128-Jan-13 1:07
membermbatra3128-Jan-13 1:07 
AnswerRe: How to create a button on the right of the screen in mfc.? Pin
Iain Clarke, Warrior Programmer25-Jan-13 0:13
memberIain Clarke, Warrior Programmer25-Jan-13 0:13 
GeneralRe: How to create a button on the right of the screen in mfc.? Pin
mbatra3127-Jan-13 21:11
membermbatra3127-Jan-13 21:11 
AnswerRe: How to create a button on the right of the screen in mfc.? Pin
Albert Holguin25-Jan-13 8:47
memberAlbert Holguin25-Jan-13 8:47 
QuestionCall CListCtrl::GetItemCount() in work thread proble. Pin
yu-jian24-Jan-13 18:41
groupyu-jian24-Jan-13 18:41 
AnswerRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
«_Superman_»24-Jan-13 19:03
member«_Superman_»24-Jan-13 19:03 
AnswerRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
Jochen Arndt24-Jan-13 22:00
memberJochen Arndt24-Jan-13 22:00 
GeneralRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
yu-jian24-Jan-13 22:48
groupyu-jian24-Jan-13 22:48 
GeneralRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
Jochen Arndt24-Jan-13 23:18
memberJochen Arndt24-Jan-13 23:18 
GeneralRe: Call CListCtrl::GetItemCount() in work thread proble. Pin
yu-jian25-Jan-13 0:40
groupyu-jian25-Jan-13 0:40 
QuestionOpen cv C++ Pin
Member 961996424-Jan-13 8:15
memberMember 961996424-Jan-13 8:15 
AnswerRe: Open cv C++ Pin
jibesh24-Jan-13 8:44
memberjibesh24-Jan-13 8:44 
Questionhow to compress data using zlib? Pin
IICTECH24-Jan-13 2:04
memberIICTECH24-Jan-13 2:04 
AnswerRe: how to compress data using zlib? Pin
Richard MacCutchan24-Jan-13 2:45
mvpRichard MacCutchan24-Jan-13 2:45 
AnswerRe: how to compress data using zlib? Pin
Albert Holguin25-Jan-13 8:51
memberAlbert Holguin25-Jan-13 8:51 
QuestionDebugging Dll Pin
sarfaraznawaz24-Jan-13 1:30
membersarfaraznawaz24-Jan-13 1:30 
QuestionDebugging Dll Pin
sarfaraznawaz24-Jan-13 1:30
membersarfaraznawaz24-Jan-13 1:30 
AnswerRe: Debugging Dll Pin
Sivaraman Dhamodharan24-Jan-13 2:26
memberSivaraman Dhamodharan24-Jan-13 2:26 
GeneralRe: Debugging Dll Pin
sarfaraznawaz24-Jan-13 3:58
membersarfaraznawaz24-Jan-13 3:58 
GeneralRe: Debugging Dll Pin
Richard MacCutchan24-Jan-13 4:16
mvpRichard MacCutchan24-Jan-13 4:16 
GeneralRe: Debugging Dll Pin
sarfaraznawaz30-Jan-13 2:25
membersarfaraznawaz30-Jan-13 2:25 

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 |
Web02 | 2.8.171207.1 | Last Updated 18 Dec 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid