Call DLLs dynamiclly c++

maybe this is a strange question so I don’t know which is the best title for it.

Here is my problem:

I have to make a DLL time tester program in c++ that can load DLL and try their functions, testing if the give a correct results and checking the time that it takes to run them.
So this means that I will receive during the execution of my program a DLL or diferent ones, load them and call their functions without knowing how many params the functions have (before compiling my program).

So I understand that I can’t declare pointers to functions need by GetProcAddress unless I declare dynamicly (I don’t know if I can do this in c++).
Neither include the header of the DLL dynamiclly.

The only solution I can find is that my program generate a new c or c++ file with all the things necesary to call the DLL functions, compile, luanch it…

Can you give me opinions, ideas, maybe there is a way to do this in C++ and I’m skipping it.

I’m using c++, with codeblock 13.12 and MinWG 4.8.
Thank you all in advance and sorry for my poor english.

Source: dll

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.