Subject: | No error for bogus ProgID |
If a ProgID is mispelled, you get an IE control, not an error message. For instance, the below script prints out the browser control's methods.
use Win32::GUI;
use Win32::GUI::AxWindow;
# Main Window
$Window = new Win32::GUI::Window (
-name => "Window",
-title => "test",
-post => [100, 100],
-size => [800, 800],
);
# Add a WebBrowser AxtiveX
$Control = new Win32::GUI::AxWindow (
-parent => $Window,
-name => "Control",
-control => "Foo",
# -control => "{932D4289-8C7C-45F7-A7C8-70D562CE83D3}",
# -control => "{8856F961-340A-11D0-A96B-00C04FD705A2}",
-pos => [0, 0],
-size => [400, 400],
);
print join( ", ", $Control->EnumMethodName() ), "\n";