nana11(nana11)
你好:
DDE我没有用过,有点晕,可以就我的问题 给讲讲吗?
我是pb 6.5的 oleobject ole_excel
if not isvalid(ole_excel) then
ole_excel=create oleobject
li_ret=ole_excel.connecttoobject( "excel.application")
if li_ret<>0 then
//如果excel没有打开,则建立新的应用
li_ret=ole_excel.connecttonewobject("excel.application")
if li_ret<>0 then
MessageBox("OLE错误","OLE无法连接! 错误号"+string(li_ret))
return 1
end if
end if