I am trying to convert a DLL into a static library . This DLL is a MFC
DLL and uses a CWnd Object .

I was able to modify the project to create a .lib file . The problem is
run -time where the Cwnd object is being created inside the static
library . Keep getting an assertion

::AfxRegisterWndClass( NULL);

I also use CAsyncSocket in the static library . This call also fails
throwing the same assertion .

Any suggestions ?