how to create dll in visual studio 2010 and call it in ax 2012

how to create dll in visual studio 2010 and call it in ax 2012. Please explain with example.

Thanks.

Please search for similar questions. For example, I posted this answer less than half-day before your question.