Part of the question was; Can someone tell me how to obtain the pointer to g_external_name and g_external_table? How LiveCode knows it when it loads a DLL with my external? Is it possible to obtain the mentioned variables dinamically after DLL loads?
I do not think you can get any pointers in LiveCode and even if you did get a pointer you could only use the address from within the program that obtained the pointer. To access pointers each external or program will use its own memory mapping so the pointer itself is only good for the program providing the pointer info. If you can access the g_external in LiveCode then you can pass that info to your external using command line arguments. JB > On May 14, 2020, at 8:29 AM, Devin Asay via use-livecode > <use-livecode@lists.runrev.com> wrote: > > Once more, this time with the link. > > > Hi all, > > I came across a question on Stack Overflow from a sight-impaired user who is > trying to figure out how to write and test a LiveCode external. I am pretty > ignorant about externals in general, so I don’t think I can help in this > case. But if anyone here feels inclined, I think it would help this user, and > boost the number of responses to LC questions on Stack Overflow. > > https://stackoverflow.com/questions/61782950/testing-livecode-external-in-python > > Regards, > > Devin > > > Devin Asay > Director > Office of Digital Humanities > Brigham Young University > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com<mailto:use-livecode@lists.runrev.com> > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode