Hi, Jason, I want to change the variable in variable table by program with C++, but I find a question, program as following,
pDis=pPartDoc->Variables;
hr=pDis->QueryInterface(&pVars);
pDis->Release();
// hr=pVars->Edit("a","120"); /// It's OK!
_variant_t v;
v="a";
hr=pVars->Item("a")->QueryInterface(&pVar); ///hr=NOINTERFACE
The same function in another program, the last hr's value is S_OK!
Could you help me?
Thanks! |