To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 9157
9156  |  9158
Subject: 
Re: Accessing LDDesingPad Application in a plugin
Newsgroups: 
lugnet.cad
Date: 
Wed, 8 Jan 2003 06:25:46 GMT
Viewed: 
1886 times
  
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:
  Accessing LDDesingPad Application in a plugin
 
When improving a plugin I remembered a message by Orion: (...) How do you access Application? When I try this I get an error: Undeclared identifier: 'Application'. Niels (22 years ago, 7-Jan-03, to lugnet.cad)

15 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR