English
Forum

Arbeitsverzeichnisse: GetDir$(), $PROGDIR and so

 

RGH
Dietmar horn
$ GetDir. can me Perhaps time someone try To explain, whom sense this commands at all yet has? of my opinion to ought to the commands abgeschafft and intern through $PROGDIR supplant go


Dass just You for abolition one Befehles votierst ...

then müssten all those people to guitar grab, The these function for the use, for the tappt im dunkeln virtual is, namely the straight actually Arbeitsverzeichnis To detect.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/05/08  
 




Dietmar
Horn

then müssten all those people to guitar grab, The these function for the use, for the tappt im dunkeln virtual is, namely the straight actually Arbeitsverzeichnis To detect.


Hmm ... I venture To bezweifeln, that the nationwide More How 2 - 3 XProfan are. time integrally of it foreseen, that presumably The wenigsten XProfan at all some Musikinstrument to some extent sensible play can.

yet has it Yes unfortunately not yet time so worked, that itself a XProfan-Truppe from the now really not straight klitzekleinen ferderal republic Germany with us as Mini-MMJ-XProfan-fan-association namens MMJ Hoyerswerda e.V. order eventueller cooperation to that gegenseitigen benefit and Erfahrungsaustausch in link setting - though I in the past tense here already repeatedly moreover called having.

Look you still The tons of Sources Internet with GetDir$-usage on. I have yet not yet a only code found, in the GetDir$ not solely (and fälschlicherweise) to Bestimmung the Programmverzeichnisses the own EXE is used. Anderenfalls berichtige me Please, because You here a such code-shred postest, in the the differently is or been was. or fit dbzgl. The XProfan-Helpfile to ... years dbzgl. finally on.

who can or would like here whom present mitlesenden jugendlicheren windoofs-klick-you-thick-verwöhnten Programmieranfängern time whom Difference between aktuellem directory and Programmverzeichnis explain? I try the in of my Hörnchen-Language of course since years, but nevertheless entrapments The schoolboy over ands over again the apparently bequemere GetDir$ to Bestimmung the Programmverzeichnisses mere (with Profan or. XProfan < 8.0, wo es $ProgDir noch gar nicht gab).

You as XProfan-Author have the yet anyway ditto not geschafft (see actually XProfan.hlp or for may part too XProfan.chm).

Greeting
Dietmar
 
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
02/05/08  
 




RGH
To GetDir$(): myself have for me some Utilities written, The GetDir$() to investigation the current Pfades using. then can I namely one and the same Exe-File in unterschiedlichen Arbeitsverzeichnisen with unterschiedlichen Konfigurationsdateien Call. to $PROGDIR could one with Par$(0) whom names incl. way (!) the performed Exe-File detect and having so, if to the Result around the Filenames reduced, the same Result How with $PROGDIR. (Related to the Par$(0) stood even time in the Help, watts but with introduction of $PROGDIR again herausgenommen.)

an Kenntnis the grundlegenden terms How News directory, Programmverzeichnis, Arbeitsverzeichnis etc. would I though already to the first usage of/ one Programming-Language vorraussetzen. (Sorry, meanwhile hot The pair Yes not any more directories, separate Ordner.)

i want naturally not defray, that The Help on the a or others place yet vorbesserungsfähig would. and its sure too so, that The Help sooner only beschreibend is, and no didaktisch strukturiertes Lehbuch. But if someone additional Texts or quite chapter mail, The it gladly in the Help see would: always since so. you have z.B. what Didaktik concerns as langjähriger teacher the Naturwissenschaften me to sure a large Vorsprung. I could me z.B. thoroughly to the jetzigen course 1 yet a short course 0 present, the in a einstelligen Kursteil-amount such general Computerkenntnisse auffrischt.

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/06/08  
 




Frank
Abbing
GetDir$ = API GetCurrentDirectory()
$PROGDIR = API GetModuleFileName() - GetFileTitle()
 
02/06/08  
 




Sebastian
König
The Idea with the course 0, in the important terms explains go, find I well!

to the GetDir$(): I must admit, I into example-Codes to SKControl.DLL too GetDir$(@) use, circa a absoluten Path to whom verwendeten graphic-Files detect. naturally does it only such a long time well, How the actually Arbeitsverzeichnis the program through nothing changed watts (see Franks Posting, the The verwendeten API-functions name). Dietmar has this already addressed:  [...] 

The benefit on GetDir$(@) is of my opinion to, that it - under whom obigen Voraussetzungen - sowohl in the Interpreter as well as compiled or. as EXE the same Result supply, what with Par$(0) and $PROGDIR natural not the case is... for example-Codes is it therefore integrally useful. on the other hand is the standard-Suchpfad in windows anyhow in the rule the actually Arbeitsverzeichnis, so the GetDir$(@) + file$ well in the rule superfluously (and unnecessary risky) is. my Codes I will properly Change.

for a größeres proposition is naturally $PROGDIR the means the electoral! only must one then for Start the Codes in the Interpreter-mode möglicherweise a Weiche the shape
CompileMarkSeparation
declare MaPath$
 $IFDEF INTERPRETER
MyPath$ = irgendein sicherer Weg, das Verzeichnis des Codes zu ermitteln
 $ELSE
MyPath$ = $ProgDir
 $ENDIF

install...

Perhaps would it as Why stay for future versions integrally useful, if $PROGDIR in the Interpreter-mode simply the directory the launched .prf-File supplying would. i think, The so introduced Inkompatibilität would well tenable, there itself $PROGDIR momentarily in the Interpreter-mode anyhow not meaningfully bring into action can - for which Program is it already important, in welchem directory The PROFAN.EXE lying?

