Click here to Skip to main content
15,907,236 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Multiple #define with same name Pin
David Crow10-Feb-10 4:03
David Crow10-Feb-10 4:03 
QuestionFile Input/Output [solved] Pin
Eugén Jung9-Feb-10 8:33
Eugén Jung9-Feb-10 8:33 
AnswerRe: File Input/Output Pin
Maximilien9-Feb-10 9:03
Maximilien9-Feb-10 9:03 
QuestionHow to call global functions of dll with void* (or some more generic pointer) Pin
glitteringsound9-Feb-10 7:35
glitteringsound9-Feb-10 7:35 
AnswerRe: How to call global functions of dll with void* (or some more generic pointer) Pin
Avi Berger9-Feb-10 8:07
Avi Berger9-Feb-10 8:07 
AnswerRe: How to call global functions of dll with void* (or some more generic pointer) [modified] Pin
BonshatS9-Feb-10 10:20
BonshatS9-Feb-10 10:20 
AnswerRe: How to call global functions of dll with void* (or some more generic pointer) Pin
T21029-Feb-10 20:58
T21029-Feb-10 20:58 
GeneralRe: How to call global functions of dll with void* (or some more generic pointer) [modified] Pin
glitteringsound9-Feb-10 21:30
glitteringsound9-Feb-10 21:30 
Respectfully !!

My goal to call every exported function of DLL without need to declare function pointers.If DLL contains 100 funcs(exported methods) having different types(i.e their return type and in/out params) I need 100 function pointers. Every time GetProcAddress needs to be type casted with those 100 func pointers. Creates horrible maintainaince nightmare. Every time new function included, you need pointer of that type to be declare in code.


Wot about delegates..?

Delegate usage prevents user to use GetProcAddress and require any function pointer to work with.
It wraps all functions to which you want to call at run time. Thus we'll not need any function pointer or need to know the type for that pointer.

Once we know the function Name,in/out params and their types, Without using GetProcAdress, we can call these functions using delegates.

But for this we need to work in managed code sustains within C#.NET
Wot about delegates..?

Delegate usage prevents user to use GetProcAddress and require any function pointer to work with.
It wraps all functions to which you want to call at run time. Thus we'll not need any function pointer or need to know the type for that pointer.

Once we know the function Name,in/out params and their types, Without using GetProcAdress, we can call these functions using delegates.

But for this we need to work in managed code sustains within C#.NET
Regards
Usman
modified on Wednesday, February 10, 2010 3:37 AM

GeneralRe: How to call global functions of dll with void* (or some more generic pointer) Pin
Rozis10-Feb-10 14:07
Rozis10-Feb-10 14:07 
QuestionHow to import a file into PE header of an exe then load that file from within modified exe Pin
only_jack9-Feb-10 5:51
only_jack9-Feb-10 5:51 
AnswerRe: How to import a file into PE header of an exe then load that file from within modified exe Pin
Richard MacCutchan9-Feb-10 6:17
mveRichard MacCutchan9-Feb-10 6:17 
GeneralRe: How to import a file into PE header of an exe then load that file from within modified exe Pin
only_jack9-Feb-10 7:08
only_jack9-Feb-10 7:08 
GeneralRe: How to import a file into PE header of an exe then load that file from within modified exe Pin
David Crow9-Feb-10 7:19
David Crow9-Feb-10 7:19 
GeneralRe: How to import a file into PE header of an exe then load that file from within modified exe Pin
LunaticFringe9-Feb-10 7:32
LunaticFringe9-Feb-10 7:32 
GeneralRe: How to import a file into PE header of an exe then load that file from within modified exe Pin
only_jack9-Feb-10 10:53
only_jack9-Feb-10 10:53 
GeneralRe: How to import a file into PE header of an exe then load that file from within modified exe Pin
Richard MacCutchan9-Feb-10 21:53
mveRichard MacCutchan9-Feb-10 21:53 
GeneralRe: How to import a file into PE header of an exe then load that file from within modified exe Pin
Richard MacCutchan9-Feb-10 7:47
mveRichard MacCutchan9-Feb-10 7:47 
Questionerror LNK2001: unresolved external symbol "private: static class std::map<class std::basic_string Pin
transoft9-Feb-10 3:24
transoft9-Feb-10 3:24 
AnswerRe: error LNK2001: unresolved external symbol "private: static class std::map<class std::basic_string Pin
Graham Breach9-Feb-10 3:44
Graham Breach9-Feb-10 3:44 
QuestionMIDL cascading Pin
William Engberts9-Feb-10 1:26
William Engberts9-Feb-10 1:26 
QuestionMessage Removed Pin
9-Feb-10 0:18
gregarion9-Feb-10 0:18 
AnswerRe: Database Syntax Pin
ThatsAlok9-Feb-10 0:46
ThatsAlok9-Feb-10 0:46 
GeneralRe: Database Syntax Pin
gregarion9-Feb-10 1:05
gregarion9-Feb-10 1:05 
AnswerRe: Database Syntax Pin
Game-point9-Feb-10 0:56
Game-point9-Feb-10 0:56 
GeneralRe: Database Syntax Pin
gregarion9-Feb-10 1:06
gregarion9-Feb-10 1: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.