I am currently using QTaxcontainer to use COM in a simple main file. I have an object: QAxObject *myComObj("the.Name"); which is initialized correctly as I successfully accessed some simple functions using: myComObj->dynamicCall("easyFun()"); Now I hava a more complex method to access which needs a BSTR, it is defined on the activeX side as: [id(2)] void ..
Category : activex
I have migrated an ActiveX MFC control from VC6 to VS2017-v141. It compiles in both 64 and 32 bit. I need for my host MFC application the 64-bit version of the control. The ActiveX component (XButton.ocx) registers without a problem, both as 32-bit and 64-bit versions (with the right regsvr32.exe of course). I have used ..
I have an Excel project with about 13 worksheets. It is a Finances and Budget program for my own home use and it serves primarily as a Set of forms and reports with some references to help. All activity is performed with VBA macros. The trigger for all activities (except 2) is via ActiveX command ..
I am developing an ActiveX Control for a MFC app. In this app I have a controle class: class MyControl : public COleControl and a CWnd class: class MyCWnd : public CWnd As well as other classes for the active x and an idl file… Within the MyControl class I want to open the window ..
I am trying to embed WMP in a newly created MFC dialog based application using Visual Studio 2019. These are the steps I’m following: Create new project Go to resource view and click Insert ActiveX Control Select Windows Media Player and click OK Change the newely created WMP element’s ID to something less general, like ..
I do not know how get return value from ActiveX(c++) OCX. 1.ActiveX function announce like this namespace MedicareComLib { [ClassInterface(ClassInterfaceType.None)] [Guid("6ED3D8A4-FD47-4ED8-A93F-96EB87B5D830")] [TypeLibType(TypeLibTypeFlags.FCanCreate)] public class OutpatientClass : IOutpatient, Outpatient { public OutpatientClass(); [DispId(1)] public virtual void Open(out string OutInfo); [DispId(2)] public virtual void Close(out string OutInfo); [DispId(3)] public virtual void GetPersonInfo(out string PersonInfo); [DispId(4)] public virtual ..
I need add a chart to my word document with some custom values for the chart, what I have managed to do is only add a new chart where the excel spreadsheet pop up and and add that into my document, but the problem is that I want to add those values programmatically, I searched ..
INTRODUCTION: I have created ActiveX control, using MFC ActiveX control wizard in Visual Studio 2019. Consuming it in C# WinForms app works well, I face no problems and control works as intended. I have tried to test the control by using it in MFC desktop app, by following these steps: Right-clicking on Dialog Editor in ..
I started using RAD Studio 10.4.1. I cannot create an ActiveForm when creating an ActiveX library in С++. The Form’s file is created, but not added to the library. In XE2, everything worked fine. Source: Windows Que..
In my project the software is an MFC application, and it uses a VSFlexGrid. The data comes with SetFlexDataSource. The documentation says I can sort the grid by columns with SetSort and SetColSort methods, but when I call SetSort I get an exception with this message: "Invalid action when bound." This exception is caught by ..
Recent Comments