本文介绍了有关Excel._Application的Visible属性的帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我的代码链接这个 使用命名空间Excel; int main(array< System :: String ^> ^ args) { Excel :: _ ApplicationPtr pXL; pXL.CreateInstance(LExcel.Application.8); pXL-> Visible = VARIANT_TRUE; //生成此错误 / * 错误C2660:'Excel :: _ Application :: PutVisible':函数不带1个参数 * / ... } 可见是属性,必须有1个参数。 如何解决此错误? 谢谢你转发 abzadeh 解决方案 Visible属性是一个布尔值,所以错误的行应该是 pXL-> Visible = true; 我也有问题,我已经尝试了上述建议,但它不起作用,我可以拥有你的演示项目吗?我想知道原因,谢谢 pXL-> PutVisible(0,VARIANT_TRUE); My code is something link thisusing namespace Excel;int main(array<System::String ^> ^args){ Excel::_ApplicationPtr pXL; pXL.CreateInstance(L"Excel.Application.8"); pXL->Visible = VARIANT_TRUE;//generates this error/*error C2660: 'Excel::_Application::PutVisible' : function does not take 1 arguments*/ ...}Visible is a property and it must have 1 argument. How can I resolve this error?Thanks in forwardabzadeh 解决方案 The Visible property is a boolean, so the erroneous line should bepXL->Visible = true;I also have the problem,I have tried the above suggestions,but it doesn't work,can I have your demo Project? I want to know the reason,thankspXL->PutVisible(0,VARIANT_TRUE); 这篇关于有关Excel._Application的Visible属性的帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-28 20:30