Click here to Skip to main content
15,919,778 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pass class member function as paramter? Pin
Jim Crafton27-Mar-02 10:50
Jim Crafton27-Mar-02 10:50 
GeneralHistory list in browser window Pin
Aaron Schaefer27-Mar-02 6:24
Aaron Schaefer27-Mar-02 6:24 
Generalsending keystrokes to window Pin
vins27-Mar-02 5:14
vins27-Mar-02 5:14 
GeneralRe: sending keystrokes to window Pin
Tim Deveaux27-Mar-02 6:12
Tim Deveaux27-Mar-02 6:12 
GeneralRe: sending keystrokes to window Pin
vins27-Mar-02 6:22
vins27-Mar-02 6:22 
GeneralRe: sending keystrokes to window Pin
Tim Deveaux27-Mar-02 7:41
Tim Deveaux27-Mar-02 7:41 
GeneralRe: sending keystrokes to window Pin
vins27-Mar-02 8:16
vins27-Mar-02 8:16 
QuestionHow do I determine what functions a dll are exporting? Pin
Tommy Svensson27-Mar-02 5:03
Tommy Svensson27-Mar-02 5:03 
Hi everybody,

Is ther a way [read: a program] to find out what functions a dll is exporting? Is there a tool with MVS that can do this?

To learn more about this I chose the default implementation of a sample dll in VC++: New->Projects->Win32 dynamic link-library.

Now, there's a test function called fnDllTest (my project is called DllTest) which is exported like this:

__declspec(dllexport) int fnDllTest(void)
{
  return 42;
}


Now, I created a simple console application which should call this dll function. I loaded the dll using LoadLibrary and that works fine... BUT, now I wish to get the function fnDllTest through the use of GetProcAddress but I can't seem to get it working!

If the dll and the console app loading the dll are residing in the same place then the call to GetProcAddress should look like this right?

blabla = (blabla)GetProcAddress(libPtr, "fnDllTest");


where libPtr is the return value of LoadLibrary... What kind of type should blabla be of?
I haven't found any documentation on how to call dll exported functions...

Thx for all your help,

/Tommy
AnswerRe: How do I determine what functions a dll are exporting? Pin
Chris Losinger27-Mar-02 5:27
professionalChris Losinger27-Mar-02 5:27 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Tommy Svensson27-Mar-02 6:08
Tommy Svensson27-Mar-02 6:08 
AnswerRe: How do I determine what functions a dll are exporting? Pin
Paul M Watt27-Mar-02 5:48
mentorPaul M Watt27-Mar-02 5:48 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Tommy Svensson27-Mar-02 6:16
Tommy Svensson27-Mar-02 6:16 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Tommy Svensson27-Mar-02 6:36
Tommy Svensson27-Mar-02 6:36 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Paul M Watt27-Mar-02 9:03
mentorPaul M Watt27-Mar-02 9:03 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Tommy Svensson1-Apr-02 21:49
Tommy Svensson1-Apr-02 21:49 
GeneralRe: How do I determine what functions a dll are exporting? Pin
Tomasz Sowinski27-Mar-02 10:24
Tomasz Sowinski27-Mar-02 10:24 
AnswerRe: How do I determine what functions a dll are exporting? Pin
JT Anderson27-Mar-02 6:04
JT Anderson27-Mar-02 6:04 
AnswerRe: How do I determine what functions a dll are exporting? Pin
sanjay mishra2-Apr-02 0:35
sanjay mishra2-Apr-02 0:35 
GeneralCOleVariant's and globally unique ID's Pin
funbag27-Mar-02 4:40
funbag27-Mar-02 4:40 
GeneralRetrieve pointer of the view into Mainframe Pin
27-Mar-02 4:20
suss27-Mar-02 4:20 
GeneralRe: Retrieve pointer of the view into Mainframe Pin
Mazdak27-Mar-02 7:01
Mazdak27-Mar-02 7:01 
GeneralRe: Retrieve pointer of the view into Mainframe Pin
Mazdak27-Mar-02 7:02
Mazdak27-Mar-02 7:02 
GeneralProfiling - weird problem. Pin
Alex Deem27-Mar-02 4:11
Alex Deem27-Mar-02 4:11 
GeneralRe: Profiling - weird problem. Pin
moliate27-Mar-02 9:05
moliate27-Mar-02 9:05 
GeneralStatus Bar Text Limit Pin
27-Mar-02 3:43
suss27-Mar-02 3:43 

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.