We help IT Professionals succeed at work.
Get Started

Visual Studio 2010 MFC ActiveX: basic method for defining OBJECT tag for ocx?

Last Modified: 2012-05-12
I'm just getting into developing MFC ActiveX controls in vs2010. Read: keep it simple, I'm practically clueless :)

I created a solution with an MFC ActiveX control project within it. Inside that I created a custom method. I created a CAB project inside the solution. But, I thought as a first step in testing I'd keep it simple and just install the OCX (that is, not have a signed CAB just yet). My site is classic asp and I'm planning on accessing the control using a form, by the way.

I wrote this object tag def:

<OBJECT ID="CXIDControlCtrl" height=0 width=0

So, what's next, cause this didn't work? (the page asks if I want to allow blocked content, I say yes, and it keeps asking over and over without actually installing it)

I probably need a classid, right? Where do I find that? Where do I find the correct version?

Do I need to do a separate MFC installation or is that packaged inside my ocx?

What else am I not getting?

(the ms site led me done a rabbit hole with articles with old tech and incomplete workflows. Any suggestions for cradle-to-grave instructions are also welcomed!)

Watch Question
Top Expert 2012
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE