If you wrote the following
SLL dlg;
and the compiler crashed means something somewhere is terribly wrong because the DoModal on the object should not be crashing unless you have some code in the dialog to be doing the crashing. Check the code you have edited in the InitDialog or OnCreate / PreCreate dialog handler ....