|
-
February 4th, 2005, 12:24 AM
#1
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.
-
February 4th, 2005, 02:07 PM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|