Thank you, @Leledumbo and @Cyrax I really appreciate it..
I hate to say it but I have some questions..
I'm sorry to bug you, but when you said:
No, but can be. FPC memory manager is user replacable. The default memory manager is statically linked, so each dll / exe has its own copy. Mixing these will confuse the manager and results in undefined behavior. If you can ensure you always call the dll ones, then it will be OK (though this means the one in the exe is useless).
1. I think you misunderstood my question (looking at the "exe" part), I meant that while making a DLL from Freepascal, can I use the GetMem function inside the Pascal DllMain?
I know I could just try it myself to see if it works, but I thought of a possibility where it would work in mine and not in others! Can that happen? Or should I use the Windows HeapAlloc() instead?
2. Why does Pascal have #? I mean I have read it being referred to as a Control String with unsigned int between 0 and 255, and have seen it being used #0 as Null character, but I don't think I understand it fully, how do you think of it as someone programming in Pascal?
3. Why does Pascal have "file of Integer", "file of char", "file of record" when we could just have a single thing that could do it all just like in other languages?
Say I'm making a School/Hospital Fee Application, then I would use File of Record (as the data will most likely be a structure)? Is it for such purpose?
Anyway, why bother with having so many
file of _specific_data_type at all?
And btw, is the ref.pdf in FP installation (\doc) outdated or something? It says the Class Constructor name must be Create, but I am using one called Init and it's working just fine.
And I use the Freepascal IDE (that console IDE that comes by default with FreePascal)
Thanks.,..