Template:PT3 C WIN VS 1

From Phidgets Support
Revision as of 21:33, 8 March 2021 by Mparadis (talk | contribs) (Created page with "<div class="phd-slide-deck" data-deck="PT3_C_WIN_VS_1"> <div class="phd-slide-deck-header"><h3>Visual Studio Code Sample</h3></div> <div class="phd-slides"> <div class="phd-sl...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Finding Code Samples

To find the code sample to use for your Phidget, navigate to the Code Samples page and select your device from the drop-down menu.

Once you select your device, the code sample generator will give you a working code sample, and a selection of options to customize it to your needs.

Using the Code Samples

If it's unclear what any of the options do, click on the nearby '?' for more info.

Once you've made your selections, click the Visual Studio Project button under Downloads.

Using the Code Samples

Extract the files and open the .sln file.

Then start the example by pressing the Start button:

What's Next?

Now that you've set up Phidgets in your C programming environment, you should read our guide on Phidget Programming Basics to learn the fundamentals of programming with Phidgets.

In particular, you should ensure that you familiarize yourself with how error handling is done in C, because it's not automatically implemented like in other programming languages. Once you've added error handling to your code, you can use the Error Code List to anticipate and handle various errors.

Continue down below for advanced information and troubleshooting for your device.

«
»