Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Path of plugins folder (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: Business Graphics
Next thread: 2005 classic + ElfData


macosx and unix paths   -   GOLD
  Path of plugins folder   -   Brad Hutchings
   Re: Path of plugins folder   -   Alfred Van Hoek

Path of plugins folder
Date: 16.06.05 12:19 (Thu, 16 Jun 2005 04:19:55 -0700)
From: Brad Hutchings
Is it possible to get the path of my plugin while running in the IDE?
Bonus points for a quick description of how ;-).

-Brad

Re: Path of plugins folder
Date: 16.06.05 16:17 (Thu, 16 Jun 2005 11:17:12 -0400)
From: Alfred Van Hoek
on 6/16/05 7:19 AM, Brad Hutchings at <email address removed> wrote:

> Is it possible to get the path of my plugin while running in the IDE?
> Bonus points for a quick description of how ;-).

Yes, but you need a control and then call REALGetProjectFolder in the
constructor. In RB 5.5.5 the constructor of the control was called when the
control is being registered. REALGetProjectFolder() would point to the
REALbasic app. In 5.5.5 you then had to navigate to the plugins folder.

Unfortunately, 2k5 does not do this. The first time the constructor is
called is when it is dragged on the window. I have not conducted tests yet
with REALGetProjectFolder to give you a good hint.

This point has been discussed several times, and I even suggested to request
a REALGetPluginFolder(). Of course you can check for a PID, but this
requires us to create 3 diifferent api's. Because RB should have it there
already, requesting REALGetPluginFolder() and getting it from RS should be
trivial.

While I have suggested REALGetPluginFolder() several times, I don't believe
I ever filed a feature request. If you are going to file one please notify
me and I will sign on.

REALGetPluginFolder() is so important, because we can stuff in the .rbx file
format plugin-dependent libs for shipping.

Alfred

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>