Hi all. Been a while since I've posted on here, but I've got a question regarding the DGSDK. Basically, I've converted all my XScape source over to use the DGSDK instead of what used to be the interface library based on the DBP core DLLs. All well and good, and so far, the conversion worked without a hitch.... until it came to XScape's plugins.
I won't bore you with the mundane details for plugin architecture except that they are DLLs. The problem is that linking EXE projects with the DGSDK static libaries is great, but I can't do the same for my DLL projects because it appears that 'Core.lib' already contains a DLLMain entry point. Now I can appreciate that the static libs were basically modified versions of the existing DBP core libraries, but can the redundent DLLMain entry be hash defined out of the compile process if they are being generated as static libs for the DGSDK.
Also, can someone provide me a solution that will allow me to compile my normal XScape plugin DLLs which reference the static libraries without having linker conflicts with DLLMain.
Cheers guys.
Paul.
[EDIT] It occurred to me that even though linking to static libraries in a DLL is possible, there should be an additional function available in the libraries that allows for a GlobalStruct *g_pGlob value to be set via the DLL. The application that invoked the DLL, i.e. my XScape plugin would then be responsible for setting this *g_pGlob pointer to the same one that was issued to the original EXE. Hence all DLLs would still use the same Global structure and function pointers etc. Surely this is possible? Mike, Lee, anyone.
Home of the Cartography Shop - DarkBASIC Professional map importer