|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
vb active-x dll won't work in asp page
I can't get an active-x dll created with vb to work in an asp page.
The dll's name is Test.dll. The class name is clsTesto. I've got a public function GetVal that simply passes a value back: Public Function GetVal() GetVal = "Hello World" End Function In the ASP page I have this: set x = CreateObject("Test.clsTesto") Respose.Write x.GetVal set x = Nothing |
|
#2
|
||||
|
||||
|
What happens when you run your ASP page? Are you getting an error?
btw - if the object is being created on the server, and i assume it is, the correct syntax is "server.createobject()" |
|
#3
|
|||
|
|||
|
You need to make sure the dll is properly registered. Check in HKEY_CLASSES_ROOT and you should find a folder for Test. VB6 typiccally registeres active x dll files for you when you build them though. you can run regsvr32.exe c:\....\test.dll and register it manually if you need to.
also, you need to use Server.CreateObject and go to tools->internet options->advanced and turn off "show friendly HTTP errors" . you'll actually get meaningful ASP errors after you disable that. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > ASP Development > vb active-x dll won't work in asp page |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|