Recommendations for building a windows dll
I am trying to create a Windows dll out of a few visual c++ projects that I am working on. My larger goal is to create a dll that can be linked by clients without worrying(too much) about the nuances of how my dll was compiled.

* I would like to understand better if there are a few basic compiler flags that I should use that is broadly acceptable.
* Are there generally accepted procedures for how struct should be written if I need to export out of the Dll. Especially something that wouldn't be too sensitive to packing alignments. The client might have a 4byte packing, or something else for their own project. How to make sure that doesn't affect if my headers are 8byte aligned.
* Does creating a win32 dll or MFC dll matter. 

I did structure my project such that classes are exported based on the ideas mentioned here:
http://www.codeproject.com/Articles/28969/HowTo-Export-C-classes-from-a-DLL

Recommendations for building a windows dll
===

I am trying to create a Windows dll out of a few visual c++ projects that I am working on. My larger goal is to create a dll that can be linked by clients without worrying(too much) about the nuances of how my dll was compiled.

* I would like to understand better if there are a few basic compiler flags that I should use that is broadly acceptable.
* Are there generally accepted procedures for how struct should be written if I need to export out of the Dll. Especially something that wouldn't be too sensitive to packing alignments. The client might have a 4byte packing, or something else for their own project. How to make sure that doesn't affect if my headers are 8byte aligned.
* Does creating a win32 dll or MFC dll matter. 

I did structure my project such that classes are exported based on the ideas mentioned here:
http://www.codeproject.com/Articles/28969/HowTo-Export-C-classes-from-a-DLL
