ActiveX Creation Crashing

L

Thread Starter

Latha

Hi,

I am using ActiveX controls in my Application.
I created one activex called CTwainActivex using VC++ activeX generation wizard.

CTwainActivex *m _TwX.
m_Twx = new CTwainActiveX;

try {

m_TwX->Create
("TwainX",WS_CHILD|WS_VISIBLE,rec,this,1002,NULL,FALSE) ;
}
catch(CException e)
{
AfxMessageBox("Error creating
twactivex in debug mode");
}

My application is failing or crashing while creating ActiveX in debug mode only.It is working fine in Release mode.

I am using VC++6 , and working on windowsXP.

I have absolutely no clue why is this failing/application crashing in Debug mode.

Please help me out.......

it is very urgent ...

Kindly help me out.

Thanks,
Latha.
India.
 
Top