Article View: borland.public.cppbuilder.nativeapi
Article #3101Re: Dynamic package loading
From: Remy Lebeau (TeamB)
Date: Wed, 04 Oct 2006 22:18
Date: Wed, 04 Oct 2006 22:18
18 lines
1607 bytes
1607 bytes
"Pere Mateu" <pmateu@siam.es> wrote in message news:45242db4@newsgroups.borland.com... > I want to create a class in a C++ Builder 2006 package, and be > able to dynamically load and use it from another application. How > can I do it? I register the class in the package (in the DllEntryPoint), > but when I call GetClass() in the external application I get a null pointer. The class is being registered into the package's class list, not the application's class list. A Package is a DLL, and thus has its own data and memory that is separate from the application. To make them share the same class list, the application would have to enable the use of runtime packages in the Project Options. My guess is that you do not have that enabled. Gambit
Technical Details
Message-ID:
<452435bc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45242db4@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,cc7dce882f3cfdcc X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45242db4@newsgroups.borland.com> Subject: Re: Dynamic package loading Date: Wed, 4 Oct 2006 15:18:01 -0700 Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 69.169.4.232 Message-ID: <452435bc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1160000956 69.169.4.232 (4 Oct 2006 15:29:16 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail