Catastrophic Error on Custom OCX
I created an ocx that i want to use within my ASP script. No matter what i do, it errors out with a Catastrophic error when i call any of the methods and/or properties.
I created a new OCX that has one method that just returns a short int... and still the same error. The OCX works in VB6, but not ASP. what am i not doing first before i call the methods.
this is how im calling it in ASP:
Code:
set *** = Server.CreateObject("TESTCTRL.TestCtrlCtrl.1")
dim rc
rc = ***.TestMethod()
the code in the OCX is this:
Code:
short CTestCtrlCtrl::TestMethod(){
return 0;
}
it crashes on the call to TestMethod()
please, oh please... what am i doing wrong.
Re: Catastrophic Error on Custom OCX
ok.. i think i figured it out... after searching the web, no one seems to be using OCX's to create ASP components. They either use ATL, or Visual Basic's ActiveX DLL.
I figured OCX's would work since when i did Server.CreateObject("OCX.Classname") i would get a list of methods and properties that the OCX possesed.
live and learn