Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
how to create dll from .m functions and load it from within threads
i am coding a program that permit the user to convert .m functions to dlls, but i need a c++ program compiled using mex to be able to use those dlls within threads. i have followed some instructions to use dlls generated from .m within mex programs, but some instructions involved in calling the dll make use of functions included in the "mex" library, the problem with those instructions is that i can't use the dlls from within threads becouse threads and "mex" functions (functions included in the mex library) dont mix.
i need to know how can i call the dlls from withing threads without involving "mex" functions, only c++ and c functions, and, if the solution is to convert the .m functions to c code first, how to create the dlls and load them in a c++ program compiled with mex?