Click here to Skip to main content
15,889,879 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionASSERT(::IsWindow(m_hWnd)); Pin
DanYELL7-Jun-06 14:01
DanYELL7-Jun-06 14:01 
AnswerRe: ASSERT(::IsWindow(m_hWnd)); [modified] Pin
bob169727-Jun-06 17:26
bob169727-Jun-06 17:26 
QuestionCallback function arguments Pin
vasanth10047-Jun-06 12:42
vasanth10047-Jun-06 12:42 
AnswerRe: Callback function arguments Pin
Cedric Moonen7-Jun-06 20:20
Cedric Moonen7-Jun-06 20:20 
GeneralRe: Callback function arguments Pin
vasanth10048-Jun-06 3:51
vasanth10048-Jun-06 3:51 
GeneralRe: Callback function arguments Pin
Cedric Moonen8-Jun-06 3:58
Cedric Moonen8-Jun-06 3:58 
GeneralRe: Callback function arguments Pin
vasanth10048-Jun-06 4:45
vasanth10048-Jun-06 4:45 
GeneralRe: Callback function arguments Pin
Cedric Moonen8-Jun-06 4:57
Cedric Moonen8-Jun-06 4:57 
Ok I see. But basically, I think there is a design problem there. Ok, let's suppose you have several Draw functions with each a different parameter list. How, in your dll, will you know what parameters you will need to pass ? There is a big problem there. You simply cannot call a function without knowing what you will pass to it, this makes non-sense.

I think you need probably to rethink a little bit the design. As I see, it is the users that will use your dll (so you don't have control over this 'code'). Why not simply have a standard callback function ? It work always like that: you have a specific function prototype that can be used as a callback and it's up to the user to follow this prototype (that seems logical).


Cédric Moonen
Software developer

Charting control
QuestionRetrieve Process %CPU Usage and Thread Count Pin
Nonna147-Jun-06 11:19
Nonna147-Jun-06 11:19 
AnswerRe: Retrieve Process %CPU Usage and Thread Count Pin
Naveen7-Jun-06 17:43
Naveen7-Jun-06 17:43 
AnswerRe: Retrieve Process %CPU Usage and Thread Count Pin
ThatsAlok7-Jun-06 19:54
ThatsAlok7-Jun-06 19:54 
Questionplugin support coding in c++ project(advice please) Pin
sawerr7-Jun-06 11:14
sawerr7-Jun-06 11:14 
AnswerRe: plugin support coding in c++ project(advice please) Pin
Chris Losinger7-Jun-06 11:54
professionalChris Losinger7-Jun-06 11:54 
GeneralRe: plugin support coding in c++ project(advice please) Pin
sawerr7-Jun-06 18:00
sawerr7-Jun-06 18:00 
GeneralRe: plugin support coding in c++ project(advice please) Pin
Chris Losinger8-Jun-06 1:11
professionalChris Losinger8-Jun-06 1:11 
QuestionMFC71.dll missing export link SHLWAPI.dll:UrlUnescapeA Pin
tbrake7-Jun-06 10:23
tbrake7-Jun-06 10:23 
AnswerRe: MFC71.dll missing export link SHLWAPI.dll:UrlUnescapeA Pin
bob169727-Jun-06 19:23
bob169727-Jun-06 19:23 
QuestionRemote Desktop with UDP socket [modified] Pin
lynchspawn7-Jun-06 9:52
lynchspawn7-Jun-06 9:52 
QuestionMDI Tab and more Pin
bingshen7-Jun-06 9:49
bingshen7-Jun-06 9:49 
QuestionOnTimer() Not Being Called after timer is set up (VS C++ 6.0) Pin
bfeero7-Jun-06 9:20
bfeero7-Jun-06 9:20 
AnswerRe: OnTimer() Not Being Called after timer is set up (VS C++ 6.0) Pin
bfeero7-Jun-06 9:28
bfeero7-Jun-06 9:28 
QuestionDocking window behaviour ? [modified] Pin
Maximilien7-Jun-06 8:41
Maximilien7-Jun-06 8:41 
Questionsome code to start to write a program to display waveforms in multiple channels Pin
mrby1237-Jun-06 7:56
mrby1237-Jun-06 7:56 
QuestionOnChange / SetModifiedFlag(TRUE) Pin
DanYELL7-Jun-06 6:58
DanYELL7-Jun-06 6:58 
QuestionRe: OnChange / SetModifiedFlag(TRUE) Pin
David Crow7-Jun-06 7:07
David Crow7-Jun-06 7:07 

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.