Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

DoModal fails using excel addin in Visual C++ .Net but works with VC 6.0

hi,
I have wrote the code for excel addin using xlsdk in VC++ MFC. The call to DoModal fails in VC++ 7.0 but works fine with VC++ 6.0.
Code given below

__declspec(dllexport) xlAutoOpen()
{
//... piece of code
CControlPane dlg;
dlg.DoModal; //Fails in VC 7.0 but works fine with VC 6.0
}

mayank.jindal@mphasis.com
[359 byte] By [Mayank Jindal] at [2007-11-11 7:35:12]