At the moment i must give the window a number and then i can open it.
But when this is changed, all the olders Programms will not run any more.
So my idea:
GetFreeWindowNr()
GetFreeImageNr()
GetFreeSpriteNr()
GetFreeMemoryNr()
and so on.
So can i get a free nr and can with this a window open. This is very usefull, when a not clearly definted numbers of memoryblocks are reserved. Also when i want to my own included procedures (for winamp-support, for freeimage-support, etc, my standardprocedures, that i use nearly always) it is easier to add, because this included files can automatic search a free number.
Also this should than included.
ReserveMemoryNrUntil(X)
After
ReserveMemoryNrUntil(100)
GetFreeMemoryNr() will start the search for a free NR with 101.
Also a better DLL-Support would be nice. A command, that the dll will allow, that the dll can use the, for example, the imagenr of the main-programms.
example:
main
Code: Select all
openlibrary(1,mylib)
sharePBElementsWithDLL(1)
LoadImage(1,"test.bmp)
CallFunction(1, "test")
Code: Select all
sharePBElementsWithMain()
proceduredll test()
resizeimage(1,20,20)
endprocedure
Example:
In the dll are this function
test(w1,w2,w3)
Code: Select all
openlibrary(1,"Test.dll")
declareDLL 1,test(w1,w2,w3)
test(1,2,3)