473,320 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

problem adding COMCTL32.OCX, COMDLG32.OCX and TABCTL32.OCX

25
hello, I want to ask if I could add Comctl32.ocx, Comdlg32.ocx and Tabctl32.ocx in my vb6 project using a code. I know I could just load that 3 ActiveX controls in my project by selecting project > components > then select these 3, one by one, from C:\Windows\System32, since these 3 is not present on the checklistbox provided in the controls tab. But when I select one, it takes so much time before it finish loading, then my project became unresponsive. I tried to wait for it to finish but still not working. I also tried to restart my computer then open just my project so that its the only application open, then tried doing it again but still failed. Please help. God bless.
Feb 3 '13 #1
2 2694
!NoItAll
297 100+
One of the disadvantages of interpreted code (and VB in particular) is that you must distribute all of the runtime dependencies along with your program. In any language, for that matter, you can wind up with dependencies that you must include with your product. My guess is that yours is a VB6 based product. Getting to the point; no, there is no proper way to install these dependencies from your code. You will need to create an installer that includes these, and properly registers them. The installer should also be smart enough to not install the ones you are distributing if newer ones already exist on the users computer. This is basically why you should not even attempt to put them in via your code - there are rules for installing them. If your end user has a product that needs a newer version of COMCTL32.OCX and you overwrite it with your older version that is bad. It is bad because while your program will work fine, you officially broke the users other program. Like DLL files, all OCX files are supposed to be fully backward compatible - so, in theory, a newer OCX will never break functionality supported in any previous versions. This is why you need to use a proper installer.
I don't know if it works with VB6 projects, but Installshield offers a limited free edition here:


Good luck!
Feb 3 '13 #2
kumsay
25
oops!! I already found these 3 in the components' control list: COMCTL32.OCX is the Microsoft Windows Common Controls 5.0 (SP 2), the COMDLG32.OCX is the Microsoft Common Dialog Control 6.0 (SP 3), and the TABCTL32.OCX is the Microsoft Tabbed Dialog Control 6.0. I didn't know these are the right names for these ActiveX controls. Sorry for bothering ^_^v
Feb 3 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Claire | last post by:
Sorry Ive added this twice (sortof) but if I'd added an addendum to the first one then this would probably have been ignored. This problem affects a ContextMenu attached to a NotifyIcon object. I...
0
by: Daniel Passwater via DotNetMonster.com | last post by:
I follow the steps to add the reference. When I browse to the .dll, select it, and click OK, I get a message box: "Add reference: Error adding reference to the project." Has anyone out there had...
0
by: Nikhil Patel | last post by:
Hi all, I am having a problem adding a reference in an ASP.Net project. I have written a custom control using a Web Control Library project. I compiled this project and generated a dll. Now...
1
by: Joel Byrd | last post by:
I am having a problem adding a node to the page. This works on other browser (Opera, Firefox, etc.), but not in IE. The following is the function to add the node: (the id "test_div" is a...
4
by: Saurabh Aggrawal | last post by:
Hi, I have made a dll and it is working fine in the debug build (as expected) but when I run it in the release build it is working strangely. For example, the dll saves the 10 properties on the...
3
by: J'son | last post by:
Guys, I have created a custom class that derives from DataList so that I can add some custom client side functionality into each new item row (<td>). Heres the class in its simplest form: ...
5
by: Steven Smith | last post by:
Hi, I'm trying to write a simple program to print invoices for people I do work for. I've got a form with textboxes for descriptions and amounts for items, and some code for printing the...
0
by: bostjanj | last post by:
Hi, I have a problem adding web service to project. I get the following error: There was an error downloading '/service.asmx'. The request failed with the error message: Object moved to...
2
by: darrel | last post by:
HI vb Wizards, good day, just wanted to ask if somebody there can help me iwth my problem. Am having difficulty in adding up records in my table, the table is in Microsoft Access format. It Like...
6
by: teddysnips | last post by:
I'm having trouble adding Access 2003 databases to Sourcesafe. I go to Tools, Sourcesafe, Add Database to Sourcesafe... at which point a message box appears saying "This database must be closed...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.