English
Online-Documentation

Header-Files Statement: Erkl

 
who C knows, knows too The Header-Files, there üblicherweise with the Endung .h. One ähnliches concept watts now too in XProfan verwirklicht, here with the Endung .ph. around the Headerdatei(en) anzugeben, The in the program used go, uses one The Direktive $H:

$H windows.ph

The XProfan-Header-Files (*.ph) go there sought, where too The Include Files sought go. The attitude the Includepfades counts too for Header.

The Header-Files are nothing other as Übersetzungstabellen. defined expressions in the Programmtext, The there through one ~ marked are, go through others of Precompiler at reading the Program by the Interpreter or. Compiler supplant. On these point can z.B. The numerous Konstanten, Strukturdefinitionen and API-Aufrufe in the Headerdatei described go. Each row the Headerdatei has to the Gleicheitszeichen whom String the supplant go should and thereafter until last Semikolon the row whom XProfan-expression, by the it supplant becomes.

as example one Headerdateiauszug from WINDOWS.PH:

' Konstanten for ShowWindow

SW_HIDE = 0;
SW_SHOWNORMAL = 1;
SW_NORMAL = ~SW_SHOWNORMAL; ' old shape
SW_SHOWMINIMIZED = 2;
SW_SHOWMAXIMIZED = 3;
SW_MAXIMIZE = ~SWSHOWMAXIMIZED;
SW_SHOWNOACTIVATE = 4;
SW_SHOW = 5;
SW_MINIMIZE = 6;
SW_SHOWMINNOACTIVE = 7;
SW_SHOWNA = 8;
SW_RESTORE = 9;

SW_SHOWDEFAULT = $0A;
SW_MAX = $0A;

ShowWindow( = External("user32.dll","ShowWindow",;

comments go - How in XProfan self - through one ' marked, the REM isn't allows. what between Gleichheitszeichen and the last Semikolon standing, must in XProfan interpretierbar his. it can though against Ersetzungsausdrücke, marked by the ~, vorkommen.

the dazugehörige XProfan-Program could then How follows looks:

$H windows.ph

Cls
~ShowWindow(%hWnd, ~SW_MAXIMIZE)

likewise can Strukturdefinitionen in a Headerdatei untergebracht go:

RECT = Top&,Left&,Right&,Bottom&;

in the Program could then stand:

Declare rectangle#
Struct TRECT = ~RECT
Dim rectangle#,TRECT

With rectangle#
.Top& = 10
.Left& = 120
.Right& = 35
.Bottom& = 100

EndWith

herewith are The Opportunities the Header-Files only ansatzweise implied! an Umsetzung the File WINDOWS.PAS from Delphi with almost all Definitionen the Windowskonstanten and -functions lying with. likewise some others Header-Files with Messages, Structures, etc. If these Files eingebunden are, becomes The Use the windows-API vastly vereinfacht. but too outside the Use stranger DLLs yield itself numerous Opportunities.

alas Yes: The benefit the Headerdatei to of/ one Includedatei with Konstanten and DEFs? The Includedatei becomes always complete mitkompiliert and vergrößert the finished Program. The Headerdatei diving in the Compilations ÜBERHAUPT NOT on. any Ersetzungen go at Compilieren directly undertaken. the might itself too very positively on The Ausführungsgeschwindigkeit work out. For this lasts the started in the interpreter mode and the Compilieren something longer.

Info: The in a structure verwendeten Variablentypen go through your Postfix, similar the XProfan-variables marked. % standing for a 2-byte-Variable (Word), & standing for a 4-byte-Variable (Long), # standing for a arbitrary Size, The in clinging indicated becomes, and $ for a String-Variable. Particulars see here! the "H" (Compilerschalter $H) must big written his!
 
07/10/06  
 



Note / Question or Comment to the Help--Topic


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

531 Views

Untitledvor 0 min.
Torsten Boo05/15/21
Joerg06/29/16

Themeninformationen

this Topic has 1 subscriber:

iF (1x)


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