Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identifying Object startup

Status
Not open for further replies.

madlarry

Programmer
Dec 6, 2000
117
GB
Hi,

I have an DLL that contains several public creatable classes, the startup object of the DLL is set to sub Main.

Therefore when an instance of one classes is created, sub Main kicks in before any of the class initialise events.

My question is: during the sub Main startup procedure, how can I obtain the class name of the object that is being created?

Thanks,

Madlarry
 
I don't think you can do this. Since Sub Main gets called before Class_Initialize there's no way to set a variable telling you which class is being created.

Chip H.
 
I would have to agree with Chip on this one . . . Sub Main gets called when the DLL is loaded into memory which has to happen before any objects inside of the DLL can be instantiated or any APIs get called.
- Jeff Marler B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top