Syntax (OLE Automation)retval = SldWorks.PreviewDoc ( hWnd, fullname)
Input: (long*) hWnd Window handle where you want the preview bitmap to be shown. This pointer is not valid across processes. Therefore, this method will only work if your application is implemented as a DLL.
Input: (BSTR) fullname full path name of document to preview.
Return: (BOOL) retval TRUE if successful.我的代码:首先创建sldworks对象:swapp,然后:
swApp.PreviewDoc(Picture1.hwnd, CommonDialog1.FileName)
为什么调试时老是报错:类型不匹配???
Input: (long*) hWnd Window handle where you want the preview bitmap to be shown. This pointer is not valid across processes. Therefore, this method will only work if your application is implemented as a DLL.
Input: (BSTR) fullname full path name of document to preview.
Return: (BOOL) retval TRUE if successful.我的代码:首先创建sldworks对象:swapp,然后:
swApp.PreviewDoc(Picture1.hwnd, CommonDialog1.FileName)
为什么调试时老是报错:类型不匹配???
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货