convert pde to cpp

The pde file IS C++ code. The IDE adds some code to it, such as a main function that calls init(), setup() (your function), loop() (your function), and generates function prototypes for your other functions, if any. It adds some header file include statements.

Adding these additional things yourself isn't difficult.

Have you figured out how you are going to make Visual Studio invoke avr-gcc?