MfG

Sebastian

P.s.: best ought to one The Thread again divide - I try me time on it. has functions.
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
02/06/08  
 




RGH
Sebastian king
P.s.: best ought to one The Thread again divide - I try me time on it. has functions.


short Zwischenbemerkung to that Thread-divide:
I find it oftmals problematically, that one none Link to that Ursprungsthread has and manches in the first item the now new Threads without which Kenntnis unverständlich remaining.
i'd me wish, that in the first item one zoned Threads one Info and Link to that Ursprungsthread (letztes Posting to Teilung) generiert and is in the in the last Posting to the Teilung the Ursprungsthread one Link here GEHTS moreover (or so similar).

to Anpassung of $PROGDIR in the interpreter mode: thought have so did i already above. one should though then stringenter point too yet whom drop respect, if a .prc-File in the IDE with the runtime launched becomes. here would one itself naturally too whom way the .prc-File wish. but: two Listviews $PROGDIR give back, if I z.B. in a application further .prc-Files as Module aufrufe? The aufrufende EXE or whom way the .prc-File? there but this drop technical the same is, How the Start by Doppelpfeil in XProfed (compileren and Start the .prc by Runtime), can not distinguished go.
it rewards itself means, here in detail to think

Greeting
Roland
(useful have I the trouble z.B. in the XProfed-Source too so like from you described with Compilerschalter resolved.)
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/06/08  
 




RGH
Sebastian king
The Idea with the course 0, in the important terms explains go, find I well!


who (on the best with didaktischer experience) feel appeal, derartiges in possible few and short Kapiteln treffsicher To provide?
always only since so.

Greeting
Roland
(has of course already books To Computern and to that program written, but definitiv no Lehrbücher)
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/06/08  
 




Jörg
Sellmeyer
Sebastian king
for a größeres proposition is naturally $PROGDIR the means the electoral! only must one then for Start the Codes in the Interpreter-mode möglicherweise a Weiche the shape

CompileMarkSeparation
Def DateiName(1) SubStr$(@$(1),-1,\)
Def DateiPfad(1) Translate$(@$(1),(\ + DateiName(@$(1))),)
Declare MyPath$
 $IFDEF INTERPRETER
MyPath$ =DateiPfad(Par$(1))
 $ELSE
MyPath$ = $ProgDir
 $ENDIF
>
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
02/06/08  
 




Jac
de
Lad
the could Problems bound, if one The prf in a Ordner has, the whom equal names as prf carry: Catei.prfDatei.prf (on itself unwahrscheinlich, but possible).
CompileMarkSeparation
Def DateiName(1) SubStr$(@$(1),-1,\)
Declare MyPath$
 $IFDEF INTERPRETER
mypath$=Par$(1)
MyPath$=Left$(mypath$,Len(mypath$)-Len(SubStr$(mypath$,-1,\)))
 $ELSE
MyPath$ = $ProgDir
 $ENDIF
>
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
02/06/08  
 




Michael
Dell
Hi,

means I persöhnlich use GetDir$() right often and gladly, worse yet because I Games too right well guitar.
 
Salu Michael...

Hab zwar krumme Fieß awer dofir e' ecklich Gsicht! 
02/06/08  
 




Sebastian
König
RGH
short Zwischenbemerkung to that Thread-divide:
I find it oftmals problematically, that one none Link to that Ursprungsthread has and manches in the first item the now new Threads without which Kenntnis unverständlich remaining.
i'd me wish, that in the first item one zoned Threads one Info and Link to that Ursprungsthread (letztes Posting to Teilung) generiert and is in the in the last Posting to the Teilung the Ursprungsthread one Link here GEHTS moreover (or so similar).

the would find so did i well! I have straight manually a Info on this Thread into middle-aged eingefügt.
@iF: How siehts with of/ one automatischen Solution from?

RGH
to Anpassung of $PROGDIR in the interpreter mode: thought have so did i already above. one should though then stringenter point too yet whom drop respect, if a .prc-File in the IDE with the runtime launched becomes. here would one itself naturally too whom way the .prc-File wish. but: two Listviews $PROGDIR give back, if I z.B. in a application further .prc-Files as Module aufrufe? The aufrufende EXE or whom way the .prc-File? there but this drop technical the same is, How the Start by Doppelpfeil in XProfed (compileren and Start the .prc by Runtime), can not distinguished go.
it rewards itself means, here in detail to think


OK, is correct - my suggestion was not far enough virtual... means for appeal Another .prc-Files would I suggest, that $PROGDIR in this then whom way the jeweiligen .prc-File include ought to, because it deals are in the principle Yes circa eigenständige programs (it'll still one eigener Process created, or?).

means altogether:

1. in the Interpreter: $ProfDir = way to .prf-File
2. at that appeal prfrun32.exe code.prc: $PROGDIR = way(code.prc)
3. in the complete gelinkten Program naturally How yet

How are The opinions moreover? and on Roland: would be it tricky, the To release?

MfG

Sebastian
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
02/06/08  
 



@Sebastian: >>@iF: How siehts with of/ one automatischen Solution from? Todoeintrag laid out.
 
02/06/08  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.927 Views

Untitledvor 0 min.
Sven Bader09/24/21
RudiB.07/10/21
Georg04/06/20
rquindt04/10/18
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie