This basic npapi plugin is written in C. I'm developing on Mac and using xcode the project compiles and works. But I would like it to be in C++, what should I do to convert this to a C++ project? Or is there a similar example available in C++?
Thanks in advance!
There is no step 2. Once the file is being treated as a C++ file by the compiler, you can add all all the C++ you want. C++ is a superset of C, so all the existing code should work as-is.