Solved

(OLE) Class not Registerred Error

Posted on 1998-08-24
22
369 Views
Last Modified: 2010-04-04
I wrote a program that transfers datagrams via UDP components. However, when I create a distributable with InstallShield and install on a masjien without Delphi it gives the following Error:"Exception EOLESysError in module PROJECT1.EXE at 0002D1E5. Class not Registered." I have the suspicion that it is actually a .DLL file not included by IS. Does someone know wich DLL it is or have another solution?
0
Comment
Question by:Deep Diver
[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
  • 12
  • 10
22 Comments
 

Author Comment

by:Deep Diver
ID: 1337609
Adjusted points to 100
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337610
deep driver,

which components are you using? Are you using the components with Delphi? I believe they are ActiveX controls so you've to install them on the other machine too. In my opinion, it's better to use F.Piettes freeware components, they are not ActiveX and don't change in every delphi version. http://www.rtfm.be/fpiette/indexuk.htm

Regards, Zif.
0
 

Author Comment

by:Deep Diver
ID: 1337611
Didnt ask for an opinion Zifnab, asked for a solution.... :o)
It is the UDP component that came with Delphi 3 Profesional.
0
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 
LVL 8

Expert Comment

by:ZifNab
ID: 1337612
Deep Driver,

 then read my first sentence... If you use these components, you've to register them on the remote computer too. These are ActiveX components, so they have to be registered.

ZiF.
0
 

Author Comment

by:Deep Diver
ID: 1337613
Didnt ask for an opinion Zifnab, asked for a solution.... :o)
It is the UDP component that came with Delphi 3 Profesional.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337614
Deep Driver,

Here is what you've to do (see also in the help of these components) :

To install your package with support for NetManage ActiveX controls on a target system, follow the procedures below.

Step1. Search for previously installed versions.

Your installation process should search for previous versions of the controls on the target machine. The purpose of this is to verify that the software you are installing is the latest.
The NetManage and Microsoft files should be found in the Windows system directory of the target machine. For Windows 95, this directory would be %windir%\system. For Windows NT, this directory would be %windir%\system32.
You can use Microsoft’s VerFindFile() function to determine if the ActiveX files exist on the target machine.

If files are found, go on to Step 2; otherwise, go to Step 3.

Step 2. Compare file versions

If step 1 found some of the NetManage files to installed already on the target machine, you will need to check the version of both the files you are installing and the files already on the machine. We suggest you replace the files on the target machine if the files you are installing are newer.
Microsoft’s VerInstallFile() function can be used to install files based on the version information. This function checks the file version and can also install the file.

If the files on the target machine are older, go to Step 3; otherwise, go to Step 4.

Step 3. Install files

As described in Step 1, the NetManage redistributable files should be installed in the Windows system directory.

Step 4. Registration

You must register the common DLL for the ActiveX controls. After this file is registered, you may register some or all of the controls, depending on your applications requirements.
To register these controls, run the following commands from your installer.

REGSVR32 /s NMOCOD.DLL
      REGSVR32 /s FTPCT.OCX
      REGSVR32 /s HTML.OCX
      REGSVR32 /s HTTPCT.OCX
      REGSVR32 /s HTTPSR.OCX
      REGSVR32 /s INETCT.OCX
      REGSVR32 /s INETSR.OCX
      REGSVR32 /s MIME.OCX
      REGSVR32 /s NNTPCT.OCX
      REGSVR32 /s POPCT.OCX
      REGSVR32 /s SMTPCT.OCX
      REGSVR32 /s WCGI.OCX
      REGSVR32 /s WINSCK.OCX

You must run REGSVR32 on NMOCOD.DLL before you register any other OCX. You need not register more OCXs than those used in your control. For example, if you only used FTPCT.OCX, you only need to register NMOCOD.DLL and FTPCT.OCX.

Regards, Zif.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337615
sorry for misspelling your name, I now see it's Deep Diver. Sorry.
0
 

Author Comment

