Solved

"Invalid class reference" error executing control panel applet

Posted on 2004-09-25
2
764 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
[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 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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
Press three keys together and trigger a function 3 67
Firemonkey webbrowser scrollbars ? 1 57
How to make Sign in, using Clientdataset? 1 33
DBCtrlGrid, Delphi, Scroll 8 59
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

733 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