Solved

Problem subclassing progress bar in ocx

Posted on 1998-06-10
2
189 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
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 50 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now