SonicMouser
February 3rd, 2005, 11:24 PM
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:
set *** = Server.CreateObject("TESTCTRL.TestCtrlCtrl.1")
dim rc
rc = ***.TestMethod()
the code in the OCX is this:
short CTestCtrlCtrl::TestMethod(){
return 0;
}
it crashes on the call to TestMethod()
please, oh please... what am i doing wrong.
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:
set *** = Server.CreateObject("TESTCTRL.TestCtrlCtrl.1")
dim rc
rc = ***.TestMethod()
the code in the OCX is this:
short CTestCtrlCtrl::TestMethod(){
return 0;
}
it crashes on the call to TestMethod()
please, oh please... what am i doing wrong.