Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^2: DLL or VB to Perl

by joago (Initiate)
on Jun 16, 2014 at 08:52 UTC ( #1090009=note: print w/replies, xml ) Need Help??

in reply to Re: DLL or VB to Perl
in thread DLL or VB to Perl

I have made VBS:

Set objLib = CreateObject("CortalConsors.TradingAPI.VersionInfo") name = objLib.GetAssemblyFullname() MsgBox name

The VBScript Converter translate this:

#!perl use Win32; use Win32::OLE; $objLib = Win32::OLE->new('CortalConsors.TradingAPI.VersionInfo'); #### Error: Can't resolve progID CortalConsors.TradingAPI.VersionInfo $name = $objLib->GetAssemblyFullname(); Win32::MsgBox($name);

The VBScript work fine --> The perl not !!

I have install "SystemScripter" --> This tell me (If I want load the

COM-Object 'CortalConsors.TradingAPI.VersionInfo'):"Typelibrary Missing"

and can not resolve the details from COM.

In "SystemScripter" can I give the path of TLB by hand and it's work

Both (DLL and TLB) are in registry --> maybe not right !?

What can I do in perl ???

Replies are listed 'Best First'.
Re^3: DLL or VB to Perl
by Anonymous Monk on Jun 16, 2014 at 19:33 UTC

    In "SystemScripter" can I give the path of TLB by hand and it's work...

    What does that mean? What does that mean in terms of API calls? Why don't you try a "class id" instead?

      I have in "SystemScripter" the list of all registered COM-Objects. I can make program lines with drag and drop. With doble click by the COM-Object its open a window with desccription of the object. For my object the "SystemScripter" tell me "the TLB is missing". The new window has 2 lines with empty information for the TLB (CLSID and adress) at the end of window and the next window with the information from inside the COM (class,method,interfaces ...) not work. If I fill the adress line for the TLB by hand then I can open this information and give it to the program lines with drag and drop.

      I have with "class id" the same problem as with the name:the COM can not open and I have no idee in which manner I sold give the CLSID from TLB to perl.

      NEW INFORMATION: If I want add the COM in old SDK then I have:

      No reference on <assembly> could be added. The ActiveX-type library <link to the library> was exported from a .NET-Assembly and cannot be added as a reference. Add, instead, a reference to the .NET-Assembly.

      In which manner can I do this in perl ??

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090009]
james28909 doesnt drink much alcohol
james28909 does enjoy blazing up though
james28909 also walks around hunting for his cell phone while using its flashlight function

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (1)
As of 2018-05-20 16:21 GMT
Find Nodes?
    Voting Booth?