How do I expose a class from a dll ?
The application importing the dll should be able to create the objects of the class and also he should be able to call into the member functions of the class .
Is it similar to exposing C type functions using __declspec(dllexport) ?
And also when I built the dll ( which only contains class definition in a header file and its member function definitions in a cpp file ) , no corresponding lib file is created .
Yes. And the __declspec can be applied to the class.
IIRC this is the default, but you can override default linker options.