Click here to Skip to main content
15,886,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: RAII Theory Pin
pasztorpisti22-Mar-13 3:41
pasztorpisti22-Mar-13 3:41 
GeneralRe: RAII Theory Pin
Stephen Hewitt22-Mar-13 21:17
Stephen Hewitt22-Mar-13 21:17 
GeneralRe: RAII Theory Pin
pasztorpisti23-Mar-13 1:06
pasztorpisti23-Mar-13 1:06 
GeneralRe: RAII Theory Pin
Stephen Hewitt24-Mar-13 8:27
Stephen Hewitt24-Mar-13 8:27 
GeneralRe: RAII Theory Pin
pasztorpisti24-Mar-13 8:44
pasztorpisti24-Mar-13 8:44 
GeneralRe: RAII Theory Pin
pasztorpisti24-Mar-13 8:52
pasztorpisti24-Mar-13 8:52 
QuestionFunction pointer Pin
Marco Bertschi21-Mar-13 0:10
protectorMarco Bertschi21-Mar-13 0:10 
AnswerRe: Function pointer Pin
Richard MacCutchan21-Mar-13 0:51
mveRichard MacCutchan21-Mar-13 0:51 
I don't think you can do this in C/C++. How would you pass the correct parameters if you don't know the type and count, and how would you handle whatever it returns? I guess the only possible way round it would be to send a void* to some memory area containing the required parameters, or use the void func(...) type definition. But you still need to know the input and output types in the code that calls the function.
Use the best guess

GeneralRe: Function pointer Pin
Marco Bertschi21-Mar-13 1:06
protectorMarco Bertschi21-Mar-13 1:06 
GeneralRe: Function pointer Pin
Richard Andrew x6421-Mar-13 1:57
professionalRichard Andrew x6421-Mar-13 1:57 
GeneralRe: Function pointer Pin
Marco Bertschi21-Mar-13 2:16
protectorMarco Bertschi21-Mar-13 2:16 
GeneralRe: Function pointer Pin
Freak3021-Mar-13 2:30
Freak3021-Mar-13 2:30 
GeneralRe: Function pointer Pin
Marco Bertschi21-Mar-13 2:36
protectorMarco Bertschi21-Mar-13 2:36 
GeneralRe: Function pointer Pin
dusty_dex21-Mar-13 4:21
dusty_dex21-Mar-13 4:21 
GeneralRe: Function pointer Pin
Richard MacCutchan21-Mar-13 3:28
mveRichard MacCutchan21-Mar-13 3:28 
QuestionProblem regarding to array in C++ Pin
achylast20-Mar-13 22:00
achylast20-Mar-13 22:00 
AnswerRe: Problem regarding to array in C++ Pin
Richard MacCutchan20-Mar-13 22:48
mveRichard MacCutchan20-Mar-13 22:48 
QuestionRe: Problem regarding to array in C++ Pin
achylast25-Mar-13 15:36
achylast25-Mar-13 15:36 
AnswerRe: Problem regarding to array in C++ Pin
Richard MacCutchan25-Mar-13 23:31
mveRichard MacCutchan25-Mar-13 23:31 
AnswerRe: Problem regarding to array in C++ Pin
Marco Bertschi21-Mar-13 0:12
protectorMarco Bertschi21-Mar-13 0:12 
QuestionWinsock Error 10035 Pin
john563220-Mar-13 19:26
john563220-Mar-13 19:26 
AnswerRe: Winsock Error 10035 Pin
Jochen Arndt20-Mar-13 22:09
professionalJochen Arndt20-Mar-13 22:09 
GeneralRe: Winsock Error 10035 Pin
john563220-Mar-13 22:43
john563220-Mar-13 22:43 
GeneralRe: Winsock Error 10035 Pin
Jochen Arndt20-Mar-13 23:03
professionalJochen Arndt20-Mar-13 23:03 
QuestionDirectShow is a flop – any other video library out there? Pin
Vaclav_20-Mar-13 17:06
Vaclav_20-Mar-13 17:06 

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.