Results 1 to 3 of 3

Thread: Errors when using DLL

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Location
    New York
    Posts
    2

    Exclamation 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.

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658
    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
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Location
    New York
    Posts
    2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width