Title: Message

Or just use the win32 api call GetModuleFileName( Hinstance, string, size ...);

 

Myles

 


From: Jeremy Coulter [mailto:[EMAIL PROTECTED]
Sent: Sunday, 6 June 2004 11:12
To: [EMAIL PROTECTED]; 'NZ Borland Developers Group - Delphi List'
Subject: RE: [DUG] Find the name of a DLL

 

SallRight....The pluging has a property I can pass the name of the DLL to...PHEW !

 

Jeremy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Coulter
Sent: Sunday, 6 June 2004 10:44
To: [EMAIL PROTECTED]
Subject: [DUG] Find the name of a DLL

HI All.

I have a wee app. that loads a DLL plugin...why a DLL plugin?, because there are too many runtime packages I need to deploy if I use DPK plugins.

 

Anyway, I am trying to do the SIMPLEST of things. I am TRYING to find out from within a form of the plugin, the name of the DLL.

Is there anyway to do this?

I thought about using a mailslot to pass the plugin its name which is a guid as the plugin can be loaded many times.

basically I wnat to load the plugin, based on its name, go and read an INI file of the same name, but this seems to be almost impossible.

If you got showmessage(paramstr(0)) it returns the name of the EXE that loaded the DLL...which is logical.

 

I have searched google but either I my search criteria is not right, or I am missing something.

 

Anyone got any ideas?

 

Cheers,

 

Jeremy Coulter

 

 

------------------------------------------------------------------------

All email scanned with Nortons Antivirus 2003

------------------------------------------------------------------------

 

_______________________________________________
Delphi mailing list
[EMAIL PROTECTED]
http://ns3.123.co.nz/mailman/listinfo/delphi

Reply via email to