Solved

OCX & Registry

Posted on 1999-01-25
18
279 Views
Last Modified: 2010-04-06
Hi out there!
I am working on an application, which uses an HTTP control for communicating with CGI scripts.
However, the program only works on my own computer, and others with Delphi installed - on others, I get the error: 'EOleSysError: ...Class not registered'.
If I remove the HTTP control, it works all right.
I suspect I have do register the HTTPCT.OCX in the registry. Am I right about that, and how exactly do I do that?
0
Comment
Question by:coxwace
  • 6
  • 5
  • 4
  • +1
18 Comments
 
LVL 13

Accepted Solution

by:
Mirkwood earned 70 total points
ID: 1363226
Download Filemon or NTFilemon from www.sysinternals.com
Start Filemon and now run the application that gives the error.
Filemon will show a trace. In this trace it will also show you which
file failed to open. That's the one you are missing.

Filemon can be redirected in a dos box using filemon > output.txt

Copy the missing files and register them if needed with regsvr32.exe in case of DLL/OCX files
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 1363227
Yes, you have to register this HTTPCT.OCX. If you use this control in a web page you can use Delphi's Web deployment options. Then other users viewing the page will be notified to download the control and it will be registered automatically.
If you just want to use this control on another computer then use "regsvr32 httpct.ocx" to register it.
0
 
LVL 2

Expert Comment

by:SupWang
ID: 1363228
Mirkwood: I dont think the Filemon can track those files.
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 
LVL 2

Expert Comment

by:SupWang
ID: 1363229
Hi, coxwace:
Maybe You need the following files: olepro32.dll, nmsckn.dll, nmorenu.dll, msvcrt40.dll, nmocod.dll, HTTPCT.OCX. If you use the InstallShield express for delphi4 or InstallShield Express 2.1, you set the olepro32.dll and HTTPCT.OCX to Self-register. Others not set to Self-register. Also you can use the Regsvr32.exe to register this OCX (copy all the files to the target computer <Windir>\system First, and then use "regsvr32 httpct.ocx".

Regards,SupWang
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1363230
Filemon can track those files!
0
 
LVL 2

Expert Comment

by:SupWang
ID: 1363231
Mirkwood:
Did you try to track the OCX? I had tried to track the mscomm32.ocx, but it false.
Regards,SupWang
0
 

Author Comment

by:coxwace
ID: 1363232
->MirkWood
Thanks for telling me about Filemon - I've often wondered if there was a way to see which files were accessed.
However, I've tried to run regsvr32 (I saw it mentioned in the VB section of Experts Exchange). It works well on my own computer, where the program already worked - that is, I could unregister the OCX and my program didn't work, I could register the OCX and then my program worked again - Only, on the other computer I tried it, on which my program did not work, regsvr32 doesn't work either.
Regsvr32 just says LoadLibrary returned an error 0x485 (and of course, I couldn't find anything about that anywhere).
Then what ??
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1363233
485 means that a device is missing.

Same solution you are missing another dll or ocx.
Run filemon on that machine.
0
 

Author Comment

by:coxwace
ID: 1363234
Thanks. I've already downloaded it, will try it when I get home.
Where did you find that ?
  Erik
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1363235
Where did I find what?
Filemon? Well I used it a long time ago with a lot of success
The error code. In the Microsoft header file winerr.h
0
 

Author Comment

by:coxwace
ID: 1363236
I meant the error code. Winerr, do I have that if I have BC++ 5, or can I have it ? Just if I meet another errorcode... (it's win9x, you know!)
0
 
LVL 13

Expert Comment

by:Mirkwood
ID: 1363237
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 1363238
Hi coxwace, thanx for the points.

Maybe you should take a look at 'InstallShield Express' which is on the Delphi 4 CD. This is a setup script builder. You can insert the required packages in the setup script. So the setup will automatically (un)install the needed files and register then.
Just try it. It could be a gift from heaven sometimes.

0
 
LVL 13

Expert Comment

by:Epsylon
ID: 1363239
Hey, why did Mirkwood get the points??????
0
 

Author Comment

by:coxwace
ID: 1363240
>Epsylon:
Guess it was because he was first ?
I don't know this system.
Anyway, using regsvr32 wasn't enough, because some dlls had to be registered first. I found out which by extracting text from httpct.ocx and by using FileMon.

About InstallShield:
When I found out that there are these ocx- and dll-things, maybe, maybe not needed to be installed first, I actually considered trying to find InstallShield - to do the dirty work for me. Thanks - now I know where to look. I'm going to have Delphi 4 C/S soon anyway.

Is it possible - without C/S - to write a program so that you could make a 1-1 chat-thing ? (And how?)
0
 

Author Comment

by:coxwace
ID: 1363241
Thanks for the error-list reference, too -
I like this place!
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 1363242
Without C/S you can try winsock/tcpip components.

http://sunsite.icm.edu.pl/delphi/
0
 

Author Comment

by:coxwace
ID: 1363243
Now about this regsvr32 OCX registration method, -
Is it possible to determine whether a component is already registered (for installation purposes) ?
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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