English
Regulars table & Café

OOP: Redimensionierung one Speichers in different Funk

 
in the Konstruktor lay I a memory (Dim) on - observe with his lever over a Objektvariable.

How can I this memory in a others function the class redimensionieren?
 
12/07/06  
 



OK differently - Dim can Yes ReDimensionieren without the data lost weg if at least The same Size again indicated becomes. the would I gladly in a method benefit - the area becomes but in the Konstruktor dimensioniert.
 
12/07/06  
 




RGH
Hello iF,
with DIM goes it unfortunately (yet) not.
but How one with integrally little API dynamic Speicherebereiche creates, its lever of/ one Objekjtvariablen allocated go can, shows my Includedatei for dynamic Stringlisten (already to XProfan 10):

[...] 

here should You everything find, what You benötigst!

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
12/07/06  
 



clear circa Dim I ment me - me was important the You confirm that I nothing forget have. naturally I will now The API for take - thanks for Link!
 
12/07/06  
 




RGH
Hm, only one kurzer thought, I straight on the job be and naturally really other To do have:

it should in XProfan 10 even DIM and without API weg. about so:
in the class there a Objektvariable MemVar&
in the Konstruktur there following Lines
CompileMarkSeparation
!
<...>
declare Mem#
dim Mem#, groesse&
.MemVar& = Addr(Mem#)
<..

into others modes becomes over .MemVar& on the memory zugegriffen. so can the Speicherbereich for each Objektinstanz the class another Size having. One change the Size within of/ one instance is so though you don't say so. moreover need it nevertheless The API.
(Perhaps ought to so did i with DIM LongInts permit, about: DIM .MemVar&, neueGroesse&)

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
12/07/06  
 



very so mach ichs Yes - failed only on it the Dim no Longints allows ;)

Achso and addr(.h&) goes neither.
 
12/07/06  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.573 Views

Untitledvor 0 min.

Themeninformationen

this Topic has 2 subscriber:

iF (4x)
RGH (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