Create instance of class by name


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Create instance of class by name

  1. #1
    Join Date
    Dec 2003
    Location
    South Carolina
    Posts
    72

    Create instance of class by name

    I have a database table that contains the names of a classes (.dll) that are referenced in the assembly that reads the table. I want to be able to create an instance of a class based on the class name read from the table field at run time; not sure of the best way to to this. Thanks in advance.

    Steve
    Stephen H. Stubbs
    Software Systems Engineer
    Smith Engineering, LLC

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Dec 2003
    Location
    South Carolina
    Posts
    72
    Thanks Phil!
    Stephen H. Stubbs
    Software Systems Engineer
    Smith Engineering, LLC

Similar Threads

  1. Problem with inner class
    By IronJack in forum Java
    Replies: 12
    Last Post: 08-08-2006, 06:52 PM
  2. JDOM Errors & How to set the classpath
    By kpandya in forum Java
    Replies: 0
    Last Post: 01-14-2006, 07:01 PM
  3. Replies: 1
    Last Post: 12-01-2000, 09:55 AM
  4. Abstract class
    By Manika in forum Java
    Replies: 1
    Last Post: 09-06-2000, 01:13 AM
  5. Create Multiple Instances of Class at Runtime
    By Eric Jenkins in forum authorevents.appleman
    Replies: 1
    Last Post: 04-13-2000, 10:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center