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)
为什么调试时老是报错:类型不匹配???