# Maestro USB C++ windows 10

**URL:** https://forum.pololu.com/t/maestro-usb-c-windows-10/13263
**Category:** Servo controllers and servos
**Created:** [September 1, 2017, 7:09pm UTC](https://forum.pololu.com/t/maestro-usb-c-windows-10/13263 "2017-09-01T19:09:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MWozencroft](https://forum.pololu.com/letter_avatar_proxy/v4/letter/m/278dde/32.png) [@MWozencroft](https://forum.pololu.com/u/MWozencroft)
#### Post date: [September 1, 2017, 7:09pm UTC](https://forum.pololu.com/t/maestro-usb-c-windows-10/13263/1 "2017-09-01T19:09:43Z")

</div>

Hi

I have a new 24 channel maestro which works fine via the control center. I would like to control using C++ via visual studio on Windows 10.

Have tried the the USB SDK C++ EasyExample but compliler - can’t find usbWrapper and Usc. Have same problem on windows 7 machine.

Interestingly example on forum

> [@Maestro C Serial communication](https://forum.pololu.com/t/maestro-c-serial-communication/3181):
>
> Hello, I recently purchased the micro maestro 6 channel usb board in order to drive two RC servo using serial communication. This was done for a school project where the goal is for a fully autonomous robot to follow a predefined path using a webcam while avoiding obstacles. Using openCv, i was able to develop all of the algorithms needed for the vision part, I also developed a fuzzy logic controller in order to produce the output signal needed to control the servos. But for the past few weeks…

works on windows 7 but gives “unable to find port error” on Windows 10.

Apologies if this is a bit basic. I would be very grateful for any help anyone can offer.  
thanks

---

<div class="post-metadata">

### Author: ![DavidEGrayson](https://forum.pololu.com/user_avatar/forum.pololu.com/davidegrayson/32/4639_2.png) [@DavidEGrayson](https://forum.pololu.com/u/DavidEGrayson)
#### Post date: [September 1, 2017, 8:35pm UTC](https://forum.pololu.com/t/maestro-usb-c-windows-10/13263/2 "2017-09-01T20:35:58Z")

</div>

Hello.

The MaestroEasyExampleCpp example in the [Pololu USB SDK](https://www.pololu.com/docs/0J41) has references to the precompiled versions of UsbWrapper.dll and Usc.dll that come with the SDK. You can see the references by looking in the `.vcproj` file with a text editor. Those references should allow the compiler to find those DLLs, which are in the folders `UsbWrapper_Windows` and `Usc/precompiled_obj`.

If you are using Visual Studio, it’s possible that it did a bad job of converting our project files to the latest format, and it might have deleted those references. You might try adding those references to your project the same way you would add a reference to any other precompiled .NET DLL. Microsoft has an article about that here:

[https://support.microsoft.com/en-us/help/310674/how-to-add-references-to-a-managed-visual-c-project](https://support.microsoft.com/en-us/help/310674/how-to-add-references-to-a-managed-visual-c-project)

If you are still having trouble compiling the example code, could you tell me more about what you are doing? Are you using Visual Studio? What version of Visual Studio are you using?

–David

---

<div class="post-metadata">

### Author: ![MWozencroft](https://forum.pololu.com/letter_avatar_proxy/v4/letter/m/278dde/32.png) [@MWozencroft](https://forum.pololu.com/u/MWozencroft)
#### Post date: [September 4, 2017, 3:09pm UTC](https://forum.pololu.com/t/maestro-usb-c-windows-10/13263/3 "2017-09-04T15:09:39Z")

</div>

Hi David,

Thank you for getting back to me.

I have got it working now.

You were correct about Visual Studio (2017) modifying the project file and deleting the paths.

I’m not very profficient at C++ but my main issue was that my paths were too long to accommodate both DLL’s when I tried to reference them.

Then not having the right SDK’s.

EasyExample now works on both my machines ( windows 7 and 10 ).

Now just need to integrate into my project.

Thanks

Martin
