Using ActiveX Control Functions Without GUI (VC++)

  • Context: C/C++ 
  • Thread starter Thread starter chickenwing71
  • Start date Start date
  • Tags Tags
    Control Functions Gui
Click For Summary

Discussion Overview

The discussion centers around the use of ActiveX controls within a Windows Visual C++ console application, exploring the feasibility of calling their functions without a graphical user interface. Participants share their experiences and challenges related to this topic, including potential workarounds and alternative approaches.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant expresses the need to use an ActiveX control in a console application and seeks guidance on how to achieve this, noting their experience with MFC applications.
  • Another participant mentions ongoing research into the topic and indicates that they have multiple projects that could benefit from a solution.
  • A different participant suggests that the ActiveX control may need to be run in a Windows program rather than a console application, implying potential limitations.
  • One participant describes their workaround, which involved creating an MFC application to interface with the ActiveX control, despite acknowledging the bloat of the solution and expressing a desire to eventually port the code to Linux.
  • Another participant is exploring the use of Flash UI for editing within a console application, indicating a shift in approach.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the feasibility of using ActiveX controls in a console application, with some suggesting limitations while others propose alternative methods. The discussion remains unresolved regarding the best approach.

Contextual Notes

There are limitations related to the specific ActiveX controls in question and the requirements for their operation, which may depend on the application type (console vs. GUI). Additionally, there are unresolved issues regarding the implementation details and potential dependencies on Windows-specific features.

chickenwing71
Messages
41
Reaction score
0
I need to use an ActiveX control (and call on it's functions) from within a Windows Visual C++ console application. I can do what I need to with a dialogue-based MFC Windows application with a gui, but can't find any information on loading a control/calling it's functions from a console application. If this is possible, it would be immensely helpful on my current project. I'm using Visual Studio 2010 Professional, by the way. Any ideas?
 
Technology news on Phys.org
BUMP! I'm still researching it but I have two projects that would benefit from this. I'll keep you updated with my progress if any.
 
Without knowing what controls you're talking about, it's hard to say, but the ActiveX control might require that it be run in a Windows program rather than a console app.
 
Yeah, I ended up working around it. I was going to interface with it directly and write my own driver wrapper, but because of Windows USB enumeration issues, I just gave up.

So now I just built a simple mfc app, but slipped in all my code before it draws the window, so even if it's bloated and such, it works. I'm just going to go back at some point and port it all to linux.
 
I'm looking into using Flash UI for editing things in a console app.
 

Similar threads

Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
3
Views
1K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 6 ·
Replies
6
Views
12K