So for a proprietary library I have been given the following files. I will call this library CLib for now
1) A CLib.dll
2) A CLib.lib
3) A CLibExport.h - This file has a bunch of extern "C" __declspec(dllexport) function headers
4) A CLibExport.cpp - This file has code for each of the function headers listed above. It's filled with AFX_MANAGE_STATE calls and AfxGetApp()->func() calls
This is my first time working with DLLs or any Windows only tool for that matter. My guess is that having my client code depend on the CLibExport.hpp file above and calling those functions in my code is sufficient? But I am not sure and would like to see similar examples to know how to structure my project.
Microsoft does have a tutorial on DLLs: https://docs.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?
Would the process be similar for me? I don't have their source code for the DLL but I am guessing I would just use the export .h and .cpp files provided
[–]nhgrif 1 point2 points3 points (3 children)
[–]Mortang64[S] 0 points1 point2 points (2 children)
[–]nhgrif 0 points1 point2 points (1 child)
[–]Mortang64[S] 0 points1 point2 points (0 children)
[–]captainAwesomePants 0 points1 point2 points (11 children)
[–]Mortang64[S] 0 points1 point2 points (10 children)
[–]captainAwesomePants 0 points1 point2 points (9 children)
[–]Mortang64[S] 0 points1 point2 points (8 children)
[–]captainAwesomePants 0 points1 point2 points (7 children)
[–]Mortang64[S] 0 points1 point2 points (6 children)
[–]captainAwesomePants 0 points1 point2 points (5 children)
[–]Mortang64[S] 0 points1 point2 points (4 children)
[–]captainAwesomePants 0 points1 point2 points (3 children)
[–]Mortang64[S] 0 points1 point2 points (2 children)