tuzzer

My objective is to be able to receive variables or data from various sensors on the Arduino board and, also, to control actuator, such as motors, using the computer by programming in C++. I want to be able to program like RoboRealm and do other more power-demanding task on the computer and have it to control motors and sensors.

I would really want some ways to do that. I have tried different thing on the internet... but none of them seem to work. Is there any simple way to do this??

I read about how to set up a serial connection in the Playground: http://www.arduino.cc/playground/Interfacing/CPPWindows

For the first problem, it looks like you're trying to build perform a UNICODE build. I have no idea how to switch Visual Studio to from UNICODE to ANSI simply because everything I've ever built was ANSI. If you can find an ANSI option (or UNICODE OFF option), choose it and try again.

It's unlikely that typecasting from "char*" to "LPCWSTR" is safe.

The second problem could also be that you're performing a UNICODE build.

This time, I simply created a header file (SerialClass.h), and a source file (SerialClass.cpp). And copy the code from the tutorial directly. Then, I added both file as Build Target in Project/Properties. Is there any project setting I should make?