   How to make "mingw" dll work in visual c++?
  I have a problem when I try to link dll(.a file) done with  mingw(Code::Blocks) to visual c++ express. For example simple thing like this://main.cpp - dll file__declspec(dllexport)float f(){float n= 15.3f;return n;}//main.hfloat f();How do I do that? (link dll on right way,or compile it on right way)Thanks.   
  I export all my functions with extern "C" __cdecland that works fine for me. I assume you're renaming libwhatever.a to whatever.lib for the sake of Visual Studio? I'm not sure if that's required but I've always done it.   ;  extern "C" is the trick here, sometimes compilers will try to work with modules compiled in other system but I've seen very little success with this in VC++.Essentially the names, when compiled in C++, are being mangled in compiler specific ways. When you try to link these through another compiler it is unable to find the desired exported symbol.   ;  Try this.   