I have an Activex created with VC++ , receive an error in C++Builder
-
Hi, I have an activeX created with VC++ ,i use it in my C++Builder 6 project and use OLE object to open Excel application in my project. I receive an error when uncheck "build with runtime packages" in project->options->packages.Otherwise if i check it or don't use ActiveX the application is working properly. Following is my code to opening excel application. ----------------------------------------------- Variant Excel=CreateOleObject("Excel.Application"); Excel.OlePropertySet("Visible", true); Variant Workbook=Excel.OlePropertyGet("Workbooks"); Workbook.OleProcedure("Add"); Variant sheet = Workbook.OlePropertyGet("Item", 1).OlePropertyGet("Worksheets") ; sheet = sheet.OlePropertyGet("Item",1); sheet.OlePropertySet("Name", WideString("TEST")); ---------------------------------------------- I test this ActiveX in Delphi at same conditions but it has no errors.Also i test other ActiveXs created in VC++ in my project and i receive similar errors.