int _tmain(int argc, _TCHAR* argv[]) { ICMATHCAUCULATOR *pMathcalci = nullptr; HRESULT hr; CoInitialize(NULL); hr = CoCreateInstance(CLSID_CMATHCAUCULATOR, NULL, CLSCTX_LOCAL_SERVER, IID_ICMATHCAUCULATOR, (void**)&pMathcalci); if (SUCCEEDED(hr)) { cout << "function is called" << endl; double drresult = 0.0; pMathcalci->SumofTowNumbers(10.0, 50.0, &drresult); cout << " value is " << drresult << endl; } CoUninitialize(); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)