I am programming for my senior project, and I am looking for a compiler that can compile a DLL, which can then be dynamically loaded into a Visual Studio 2008 C ++ application.
The important idea here is that the compiler is redistributable. If VS were redistributable, I would use this.
So far, I have had some success using MinGW, but this success is limited. Currently, I can only load one DLL and work at a time. The moment I try to download the second version, the VS C ++ application crashes with an access violation error.
I managed to load two DLLs compiled into VS without problems, so I am convinced that this is something specific to MinGW, this is a DLL and how they interact with LoadLibrary () and something else.
I have been working on this issue for quite some time, and I am learning. If someone knows about another compiler, which, as you know, will work instead of MinGW, or if you saw this problem, you probably know why the second DLL resets it. I am sure that this is due to the fact that each of the DLLs works on the other in some way, but I have no idea what it will be or how to find out.
It could be a way to compile a DLL or the way I load it; I have no idea.
I would really appreciate feedback, thanks!
Edit: These are simple g ++ and dlltool calls to create a dll http://pastebin.com/f675df4b0
This is the source from one of my dlls. http://pastebin.com/f5c062611
This is the code in my C ++ application for loading a DLL. http://pastebin.com/f52f94a18
-Michael