and using VC++ in Visual studio 2010,and msoffice 2007.
Its working fine. but the exe can not run in windows xp (same msoffice 2007 and installation folder also same). i do not know what is the problem. plz tell about how compactability in both os and different version of office like 2003,2007,2010, etc
coder777 i am not install .net in windows xp but mfc100.dll error occur to open exe. but i copy the mfc100.dll from wondows 7 and paste to windows xp. then opened the exe when open button i clicked then the
1 2 3 4 5 6
COleVariant covTrue((short)TRUE), covFalse((short)FALSE), covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
if(!capp.CreateDispatch("Word.Application"))
{
AfxMessageBox(TEXT("Couldn't start Excel and get Application object."));
return;
}
hi, i check the above problem is solved in microsoft office all version is support in window 7. But not working in windows xp. and also i update the service back 3, still that problem arise. if any rules to create a visual c++ project to support multi operating system like windows7,xp,vista,etc....?