Is b.cpp the application program that is calling the exported function in a.cpp, which is in a dll ?
In b.cpp you need to declare the function as _dllimport.
// b.cpp is the application program
//
_delspec(_dllimport) void a();
void foo()
{
a();
}
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.