style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"heinrich" <Hi,
href="mailto:hschuler@ford.com">hschuler@ford.com> wrote in message
href="news:f19f7da.-1@WebX.maYIadrTaRb">news:f19f7da.-1@WebX.maYIadrTaRb...
I am new to Autodesk Express Viewer (AEV) and previously used Whip to
display and control drawings in HTML pages. I had written some very simple
functions in Javascript to read e.g. drawing extents. Looking at the AEV
interface I find a problem since some procedures are called by reference to
return something. I would have to call a procedure with a pointer as parameter
which is impossible in Javascript.
Unfortuntely, I am not familiar with VBScript. Can it be done with it? The
example below explains the problem:
This piece of code should react to a
mouse movement over a hyperlink. The corresponding interface function of AEV
is defined as
HRESULT OnOverURL (int nX, int nY, IDispatch *pLink, IDispatch *pHandled)
The drawing is embedded into Internet Explorer using the following code:
The result is that the Message Box pops up, i.e. the event is trapped
correctly. I can also access the x,y position. The "IDispatch.Show" call
(without parameter) also works and changes link color. However, the call
"IDispatch.Count( cnt )" produces an error: "Wrong number of arguments or
invalid property assignment". Obviously this is because this procedure expects
a call-by-reference to return a result. Can this be done using VBScript of
even Javascript? Who knows a solution or the correct syntax. Thank you for
your help!
Heinrich