How would I set the handles to the memory as they come? like... #? CreateBitmap... hbmp# dd 0 mov hbmp#,eax ... instead of hbmp1 dd 0 hbmp2 dd 0....
Posted on 2000-11-27 00:59:00 by moxy
i dont know if i really understand your question, but if you want to define a var in the code, you have to do : invoke CreateBitmap... jmp @@1 .data? hBmp1 dd ? .code @@1: mov hBmp1, eax (i'm not sur if the jmp is really necessary, butwith it, it works)
Posted on 2000-11-27 07:12:00 by (scalp)
Your question is really about how to dynamically allocate memory for storing handles. In the case you don't know the exact number of the handles you require, you should allocate memory from the heap with HeapAlloc. You can then parcel out the memory as needed. If you want to enlarge the size of the memory block later on, you can call HeapReAlloc.
Posted on 2000-11-27 11:27:00 by Iczelion
I think I get it now thanks! :)
Posted on 2000-11-27 13:02:00 by moxy