Registering a TFrame class

Posted on 2003-03-12
Medium Priority
Last Modified: 2010-04-04
Has anyone tried to use RegisterClass or RegisterClasses with a TFrame type class?  My attempts to do so in a package seem to fail.  GetClass in a host app returns a nil upon naming the TFrame type class.  My code works with a TForm, but not a TFrame.  Any ideas?
Question by:silverwolf
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

Expert Comment

ID: 8122345
the problem is in two instances of classes.pas unit (and respectively two instances of list of registered classes)you should use your package as runtime package for your exe and place use unit with RegisterClass(..) in your exe project. or, if you use dynamicaly loadable package, then you should build your exe and bpl with vcl runtime package both.

wbr, mo.

Accepted Solution

mocarts earned 1500 total points
ID: 8128763
to use RegisterClass in DLL there is another solution provided by madshi:

Author Comment

ID: 8179124
After finally figuring out the missing switch (to build with packages in the project options), everything began to work.  The most elegant solution and the one I will be using is based on an article by Fernando Vicaria.  Thanks for the push!  -Silverwolf

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

801 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