Click here to Skip to main content
16,004,854 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralVariables under different class Pin
Kuniva20-Oct-01 6:52
Kuniva20-Oct-01 6:52 
GeneralRe: Variables under different class Pin
Michael P Butler20-Oct-01 11:17
Michael P Butler20-Oct-01 11:17 
GeneralFind a string in a file Pin
Maer72720-Oct-01 3:02
Maer72720-Oct-01 3:02 
GeneralRe: Find a string in a file Pin
NormDroid20-Oct-01 3:28
professionalNormDroid20-Oct-01 3:28 
GeneralRe: Find a string in a file Pin
Maer72720-Oct-01 3:58
Maer72720-Oct-01 3:58 
GeneralRe: Find a string in a file Pin
NormDroid20-Oct-01 4:02
professionalNormDroid20-Oct-01 4:02 
GeneralRe: Find a string in a file Pin
Maer72720-Oct-01 19:12
Maer72720-Oct-01 19:12 
GeneralPassing Pointers To Function In C++ Pin
AJ12320-Oct-01 2:26
AJ12320-Oct-01 2:26 
Hi,

What I want, is to pass a function which is a member of one object into the contructor of a new object it declares. So the new object can then call it.

Keep getting errors along the lines of:

error C2664: '__thiscall CTest::CTest(void (__cdecl *)(char *))' : cannot convert parameter 1 from 'void (char *)' to 'void (__cdecl *)(char *)'

Can Anyone offer Any Advice, it work if i declare the function as a static.

Guess it's a c++/c isssue. The function prototype is for a standard c function where i want it to be for a class memeber function


Or is this the sort of thing that should be done through some Object Orientated Programming principle.


Thanks, Much Appreciated

Richard Jackson
GeneralRe: Passing Pointers To Function In C++ Pin
Tim Deveaux20-Oct-01 5:04
Tim Deveaux20-Oct-01 5:04 
General*** Multiple Client Socket in MFC *** Pin
Salman Ahmad Khan20-Oct-01 0:24
Salman Ahmad Khan20-Oct-01 0:24 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
NormDroid20-Oct-01 0:35
professionalNormDroid20-Oct-01 0:35 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
Salman Ahmad Khan20-Oct-01 1:10
Salman Ahmad Khan20-Oct-01 1:10 
GeneralRe:First, learn TCP/IP! Pin
Masaaki Onishi20-Oct-01 11:51
Masaaki Onishi20-Oct-01 11:51 
GeneralRe: *** Multiple Client Socket in MFC *** Pin
20-Oct-01 12:38
suss20-Oct-01 12:38 
QuestionFor learning c++, which one will be you choice? Pin
flying20-Oct-01 0:05
flying20-Oct-01 0:05 
AnswerRe: For learning c++, which one will be you choice? Pin
NormDroid20-Oct-01 0:37
professionalNormDroid20-Oct-01 0:37 
GeneralLooking support for c++ in Linux Pin
Gaurav Lambole20-Oct-01 0:01
Gaurav Lambole20-Oct-01 0:01 
GeneralRe: Looking support for c++ in Linux Pin
markkuk21-Oct-01 19:47
markkuk21-Oct-01 19:47 
QuestionHow to destroy Array of Controls Pin
19-Oct-01 21:24
suss19-Oct-01 21:24 
AnswerRe: How to destroy Array of Controls Pin
NormDroid19-Oct-01 23:48
professionalNormDroid19-Oct-01 23:48 
GeneralRe: How to destroy Array of Controls Pin
21-Oct-01 19:10
suss21-Oct-01 19:10 
GeneralRe: How to destroy Array of Controls Pin
21-Oct-01 19:58
suss21-Oct-01 19:58 
GeneralRe: How to destroy Array of Controls Pin
22-Oct-01 8:30
suss22-Oct-01 8:30 
GeneralRe:Thanks Pin
24-Oct-01 20:18
suss24-Oct-01 20:18 
QuestionHOW TO CHANGE THE IP ADDRESS?? Pin
Daniel Visan19-Oct-01 21:17
Daniel Visan19-Oct-01 21:17 

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.