|
-
Jun 16th, 2003, 04:23 AM
#2
Which data segment? The segment referenced by ds or the .data segment in your exe?
Dynamic allocation is OS-dependent. In Windows, you must call one of LocalAlloc, GlobalAlloc, HeapAlloc or VirtualAlloc (with the first two being deprecated). In Linux there's some system call too. In DOS, you need to implement a memory manager (I think).
And of course you can't dynamically allocate space within your exe.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|