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