I am interested in using my static lib to create a dll (implicitly linking). which means I need to (in vs2008) create a dll project that should generate the following:
1. header file (which have exported function declarations. These are simple wrappers to actual functions in the static lib and are using __declspec(dllexport) which are in the dll centric .cpp file)
2. import lib which will be made as a result of creating the dll
3. the actual dll which is created.
Now this is what I have:
I have made a test program that will utilize the above dll(including the import lib/header files) to test it. in this I have included all the three items. now the exe compiles/links without issue. however in the main.cpp when i call the exported functions they seem to see the exported dlls...but can't seem to execute the static library functions which they wrap.
question:
1. how do I get them to see those functions?
2. is there an easier way to do this such that I still share my static library but now if anyone wants to create a dll they can because I have added "the exported function capability" to my static lib? OR do I just need to provide them with a imported library from my dll which has all my static library obj files as well? (i thought I did that when i made my dll but maybe just adding that as a reference to create the dll in vs2008 does not work??
update: i was able to use the extern C in the exe to finally get to see the dll function being exported.
so, the wrapper works in the sense that i can now call it in the exe but i am not able to execute the static lib function inside that wrapper. i have provided a sample of one of the wrappers below
thanks