Solved

Class registration

Posted on 1998-08-03
2
241 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
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now