Article View: borland.public.cppbuilder.nativeapi
Article #3116Re: Dynamic package loading
From: Pere Mateu
Date: Wed, 11 Oct 2006 22:09
Date: Wed, 11 Oct 2006 22:09
40 lines
1927 bytes
1927 bytes
Problem solved!!!
It worked ok after registering the class like this:
-----------------------------
void Init()
{
Classes::RegisterClass(__classid(TForm1));
}
void Finalize()
{
Classes::UnRegisterClass(__classid(TForm1));
}
#pragma startup Init
#pragma exit Finalize
-----------------------------
Thanks very much,
Pere
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> escribi๏ฟฝ en el mensaje
news:45243d18@newsgroups.borland.com...
>
> "Pere Mateu" <pmateu@siam.es> wrote in message
> news:45242db4@newsgroups.borland.com...
>
>> I register the class in the package (in the DllEntryPoint)
>
> Incidently, you should not be calling RegisterClass() from DllEntryPoint()
> directly. Each of your that wants to register classes should be exporting
> its own Register() function instead. The VCL automatically calls the
> Register() functions when loading the package. Call RegisterClass() from
> inside of Register().
>
>
> Gambit
>
>
Technical Details
Message-ID:
<452d6ba5$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45242db4@newsgroups.borland.com> <45243d18@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cc7dce882f3cfdcc X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Pere Mateu" <pmateu@siam.es> Newsgroups: borland.public.cppbuilder.nativeapi References: <45242db4@newsgroups.borland.com> <45243d18@newsgroups.borland.com> Subject: Re: Dynamic package loading Date: Thu, 12 Oct 2006 00:09:41 +0200 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 81.203.224.126 Message-ID: <452d6ba5$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1160604581 81.203.224.126 (11 Oct 2006 15:09:41 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail