Adjust the sample projects in plugin

Combine the sample projects with C++ into one sample project.