Subject:
|
Re: Accessing LDDesingPad Application in a plugin
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Wed, 8 Jan 2003 06:25:46 GMT
|
Viewed:
|
1681 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
In lugnet.cad, Niels Karsdorp writes:
> When improving a plugin I remembered a message by Orion:
>
> In lugnet.cad, Orion Pobursky writes:
> > I use Delphi and do it this way:
> >
> > ExtractFilePath(Application.ExeName)
> >
> > This will return the path LDDesignPad is installed in as a string. All you
> > have to do is tack '\plugins' on the end to get the plugin directory. Also
> > note that version 1.2 and later save the LDDesignPad path to the registry.
>
> How do you access Application?
> When I try this I get an error: Undeclared identifier: 'Application'.
>
> Niels
If you reference it the main plugin file then you'll get an error but if you
reference it in a separate .pas file and then include that .pas file in the
Uses statement of you main plugin file then it should work fine. I have no
idea why it works this way but it works. For instance, all I do in the main
plugin file is initialize a form and then activate it. All the forms I use
are in separate .pas files which are just included in the main plugin file.
-Orion
|
|
Message is in Reply To:
15 Messages in This Thread: ![Problem with PluginWheelGenerator 1.1 -Marek Idec (2-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Niels Karsdorp (3-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Marek Idec (3-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Niels Karsdorp (3-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Marek Idec (3-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Niels Karsdorp (3-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Marek Idec (8-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Marek Idec (9-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Niels Karsdorp (9-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/246.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Orion Pobursky (9-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Accessing LDDesingPad Application in a plugin -Niels Karsdorp (7-Jan-03 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Niels Karsdorp (9-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Niels Karsdorp (9-Dec-02 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: Problem with PluginWheelGenerator 1.1 -Marek Idec (10-Dec-02 to lugnet.cad)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|