Monks;
I am trying to start the Bentley Micrstation application on a PC where I have installed Perl 5.6 using Win32::OLE.
Currently I have:
$Bentley = Win32::OLE->new("MicroStationDGN.Application", 'Quit')
|| die "Could not start MicroStation DGN Application: ", Win3
+2::OLE->LastError();
Win32::OLE->WithEvents($Bentley, \&Event, "UserWorkspaceName");
Win32::OLE->WithEvents($Bentley, \&Event);
$Bentley->{visible} = 1;
Win32::OLE->MessageLoop();
And I get back an error about Invalid class string.
I am not really sure what I am doing and I am definatley in new territory on both fronts with the Microstation stuff as well as the Win32:OLE stuff so any help would be of great benifit to me.
The main reason I am doing this is that I am a Tester and the tools we have can not even invoke the Micrstation tool at all while what I have done in Perl has done things the tools we have can't and so they are looking to see what I can do.
Thanks for the help, Mike
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.