Sure, as long as you define a suitable interface that can cross a DLL boundary, such as http://chadaustin.me/cppinterface.html