I am building an ActiveX control using VC++. However when I tried to insert another ActiveX control (eg. FlexGrid) in 1 of my dialog box, my program crush when I tried to show the dialog box at runtime (hWnd = NULL). After I delete the active control from my dialog box, everything runs fine.