Just my luck, when using the vc++ compiler the problem doesn't occur. The code compiles (after some minor tweaks) and my ofstream stuff works and I can step over the breakpoints.
The same code, when compiled with gcc 3.4.5 doesn't work (code in DllMain doesn't execute).
Any suggestions as to how I go from here? Anyone heard of something like this before? - Seems like it's gcc /MingW specific.