Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Registering a TFrame class

Posted on 2003-03-12
3
Medium Priority
?
292 Views
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?
0
Comment
Question by:silverwolf
  • 2
3 Comments
 
LVL 9

Expert Comment

by:mocarts
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.
0
 
LVL 9

Accepted Solution

by:
mocarts earned 1500 total points
ID: 8128763
to use RegisterClass in DLL there is another solution provided by madshi:
http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_10304599.html
0
 

Author Comment

by:silverwolf
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
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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

564 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