|
-
Jul 5th, 2001, 11:13 AM
#1
Thread Starter
PowerPoster
DLL problem
Hi, For instance Im writing DLL and in this DLL I'll read the data in from a file and draw the data into memory and transfer into the picture box. Then from time to time juz update the picture box image with the image that store in the memory.
My problem is how to hold the image in memory after I complete one function in the DLL. 'Coz when I exit the function, this memory will release rite?
regards,
Chris.C
-
Jul 5th, 2001, 09:47 PM
#2
Hyperactive Member
hmm..
maybe, you might wanna use a pointer or a reference in your dll function..
Amon Ra
Amon Ra
The Power of Learning.
-
Jul 6th, 2001, 12:01 PM
#3
Monday Morning Lunatic
You can keep a global pointer in the DLL and in DllMain you initialise it and destroy the memory when necessary. Look up DllMain in MSDN for a long explanation.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jul 6th, 2001, 09:10 PM
#4
Thread Starter
PowerPoster
Thx, parksie [vibrating member] I'll looking into it.
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
|