CodeWalrus

Development => PC, Mac & Vintage Computers => Topic started by: Snektron on January 13, 2015, 11:19:15 PM

Title: C windows api
Post by: Snektron on January 13, 2015, 11:19:15 PM
So im trying to send some bytes trough an usb port in C. i'm using some
library (http://www.signal11.us/oss/hidapi/ (http://www.signal11.us/oss/hidapi/)) which does most of
the work. At least it should be. When i put the c file for windows in
my project, it gives some errors under "SetupDiGetClassDevsA"
and more from "setupapi". Apparently i need to link this DLL with my project.

I'm using MinGW and code in Eclipse (pls no h8). Note that ive never
done PC C before (only some GLSL and SDCC).
(http://i.imgur.com/xVyoSl.jpg)
This image is quite appropriate of how im feeling right now.
Title: Re: C windows api
Post by: Yuki on January 14, 2015, 01:17:34 AM
The Windows API is indeed not quite the best place to start if you want to do C.
Title: Re: C windows api
Post by: Dream of Omnimaga on January 14, 2015, 01:33:43 AM
I assume you mean TI-Nspire or Casio C since this is in the calculator forums, right? Just making sure in case there is any confusion from people not checking the sub-forum and to make sure this is in the right sub-forum.
Title: Re: C windows api
Post by: Snektron on January 14, 2015, 07:56:20 AM
Oh did i start the topic in on-calc? Hm that must have been
A misclick :/
Title: Re: C windows api
Post by: Dream of Omnimaga on January 14, 2015, 07:58:37 AM
Yeah it was there at first. I wasn't sure if I should move it at first because I'm unfamiliar with C and I wasn't sure if you wanted to create an Ndless program.

No problem, though. Stuff like that happens :)
Title: Re: C windows api
Post by: Snektron on January 14, 2015, 08:20:43 PM
So i've decided to make this project in java, so this question is no longer relevant :P