unk1911 has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I am new to the community. Not sure if this is the right place to post this question but I decided to try anyway.
I am trying to interface with the Bloomberg system to pull some data from it. The process works from a VBA script which invokes their API's. I am pretty sure the blpdatax.dll DLL implements the API calls.
I was trying to do the equivalent of the following VBA code in Perl:
Dim objDataControl As BLP_DATA_CTRLLib.BlpData
Set objDataControl = new BlpData
Thusly:
my $bloom0 = Win32::OLE->new('BLP_DATA_CTRLLib.BlpData');
my $bloom1 = Win32::OLE->new('BlpData');
When I run the code, I get the:
Win32::OLE(0.1502) "Invalid Class String" error
I made sure that the .dll was registered with regsvr32.exe. If anyone has any code samples or any ideas on how to get past this error, I would great appreciate it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Accessing Bloomberg API's via Win32::OLE
by Courage (Parson) on Jan 07, 2005 at 15:09 UTC | |
|
Re: Accessing Bloomberg API's via Win32::OLE
by holli (Abbot) on Jan 07, 2005 at 16:06 UTC | |
|
Re: Accessing Bloomberg API's via Win32::OLE
by jplindstrom (Monsignor) on Jan 07, 2005 at 15:52 UTC | |
|
Re: Accessing Bloomberg API's via Win32::OLE
by digger (Friar) on Jan 07, 2005 at 16:06 UTC | |
|
Re: Accessing Bloomberg API's via Win32::OLE
by unk1911 (Initiate) on Jan 14, 2005 at 18:45 UTC |