Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Problem subclassing progress bar in ocx

Posted on 1998-06-10
2
Medium Priority
?
195 Views
Last Modified: 2013-11-20
I have created an activex (ocx) in vc5 with
default wizard options except it subclasses
the progress bar common control.

I tested this control in VB's IDE and it
worked correctly. However when I compile
the VB program I get error 0x80004005. I
found I could get around this by including
a hidden progress bar on the form.

I have traced the error in VC and it seems
that the controls window is not created.

Has anybody seen a similar problem?

Is there some kind of initialisation or
registering required for the common
control dll?

0
Comment
Question by:chris_a
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1317828
Try adding InitCommonControls() in your application's constructor.


0
 
LVL 2

Author Comment

by:chris_a
ID: 1317829
Spot on, how could I have missed it?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question