Stan R. Guest
|
Posted: Thu Jul 06, 2006 8:10 am Post subject: Loading com dll? |
|
|
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 |
|