Results 1 to 3 of 3

Thread: Determine Component Name from a DLL

  1. #1

    Thread Starter
    New Member wspguy's Avatar
    Join Date
    Sep 2005
    Location
    South Carolina
    Posts
    13

    Question Determine Component Name from a DLL

    I need to determine what x should equal (in VB6) when you want to call server.createobject(x) (from ASP).

    I have a the physical file path and name of a dll and I am adding the list of available references to a database table.

    Purpose: when coding an ASP page I don't have to know that exact component name. I can just pull it from an include file (created dynamically) that has the variable x already defined.

    It is a VB6 application and the user will uploading a DLL. I can not assume the Component name will be the file name. (86 the ".dll")

    Any ideas?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Determine Component Name from a DLL

    Where's the code going? In an application that is referencing the DLL, or in the DLL?

    Sorry, I'm a bit confused.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Determine Component Name from a DLL

    LEt me get this straight....
    You are building a web page that will allow the user to upload a DLL.... *any* DLL? ... and then you want to create an object based on a class in that DLL. Unless the user also types in the ProgID of the object to be created.... or your know what the ProgID is, there's no good way in VB6 (VBS since this is really ASP) to know what to create. Plus, DLLS can (and usualy do) have more than one object that is creatable, so how would you know which to create? And I'm not even sure it would work. The DLL would first have to be saved to the HD, and then registered before objects in it could be created.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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