I need to repeatedly generate a Win32 DLL with the function of registering information. This function uses literals to return specific client registration information, with a separate DLL created for each client.
I have a test version that works correctly, with hard-coded information for one client. The relevance for some sites dictates that I generate some DLL manually, but I would like to provide the client with an application that dynamically emits the C source and builds the DLL on demand.
What would be the best way to do this? I have VS 2008 C ++ Express and therefore the cl.exe compiler. My current approach would simply be to have a C # application with a string constant for the C source, and before the generation, replace the tokens with the required parameters, then build and link, bypassing and running cl.exe.
source
share