Solved

"Invalid class reference" error executing control panel applet

Posted on 2004-09-25
2
757 Views
Last Modified: 2010-04-16
Started a Control Panel Application in Delphi 7, setting icon, title and description. Created a Form window and set unit1(applet module) to use unit2 (Form). Runs the following code on applet activation:

with TForm2.Create(nil) do
try
  ShowModal
finally
  Free
end;

Installed the applet and launched Control Panel which produces 3 identical application errors:

Exception EAppletException in module Project1.cpl at 00022DD2.
Invalid class reference for TAppletApplication.

Double-clicking the applet icon from control panel produces the error once more before displaying form2 successfully. I don't think I'm trying to do anything special here, so hopefully I am missing something really obvious!

Thanks, J.
0
Comment
Question by:seizures
2 Comments
 
LVL 6

Accepted Solution

by:
vadim_ti earned 250 total points
ID: 12152318
Your Form2 is autocreated in your Project file (DPR)
delete or comment  string

 Application.CreateForm(TForm2, Form2);

in your .DPR file
0
 

Author Comment

by:seizures
ID: 12153948
That did the trick. It was driving me mad so thank you very much.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
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…

816 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

8 Experts available now in Live!

Get 1:1 Help Now