Solved

Problem subclassing progress bar in ocx

Posted on 1998-06-10
2
190 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Turn a spreadsheet into a vba executable. 2 79
zeroMAx challenge 20 87
mapBully challenge 6 114
wordcount challenge 11 107
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

910 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

17 Experts available now in Live!

Get 1:1 Help Now