DLL's can have export variables and export functions, variables require the "EXTERN" keyword. You can get your data into the dll via an export variable.
To access your export variable include your DLL header file in your EXE app, and add the DLL LIB lile to your EXE app project, make sure the DLL will be available to your EXE app.
A good way to test your DLL is to have a test EXE app project in the same workspace.