I've got this error which I can't understand neither I've found on the NET any solution:System.Runtime.InteropServices.COMException: 'Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))'
The code I'm writing is:
'Save BMP Thumbnail Components to his destination Folder
Dim swPreviewComp As IPictureDisp
swPreviewComp = swApp.GetPreviewBitmap(FullFilePathComp, ConfNameComp)
Of course, 'FullFilePathComp' and 'ConfNameComp' are OK and have the correct values.
I'm using VISUAL STUDIO 2019 with SOLIDWORKS 2024. The same Code with VBA works well without any error.
Thanks.
