Make PureBasic DLLs use EXE String and Object Manager
Posted: Mon Feb 01, 2010 3:10 pm
This request is somehow related to this bug report.
I think it would be great if PureBasic DLLs could automatically use the String and Object Manager of the main PureBasic executable. PureBasic DLLs could export a special method or call a special method of the executable at the time it's attached. This should not break other DLLs or executables, it should just work if both binaries are compiled using PB. This would allow easy usage of string variables as return value and the DLLs, in my case plugins, could also access gadgets created by the executable.
What do you think? Maybe this could be enabled/disabled in the compiler options.
I think it would be great if PureBasic DLLs could automatically use the String and Object Manager of the main PureBasic executable. PureBasic DLLs could export a special method or call a special method of the executable at the time it's attached. This should not break other DLLs or executables, it should just work if both binaries are compiled using PB. This would allow easy usage of string variables as return value and the DLLs, in my case plugins, could also access gadgets created by the executable.
What do you think? Maybe this could be enabled/disabled in the compiler options.