🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.opentoolsapi
Article #167

Re: How to get full project path ?

#167
From: AlexB
Date: Sun, 04 May 2008 12:10
25 lines
1674 bytes
Lex Y. Li wrote:

> > Q1. I like to save a file in the project directory. How I can get
> > the full project path with OTA ?
> 
> You can get full path of the project file from IOTAProject.FileName.
> Then you can save files to the same folder of this project file.

There is no such function/property in IOTAProject (at least I can't
find it in ToolsAPI.pas for RAD2007 and it's the reason why I'm asking
about it). Could you point out the exact interface ?

> > Q2. What path is suitable for storing an IDE-related (not
> > project-related) files of the custom plugin ? How to get the full
> > path of that directory with OTA ?
> 
> According to Vista rules, you should save files to a few recommended
> places. Then you don't need any OTA functions. Use Win32 API is
> enough.

It's true but I mainly ask about Studio IDE's special rules/conventions
(if any).

-- 
Alex 
Technical Details
Message-ID: <481da7a6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail
References: <481d498b@newsgroups.borland.com> <481da07d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,a9e4aac5caacf15e
X-Google-Attributes: gid10c3df,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "AlexB" <b.a.v@inbox.ru>
Subject: Re: How to get full project path ?
Newsgroups: borland.public.delphi.opentoolsapi
References: <481d498b@newsgroups.borland.com> <481da07d@newsgroups.borland.com>
User-Agent: XanaNews/1.18.1.6
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1251
NNTP-Posting-Host: 212.192.185.54
Message-ID: <481da7a6$1@newsgroups.borland.com>
Date: 4 May 2008 05:10:14 -0700
X-Trace: newsgroups.borland.com 1209903014 212.192.185.54 (4 May 2008 05:10:14 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder.news-service.com!news.isoc.lu!newsgroups.borland.com!not-for-mail