Closed
Bug 5261
Opened 25 years ago
Closed 24 years ago
M4 binary control doesn't work in VB5
Categories
(Core Graveyard :: Embedding: ActiveX Wrapper, defect, P3)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: fornixon, Assigned: locka)
Details
In Visual Basic 5, the control loads on the form properly. However when the
".Navigate" event is called, VB returns run-time error 5: "Invalid Procedure or
Call Argument". This happens in the sample VBrowse program, even though the IE
control works fine.
In a related vein, if you dump the Mozilla Control into the "Browser" form that
comes with VB5, and replace the IE control with the Mozilla control, the control
doesn't seem to respond to the ".Navigate" command at all, nothing happens.
It does work, but not as advertised! You need to include the "optional"
arguments, eg:
MozillaBrowser1.Navigate2 "http://www.mozilla.org/", 0, "_main", "", ""
works fine.
The problem is caused by an invalid test on the second argument. If this
argument is omitted, the Navigate returns E_INVALIDARG that VB reports as an
error.
The workaround is to add 0 as the second arg.
Comment 3•25 years ago
|
||
fornixon@globalserve.net is now the-enigman@home.com. CC'ing the new address to
ensure I am notified of all changes to this bug.
This bug is mouldy.
The situation now is that the control has a hack around problems in NS_InitXPCOM
that make it work in VB. Additionally the problems with optional arguments with
Navigate have been fixed for quite some time.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Updated•13 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•