Solved

Class registration

Posted on 1998-08-03
2
256 Views
Last Modified: 2010-04-04
I'm writing a small mail client, using the POP component that comes with Delphi 3 pro.

When I run the application on a computer without Delphi I get an EOleSysError saying : Class not registered.

What is not registered and how do I do that ?
0
Comment
Question by:JustinCase
[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
2 Comments
 
LVL 4

Accepted Solution

by:
BoRiS earned 150 total points
ID: 1359588
justincase



    You need to register the ocx in the background for the app to work...maybe on the FormCreate procedure...

    use the Regsrv32.exe file with winexec or shellexecute
    the usage is like this...
         
    regsvr32 [/u] [/s] <DLLname or OCXname>
                                /u - if you want to unregister COMponent
                                /s - no message (silent) //use this param for behind the scenes...

the ocx you need to register is popct.ocx, copy the ocx with your app and then register it on the new machine...
0
 
LVL 3

Expert Comment

by:vladika
ID: 1359589
You can use
procedure RegisterComServer(const DLLName: string);

from Delphi 3\Source\RTL\SYS\comobj.pas

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Downloading email attachments 2 85
Create a path if not exists 7 108
Delphi: ForceDirectory plain function 7 50
DBCtrlGrid, Delphi, Scroll 8 58
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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