by:Deep Diver
ID: 1337616
TNX ZIFNAB!
I`m currently at work so I will only be able to test it tonight at home.
0
 

Author Comment

by:Deep Diver
ID: 1337617
no problem zitnab :o)))))
0
 

Author Comment

by:Deep Diver
ID: 1337618
Good morning ZifNab!....or maybe not so good....
I tried copying the DLL and winsck.ocx and registering them as you sayd, then restarted, but it stil gives the same error. Any other ideas?
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337619
which components do you use?
0
 

Author Comment

by:Deep Diver
ID: 1337620
Only a TUDP, a normal text box and a normal press-button (Im stil experimenting to see how the component works).
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337621
mmm, very strange.... you've followed every step in previous comment? And only installed the OCX's needed for TUDP?

1. Netmanage Active X is installed on other computer?
2. Checked the versions?
3. installed the common DLL (Firstly)?
4. installed the OCX's for TUDP (Secondly)?

Strange. Well, then I'm very sorry, can't help you further... because I don't use these components... I use F. Piette's (like you already know). Can't you even look and try them? You are in a testing fase... and there are very easy to use. Zif.
0
 

Author Comment

by:Deep Diver
ID: 1337622
Let me just get something clear....When you talk about the Netmanage ActiveX - files, you are talking about NMOCOD.DLL and WINSCK.OCX (in my case)....or did I mis-understand(no other files required)?
0
 

Author Comment

by:Deep Diver
ID: 1337623
I searched for these 2 files in my windows registry and could not find any entry on them. Is regsvr32 suppose to make entries in it? (Maybe I can make those entries manually 2 see if the problem lies with my version of regsvr32).
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337624
Deep Diver,

 You've to copy the needed files NMOCOD.DLL and WINSCK.OCX (TUDP uses only this one? I don't know) to the system or system32 (depending on OS) directory. Then you've to use regsvr32 to put some entries in the windows registry. At least, that's what I can make up of it after reading there help...

Regards, Zif.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337625
yes, you should see some entries in your directory... search yourself for the entries in your directory.
Zif.
0
 

Author Comment

by:Deep Diver
ID: 1337626
I could find no entries on the target masjien`s win.-registry. I ommited the "/s" and found that it actually gets an error:
"LoadLibrary("nmocod.dll") failed.GetLast Error returns 0x00000485." Do u mind telling me where you got this info?, I would love to read about it myself. Maybe you could tell me what entries its suppose to create and I can enter them manually.....corruption of win-registry is not a problem Ive already formatted the HD and installed only win95.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1337627
Deep driver,

the information I gave can be found in the HelpFile of Netmanage. Search for NetManage (of the components!) in your registry. I searched for it in my registry and found the entries :

HKEY_CLASSES_ROOT\CLSID\{B1DC83C0-5298-11CF-AAA2-0020AF2CEE5E} ->
netmanage winsock general property page
HKEY_CLASSES_ROOT\CLSID\{B1DC83C0-5298-11CF-AAA2-0020AF2CEE5E}\InprocServer32 --> c:\winnt\system32\winsck.ocx

etc...

Zif.
0
 

Author Comment

by:Deep Diver
ID: 1337628
To All it may concern
We have solved the problem. Zifnab, U were correct!
The reason why the regsvr32.exe did'nt work, was because it needed some other DLLs to register NMOCOD.DLL:
  NMSCKN.DLL
  NMORENU.DLL
  MSVCRT40.DLL
  OLEPRO32.DLL
If you copy these files with NMOCOD.DLL, WINSCK.OCX & REGSVR32.exe to the target computer's \windows\system directory and register NMOCOD.DLL and then WINSCK.OCX with
"REGSVR32 <Filename>" the program works.

Zifnab, can u please give a dummy answer so I can award you the points.
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 100 total points
ID: 1337629
Hi Deep Diver,


Following is a dummy answer :



 This is a dummy answer :-)




For real solution, ask a new question :-), the points you gave for looking at this answer, you LOOSE :-). hehe.

No, serious, look at the comments, there you'll find a solution.


Regards, ZiF.


PS. Not convinced in using F.Piette's components?
0
 

Author Comment

by:Deep Diver
ID: 1337630
No, not cinvinced Zifnab. The UDP-components is much easier for me...much less fancy stuff....

many tnx Zifnab
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses
Course of the Month4 days, 23 hours left to enroll

636 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