English
Forum

Upper$ and the eternal (Back)slash-story

 

Frank
Abbing

I have straight time the the obigen pnglib.dll beiliegende demonstration of Frank namens ogl_pnglib.prf so rewritten, that it too normal XProfan (ex Version 10) benefit can, without itself first of all with the XPSE-Kauderwelsch intimate make To must.


is in Yes Order. though I XPSE More as Preprozessor and Kompilerschalter use, as any Optimierungen To use. i think, my Codes are the rule still very profane .
I find but, you should The transformed XPSE-Codes new strukturieren, these Großbuchstaben are at reading the Codes bad hinderlich.

here understand is whom sense the action not so right. Why the Upper$?

FILE0$ = upper$($PROGDIR + TMP.TMP)


Hehe, and the Prozedure AUFRAEMEN is integrally and quite unnecessary. it is not necessary, these both Files at End of program To delete. you'll Yes only prepares, around the Dll-functions To demonstrating. If you these both begot Files disturbing, then generiere tappt im dunkeln still first none!
Throw this part simply out:
CompileMarkSeparation
DIM IN#,SIZE&+4
RTLMOVEMEMORY(IN#,POUT&,SIZE&)
TEXFILE$=TEXFILE$+.raw
FILEMODE 1
ASSIGN #1,TEXFILE$
OPENRW #1
BLOCKWRITE #1,IN#,0,SIZE&
CLOSERW #1
FREEPNGBUFFER(POUT&)
ENCODEPNG(WIDTH&,HEIGHT&,IN#,ADDR(POUT&),ADDR(SIZE&))
DISPOSE IN#
DIM IN#,SIZE&+4
RTLMOVEMEMORY(IN#,POUT&,SIZE&)
TEXFILE$=TEXFILE$+.png
FILEMODE 1
ASSIGN #1,TEXFILE$
OPENRW #1
BLOCKWRITE #1,IN#,0,SIZE&
CLOSERW #=s2>1
 
02/05/08  
 




Dietmar
Horn

here understand is whom sense the action not so right. Why the Upper$?


the predige I my Schülern always into first hours their Programmierkurses:

If someone z.B. the program into directory namens C:programsest installs, then knallt it because of the Ersatzzeichens in the way. the have I thousands of Male erlebt.

naturally can whom Backslash too twice write, or Backslash through Slash replace - but I use even always upper$, because me the plainer appear.

otherwise have I your Sourcecode still none criticized. me disturbing only, that not-XPSE-users hardly what so to begin know - and of it there (unfortunately) another whole crowd. In my Kursen I'm going on XPSE first one, after the whole others remainder in reinem XProfan to some extent sits. Anderenfalls liefe the for Beginner Yes almost the parallele learn at least zweier Programmiersprachen out, I not for favorable stops.

whom Hauptteil the Codes I had quick with XPSE in reines XProfan Translated - therefore The Großbuchstaben. i was simply To rotten been, whom code only therefore yet moreover umzuschreiben.

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  
 




Sebastian
König
Hello Dietmar,


naturally can whom Backslash too twice write, or Backslash through Slash replace - but I use even always upper$, because me the plainer appear.


means the stops I from different Found for wrong:

1. Escape-Sequenzen wirken only in Literalen, means Strings in quotation marks. for a String-Variable is the Upper$() therefore crept superfluously during it for something How Upper$(C:est
eu.prf) the trouble neither resolve, there the Literal first ausgewertet becomes.

2. to the Großschreiben as way out generally: (X)Profan is here only großzügig; in others Languages would something like a Message the shape Unknown Escape-sequence trigger.

3. finally: What is, if Roland itself decide ought to, time a new Escapa-sequence the shape T einzuführen. Zugegeben, right unwahrscheinlich, but still possible. your Codes wären then zwangsläufig not compatible to new Version...

what I so say would like: I stops it for important, simply always streng whom Backslash twice To scheiben. Dass You your Schülern The Problematik hither bring, is naturally well!

MfG

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




Frank
Abbing

otherwise have I your Sourcecode still none criticized.


No, have so did i not so aufgefasst. and would neither bad been.

P.s.: using /, not . then is too no Upper$ and \ necessary...
 
02/05/08  
 




Dietmar
Horn
Hello Sebastian,

thanks - you have me for good persuated or. convincing. so very I had me the yet yet none durchdacht. one learn even never from.

On any Cases have I with this Vorgehensweise into past over 15 years yet never Problems had. therefore I had me yet too not yet moreover big therefore gekümmert. too into tons of demonstration-Source code Internet have I yet very seldom time a semidetached-Backslash or Slash in the Pfadnamen seen (except with your SK*.*-example-Codes). but right have You naturally already! its really bad, if one slow old and senil and is not longer so quick umgewöhnen can or would like.

Diesbezüglich would one not überlesbarer Info (possible in ruddy) in the XProfan-Help long ago overdue.

I gelobe herewith recovery!


What is, if Roland itself decide ought to, time a new Escapa-sequence the shape T einzuführen.


then should I to over 20 years time again my guitar rauskramen and a Anti-T-Song write (like then Heiko whom GoTo-Song). The thing would I then however same of of my former Schülerband in kompletter cast einspielen let.

On any Cases find I it lovely, that itself from my small code-Posting in the Nachhinein a such lovely Klarstellung yield has. over again one dickes fettes Thank you for!

the next trouble, what me at Reading demonstration-Source code always almost To to Weißglut bring, is the $ 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, because in all Codes, The I yet seen have, watts GetDir$ fälschlicherweise to that to determine the Programmverzeichnisses uses. and the works definitiv not reliably. the actually directory must not zwangsläufig with the Programmverzeichnis of their own Program coincide. often is the of course so - but even not always.

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  
 




Sebastian
König
Note: The Discussion To GetDir$() have I in a own Thread moved:  [...] 
 
Windows XP, XProfan/Profan² 4.5 bis 11
Profan2Cpp-Homepage:  [...] 
Alte Profan²-Seite:  [...] 
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

1.094 Views

Untitledvor 0 min.
RudiB.07/28/19

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