-
Errors when using DLL
I created a simple DLL using VB 6 and included the Active Server Pages Object. I created the ASP references in the on start sub. The sub that I reference is a simple response statement to say "Hello". When I reference the sub in a ASP page I get the following error.
Script (0x800A005B)
Object variable or With block variable not set
What's causing this? Help!!!
Thanks in advance.
-
Did you initiate the Dll Object?
That error usually occurs when you try to access an object that is set to nothing. When you declare the object, make sure you declare it with the "New" keyword.
Code:
Dim myObject as New myClass
Other wise you can use the Set keyword once you need to use the Object.
Code:
Set myObject as new myClass
-
Actually, I fixed the error last night. The reference was incorrect. Now I am getting an "Unable to create an ActiveX object frm the code only when I use it in conjunction with an ASP page but the code works fine when I am using it in a normal EXE. I am basically trying to use the MSWord object and port a form contents to the DLL but that is where I am getting the error.
Thank
Ray