Join us on Discord!
You can help CodeWalrus stay online by donating here.

C windows api

Started by Snektron, January 13, 2015, 11:19:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Snektron

So im trying to send some bytes trough an usb port in C. i'm using some
library (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).

This image is quite appropriate of how im feeling right now.
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Yuki

The Windows API is indeed not quite the best place to start if you want to do C.
  • Calculators owned: TI-83+ (dead?), Casio Prizm (also dead???)
  • Consoles, mobile devices and vintage computers owned: A lot
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron

if you wanna throw money at me and/or CodeWalrus monthly it's here

Dream of Omnimaga

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.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

Oh did i start the topic in on-calc? Hm that must have been
A misclick :/
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Dream of Omnimaga

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 :)
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

So i've decided to make this project in java, so this question is no longer relevant :P
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Powered by EzPortal