Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

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 ???


Comment on Re^2: DLL or VB to Perl
Select or Download Code
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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1090009]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2014-08-30 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (291 votes), past polls