I am loading the library dynamically using LoadLibrary(). Also I am using .def file, so i guess I dont need to use dllexport and dllimport explicitly.
Actually this is a MFC library and will be used by another MFC library. So we dont need to worry about diff compilers.
The actual problem of calling conventions still exist. I have build a sample Dll and sample client so that ppl can help me. I am attaching the zip with the same.
[note : keep the SampleDll.dll in your C: or change the path in the code]
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.