Trustmaster sends me this trick/hack (as shown below) to avoid using CMEM in a dll/dso in order to get ansistrings working through a dll/dso.
Comments? Find anything wrong with it?
i.e. the ability to use strings in a DLL/DSO without ever using Pchars.
Trustmaster's trick/hack:
Show quoted text 49 lines
Lars' comments:
Seems to make a simple hello world project with strings in it work as a DLL/DSO for now without requiring Cmem, but further testing will need to be done. I will throw up a PasForum clone using this tactic, and see what happens with this sort of set up. When
using no shared memory manager and using strings, PasForum would run but random access violations would occur every so often. I assume this is why the PSP4UM has been running without issue for several while now, because it does work, sort of, to not use a shared memory manager - it's just risky and can cause access violations, and obviously not worth trying for too long.
