Article View: borland.public.cppbuilder.nativeapi
Article #3373Loading com dll?
From: Stan R.
Date: Thu, 06 Jul 2006 04:55
Date: Thu, 06 Jul 2006 04:55
35 lines
2210 bytes
2210 bytes
Hello. I am developing a Com DLL in Visual Studio 2003 .NET, more
specifically, using the Perl Dev Kit add on which allows me to compile
Perl 5 code into EXE, Services, and DLLs (using COM.)
In the example provided with the PDK, the Com Object is invoked (in a
sample vbScript) as so:
Dim objMyControl
Set objMyControl = CreateObject("My.Control")
This of course works only after running the `regsvr32 MyControl.dll` at
the command line.
So my question is, how do you load a COM dll in BCB (using BCB 5 Ent) ?
Also, is it possible ot load the DLL straight in the program without
having to register it with regsvr32?
If not, then what is the equivilent method for the VBS code above?
I really hope this can work because if I can access Perl function in
this way it will save me a lot of coding for a text processing
application i'm writing. I have a whole slew of routines writen in Perl
that handle the massive jobs with ease, so you can see why I wanted some
way to use them in my C++/Win32 applications.
P.S.
I found BCB to be a great app, always loaved it, but I could never for
thel ife of me understand why the VCL didn't include any RegEx? I know
about the PCRE Lib for C++, but if you've ever used RegEx in Perl 5, you
will groan in anguish looking at equivilent coding done with PCRE :-)
--
Stan
Technical Details
Message-ID:
<44ac97af@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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9d4ddadf1c6a4bb8,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Stan R." <none@none> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Loading com dll? Date: Wed, 5 Jul 2006 21:55:12 -0700 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 NNTP-Posting-Host: 66.234.219.101 Message-ID: <44ac97af@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1152161711 66.234.219.101 (5 Jul 2006 21:55:11 -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