Hello everybody
--hutch do you still have the dynamic.asm If not do anyone have an copy of it. It was about executing code from memory, GlobalAlloc or something like that. If so could you post it here.
Thanks in advance
ic2,
Here you go...
PBrennick
[attachment deleted by admin]
ic2,
What context do you need to do this in. What comes to mind is an old trick where you copy and API call code directly into allocated memory and call it from its start address with the normal set of arguments. Its easy to write when the procedure is within your own code because you can easily work out the minimum length from its start label and the following start label of the next procedure but with an API call, there is no easy way to do this so you usually allocate a big enough block of memory to handle the code on a test basis.
Just let us know and w should be able to find something that will show you how its done.
Testing: i been trying to post since but something wroing
I'm having problems posting, but i got to say thanks at lease. Hope it get through.
Thanks Rifleman
I read this when it was first posted, but now I'm curious; why would you wan't to execute an API function from allocated memory?
tek,
By having the code in the memory space of the applcation instead of it being in the system memory area, it used to improve the speed of the call and when you were hammering an API at high speed, you could clock the difference.
I can post properly with dial-up but not dsl. Thank hutch-- is there more. I want to do this.
It's true only a line or two for my dsl. I got to get a new modem. I re-installed XP and everything.