Click here to Skip to main content
15,892,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General3x15 cell control Pin
doctorpi23-Apr-03 3:43
doctorpi23-Apr-03 3:43 
GeneralSocket Encryption. Pin
Mike Doner23-Apr-03 3:43
Mike Doner23-Apr-03 3:43 
GeneralWebBrowser Control / Java Plugin Pin
Bobuk23-Apr-03 3:37
Bobuk23-Apr-03 3:37 
QuestionHow to remotely start an application in a local network? Pin
David Gao23-Apr-03 3:27
David Gao23-Apr-03 3:27 
AnswerRe: How to remotely start an application in a local network? Pin
valikac23-Apr-03 6:13
valikac23-Apr-03 6:13 
GeneralAuto-resize of text-field Pin
JensB23-Apr-03 3:13
JensB23-Apr-03 3:13 
GeneralRe: Auto-resize of text-field Pin
valikac23-Apr-03 6:14
valikac23-Apr-03 6:14 
GeneralCallback functions Pin
will138323-Apr-03 2:51
will138323-Apr-03 2:51 
hi All,

I have a class with functions and I'm calling into a dll with a function that specifies a callback function Here's the function I'm calling:

extern "C" __declspec(dllexport) void stuffFunction(void (*UpdateCallback)(int iLoad))

And here's the class function I'm trying to pass in as a call back:

void CSomeClass::UpdateCallback(int iLoad);

I get the error:
error C2664: 'someapp.c' : cannot convert parameter 1 from 'void (int)' to 'void (__cdecl *)(int)'

If I declare the UpdateCallback to be a static function, it builds with no errors. I need to have access to the class members so I can't declare it as a static function.

Any ideas? Thanks in advance!
GeneralRe: Callback functions Pin
Rickard Andersson2023-Apr-03 2:57
Rickard Andersson2023-Apr-03 2:57 
GeneralRe: Callback functions Pin
will138323-Apr-03 3:00
will138323-Apr-03 3:00 
GeneralRe: Callback functions Pin
Rickard Andersson2023-Apr-03 3:05
Rickard Andersson2023-Apr-03 3:05 
GeneralCArray and Memory Leaks Pin
Ricky_TheBard23-Apr-03 2:40
Ricky_TheBard23-Apr-03 2:40 
GeneralRe: CArray and Memory Leaks Pin
Phil Hamer23-Apr-03 9:21
Phil Hamer23-Apr-03 9:21 
GeneralRe: CArray and Memory Leaks Pin
David Crow23-Apr-03 10:34
David Crow23-Apr-03 10:34 
GeneralShell open & working dir Pin
Paolo Vernazza23-Apr-03 1:57
Paolo Vernazza23-Apr-03 1:57 
GeneralRe: Shell open & working dir Pin
Rage23-Apr-03 4:00
professionalRage23-Apr-03 4:00 
GeneralRe: Shell open & working dir Pin
Paolo Vernazza23-Apr-03 4:32
Paolo Vernazza23-Apr-03 4:32 
GeneralRe: Shell open & working dir Pin
Rage23-Apr-03 20:54
professionalRage23-Apr-03 20:54 
GeneralRe: Shell open & working dir Pin
Paolo Vernazza23-Apr-03 22:58
Paolo Vernazza23-Apr-03 22:58 
GeneralRe: Shell open & working dir Pin
Rage23-Apr-03 23:05
professionalRage23-Apr-03 23:05 
GeneralRe: Shell open & working dir Pin
Paolo Vernazza23-Apr-03 23:46
Paolo Vernazza23-Apr-03 23:46 
GeneralRe: Shell open & working dir Pin
David Crow23-Apr-03 8:11
David Crow23-Apr-03 8:11 
GeneralProblem in deleting a specific record in an array in C++ Pin
grscot23-Apr-03 1:53
grscot23-Apr-03 1:53 
GeneralRe: Problem in deleting a specific record in an array in C++ Pin
David Crow23-Apr-03 2:57
David Crow23-Apr-03 2:57 
GeneralRe: Problem in deleting a specific record in an array in C++ Pin
Rickard Andersson2023-Apr-03 3:03
Rickard Andersson2023-Apr-03 3:03 

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.