InitDlg Example for C++ 5.0 and later
ILEADRasterDlgKrn * m_pRasterKrnDlg;
//This Will be in Constructor
CoInitialize(NULL);
int nRet =0;
m_pRasterKrnDlg = NULL;
CoCreateInstance(
CLSID_LEADRasterDlgKrn,
NULL,
CLSCTX_ALL,
IID_ILEADRasterDlgKrn,
(void**)&m_pRasterKrnDlg
);
nRet = m_pRasterKrnDlg->InitDlg(INIT_WITHOUT_COLOR);
if(nRet == 0)
{
AfxMessageBox(TEXT("Initialize Dialogs with Color Success "));
}