"Class Not Registered". How to avoid this error?

I have a big problem!

I am a new Delphi's user and I want to write a program which takes the Windows Dial-up password and send it to my e-mail (I know that it's illigal)

I am using the mpr.dll file to get the cached Windows Password and a TCP control to send it via SMTP
So the program works on my PC but when I gave it to a friend of mine it is responding an error: "Exception EOleSysError in moudle mailer.exe at 0003F251. Class not registered".

I try to remove some of the units but the error still occur.

Can you help me how to avoid this error?
naskomAsked:
Who is Participating?
 
SupWangConnect With a Mentor Commented:
Thanks for your points, hehe, not get points for a long time. :-)

Regards, SupWang
0
 
kretzschmarCommented:
hi,

could be that no delphi-class is meant by this message. i guess more that an ole-registration is missed in the os of the other pc.

meikl
0
 
naskomAuthor Commented:
Have you got any idea how to fix the problem?
I think that a DLL is missing but I can't find out its name
I tryed with Windows Quick Viewer but all DLLs there exists on the other machine
0
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

 
SupWangCommented:
Hi naskom,
You need the following files: olepro32.dll, nmsckn.dll, nmorenu.dll, msvcrt40.dll, nmocod.dll, smtpct.ocx.

If you use the InstallShield express for delphi4 or InstallShield Express 2.1 to install your program, you need to set the olepro32.dll and smtpct.ocx to Self-register. Others dont set to Self-register.

If you want to use the Regsvr32.exe to registering. Copy all the dlls and ocx to the <windir>\system and then run Regsvr32 nmocod.dll and Regsvr32 smtpct.ocx.

Regards, SupWang

0
 
naskomAuthor Commented:
Hym
Sorry SupWang but this didn't work
I gave to my friend all this files (well only 4 of them cause he has the other 2).

And the same error occurs again

Any other good ideas?

Maybe he needs others OCX or DLL files?
0
 
SupWangCommented:
Hi naskom,
What's the OCXs(ActiveX Controls name) you are using?
0
 
SupWangCommented:
Also, Had you friend run the Regsvr32.exe or the InstallShield to registering the OCX?
0
 
naskomAuthor Commented:
I am using TCP Control (TTCP) (if that's your question)
yes
he has regsvr32.exe

he register the files which you told me but this error still occurs
maybe I can register the other 4 files?

I saw in the Delphi's help that TCP is using nmorenu.dll
0
 
naskomAuthor Commented:
I am using TCP Control (TTCP) (if that's your question)
yes
he has regsvr32.exe

he register the files which you told me but this error still occurs
maybe I can register the other 4 files?

I saw in the Delphi's help that TCP is using nmorenu.dll
0
 
SupWangCommented:
Just use the TCP OCX?

OK. Change the smtpct.ocx to FTPCT.OCX
------------------------------------>
You need the following files: olepro32.dll, nmsckn.dll, nmorenu.dll, msvcrt40.dll, nmocod.dll, FTPCT.OCX

If you use the InstallShield express for delphi4 or InstallShield Express 2.1 to install your program, you need to set the olepro32.dll and FTPCT.OCX to Self-register. Others dont set to Self-register.

If you want to use the Regsvr32.exe to registering. Copy all the dlls and ocx to the <windir>\system and then run Regsvr32 nmocod.dll and Regsvr32 FTPCT.OCX
------------------------------------<

Regards, SupWang



0
 
SupWangCommented:
Hope that can helps.
I must go to sleep now, It's 1:00AM now. and I will look this question after 8 hours.
0
 
naskomAuthor Commented:
It doesn't work again
It still reports the same error
and BTW my fr. can't register the file FTPCT.OCX
He got this error:
"LoadLibrary("ftpct.ocx") failed.
GetLastError returns 0x00000485"

and still the same problem occur

maybe he needs other files? or the problem is in the registration?

I hope you will help me
0
 
SupWangCommented:
Hi naskom,
Try this:
copy the following files to <windir>\system
-------------------->
olepro32.dll, nmsckn.dll, nmorenu.dll, msvcrt40.dll, nmocod.dll, FTPCT.OCX, FTPCT.oca,
 Regsvr32.exe, Nmftpsn.dll
--------------------<

then run   Regsvr32 FTPCT.OCX

I had tested it. and I had to reinstall my window to do this test. :-(

if use the InstallShield for delphi to install your program will better.

Regards, SupWang
0
 
naskomAuthor Commented:
Ok
I will test it later
But his RegSvr32.EXE is already in <wind>\system
0
 
naskomAuthor Commented:
and where can I download this Sh.Wizard from?
I think is is now included in my Delphi package
0
 
naskomAuthor Commented:
It doesn't work again
The file ftpct.ocx is regsitered now but still the same error occurs
Is there a solving to this question?
0
 
SupWangCommented:
Do you means that the ftpct.ocx already regsitered success?

Do you have use other OCXs?

Can you make a sample test? make a new project and just use the ftpct.ocx...

If you want, send your program to me. ddc@188.net

Merry Xmas!

Regards, SupWang
0
 
naskomAuthor Commented:
Sended!!!
and can you tell me where can I find Install Shield from?
0
 
naskomAuthor Commented:
Can you tell me how to send e-mail from Delphi application?
0
 
SupWangCommented:
You can use the windows backup program or some Zip tools to make you project to a file and then send the file.

About the Install Shield, What's the delphi version you are using? D3/D4 have the install shield Express, I think maybe the D5 also have it. run the install.exe of your delphi cd then choose install the Install Shield Express.
0
 
SupWangCommented:
Oh! I was wrong. (I had not installed the Internet controls before this, so...). Sorry!
 Should use the Winsck.ocx !

Try this:
copy the following files to <windir>\system
-------------------->
olepro32.dll, nmsckn.dll, nmorenu.dll, msvcrt40.dll, nmocod.dll, Winsck.ocx,
--------------------<

then run   Regsvr32 Winsck.ocx

If you use the Install Shield Express, you need to set the olepro32.dll and Winsck.ocx to
 Self-register. Others don¡¯t set to Self-register.

Regards, SupWang
0
 
naskomAuthor Commented:
Yes
I think that will do the jib
Please put this think as answer again to increase your points :)
0
 
naskomAuthor Commented:
It is not tested on the other PC
I just rename the winsck.ocx on my PC
and this error occur here now :)
So I hope it will do the job
If not
I will send you e-mail
ok?
0
 
SupWangCommented:
sure.

Regards, SupWang
0
All Courses

From novice to tech pro — start learning today.