Using ActiveX Control Functions Without GUI (VC++)

  • Context: C/C++ 
  • Thread starter Thread starter chickenwing71
  • Start date Start date
  • Tags Tags
    Control Functions Gui
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 4K views
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?
 
Physics 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.