English
Source / code snippets

straighten up to End of program

 

Georg
Teles
Very plenty worth lay I on tidy Speicherleerung, here small example moreover
DEF SetWindowLong(3)!"USER32","SetWindowLongA"
'DEF initDLL(<Anzahl Parameter>)!"eineDLL.dll","initDLL"
'DEF DEinitDLL(<Anzahl Parameter>)!"eineDLL.dll","DEinitDLL"
Declare end%, dll&, icon&
winmain()
activities()
aufraeumen()

Proc winmain

    'dll& = UseDLL("eineDLL.dll")
    'If dll&
    ' initDLL(<Parameter>)
    'EndIf
    icon& = Create("hIcon","MAIN")
    Windowtitle "Titel"
    Windowstyle 8+16+512'8 = with Icon in the Window Title
    '512 = Dialogverhalten > to termination the Loop becomes the code moreover carryed out
    Window 0,0-800,600
    SendMessage(%HWnd,$80,1,icon&)'Icon on Window Title settle
    SetWindowLong(%HWnd,-16,$92CA0000)'minimize & X - Button, maiximieren deaktiviert - enhance inaktiv
    'SetWindowLong(%HWnd,-16,$92CE0000) 'minimize & X - Button, maiximieren deaktiviert - enhance active
    'SetWindowLong(%HWnd,-16,$92CB0000) 'minimize, maiximieren & X - Button, - enhance inaktiv
    'SetWindowLong(%HWnd,-16,$92CD0000) 'minimize, maiximieren & X - Button, - enhance active
    DrawIcon icon&,10,10

Endproc

Proc activities

    Clear end%

    WhileNot end%

        Waitinput

        If (%Key = 2) | (%Key = 27)' X or. ALT + F4 or ESC

            'ShowWindow(%HWnd,0) 'circa "Flackern" of Fensterobjekten To prevent
            Inc end%

        EndIf

    Endwhile

ENDPROC

Proc aufraeumen

    DeleteObject icon&

    If dll&'DLL straighten up, possible DLL interne "free"-function before Call

        'DEinitDLL(<Parameter>)
        'FreeDLL dll&

    EndIf

    print "aufgeräumt ..."
    WaitInput

ENDPROC

END

Hello
 
XProfan X3
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

02/13/16  
 



And then coming everything differently.

hard spoken - there with such How obigen Things the OS/ Windows itself with Prozessende faster and effizienter bereinigt, as if one it self by XProfan tätentut, is it unfortunately Time and Stromverschwendung.

Can too forever quarrel, whether solches "Aufräumen" so guter or badly Style is - even if the want naturally nachvollziehbar is.

as question words, what plainer is for OS: 1.000 deleteObjects or 1x "alle Objects in Müll", where "alle Objects in Müll" the OS only self indicate can.

But only Generve on hohem level and with windows small NT, would I for my obigen testify The hand neither in that fires lay.

on the others Page should one thereafter but too streng the hWnd yet destroy and the memory for Variables and and and... power indeed no human. ^^ (wozu too)

gives only very very very little functions with them in the windows-Help aufgeführt is, that they Ressourcen produce The whom Process überstehen.
 
02/14/16  
 




Georg
Teles
Moin,

Yes unfortunately Verschwendung of Time & power, have it me so angewöhnt from this reason:

iF (14.02.2016)
as question words, what plainer is for OS: 1.000 deleteObjects or 1x "alle Objects in Müll", where "alle Objects in Müll" the OS only self indicate can.


I have no idea when the happens, wieso and How the happens meant have I but not only The DLLs separate The Vars also with DeleteObject deleted go should, or is it now still alike ?

iF (14.02.2016)
gives only very very very little functions with them in the windows-Help aufgeführt is, that they Ressourcen produce The whom Process überstehen.


momentum time, have I what not come along, means the now, XProfan clear now at Prozessende yourself on or. windows power the at End of program ?
 
XProfan X3
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

02/14/16  
 



clear, can You quiet valiant his.

XProfans End (exitProcss) closes you indeed any Window etc. -

sees one too seldom one DestroyWindow(hWnd) on the XProfan-Program-end.

Bisl what becomes XProfan of itself from Remove -

but sure no Window etc. or memory everybody can itself holte.

the power windows everything stunned weils Yes none Process More moreover gives and its thereby faster as if one this händisch tät.
 
02/15/16  
 




Georg
Teles
Hmm, Yes %HWnd on the Prozessende To destroy power little sense. what XProfan removes and what not, can only Roland answer I stay first once with of my Pingeligkeit but I keep the in the eye
 
XProfan X3
TC-Programming [...] 
XProfan 8.0 - 10.0 - X2 - X3 - X4

02/15/16  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

8.899 Views

Untitledvor 0 min.
Gast.081510/03/24
Georg Teles08/29/24
RudiB.09/02/22
p.specht11/18/21
More...

Themeninformationen

this Topic has 2 subscriber:

Georg Teles (3x)
iF (2x)


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