For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > December 2006 > PerlCtrl and C++









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PerlCtrl and C++
AJ

2006-12-22, 8:02 am

How come that a dll created with Perlctrl and afther that successfully
registered with regsvr32 does work with a sample VBscript but does not
work with c++ or vc++.

My perl code is:

package Hello;

sub Hello {
return "Hello Alex";

}

=pod

=begin PerlCtrl

%TypeLib = (
PackageName => 'Hello',

# DO NOT edit the next 3 lines.
TypeLibGUID => '{E91B25C6-2B15-11D2-B466-0800365DA902}',
ControlGUID => '{E91B25C7-2B15-11D2-B466-0800365DA902}',
DispInterfaceIID=> '{E91B25C8-2B15-11D2-B466-0800365DA902}',

ControlName => 'HelloWorldControl',
ControlVer => 1,
ProgID => 'Hello.World',
DefaultMethod => '',

Methods => {
'Hello' => {
RetType => VT_BSTR,
TotalParams => 0,
NumOptionalParams => 0,
ParamList =>[ ]
},
}, # end of 'Methods'

Properties => {
}
, # end of 'Properties'
); # end of %TypeLib

=end PerlCtrl

=cut

How can i call this function from c++ or vc++?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com