Link to home
Start Free TrialLog in
Avatar of Aleks
AleksFlag for United States of America

asked on

Help calling a function

I need to call a function from a button.

The function is:

Set QFEBridge = CreateObject("QFEBridgeTest. clsQuickBridge ")
Result = QFEBridge.CallQuick()

What it will do is (commented for now):

'Check for errors in running the Quik! Forms Engine
 If objQFE.Results.ErrorFlag Then
 strHtml = "ErrorFlag = 1"
 Else
 'Redirect to the HTML file
 'Dim objFile As QuikFormsEngine.QuikFormOutput
 'For Each objFile In arrFiles
 ' Dim strFileName As String = objFile.FullName
 ' If strFileName = "" Then
 ' strFileName = "ERROR! No forms were generated."
 ' Response.Write(strFileName)
 ' Else
 ' Response.ContentType = "text/html"
 ' Response.Redirect(strFileName)
 ' End If
 'Next

 'Write the HTML file out as a response

The image that should call the function is:

<IMG border=0 alt="Open Form" src="../../../Images/icedit.gif" width=16 height=16>

How can I add code to that image so that it calls the function which should open a page and parse some code.
ASKER CERTIFIED SOLUTION
Avatar of Big Monty
Big Monty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aleks

ASKER

page.asp has the attached code but returns an error saying that the page could not create the active X

Error Microsoft VBScript while executing error '800a01ad'

The ActiveX control could not create object: 'QFEBridgeTest. clsQuickBridge '

/bluedot/Intranet/Cases/Forms/page.asp, line 7

Any clues ?
Avatar of Aleks

ASKER

Microsoft VBScript runtime error '800a01ad'

ActiveX component can't create object: 'QFEBridgeTest. clsQuickBridge '

/bluedot/Intranet/Cases/Forms/page.asp, line 7


I tried registering the .dll but it is not registering it, I get an error that the entry point could not be found.
my guess is a permissions issue, make sure whatever account that runs the site has access to where the dll resides
Avatar of Aleks

ASKER

We fixed it last night, thanks for the help !