USB project

General discussion on mikroC.
Post Reply
Author
Message
lcpoon
Posts: 11
Joined: 04 Sep 2009 11:46

USB project

#1 Post by lcpoon » 04 Sep 2009 11:52

I am using HID Terminal to generate the USBdsc.C file and included this file into my project. However, when I compiled the project, errors: can't open include file "definit.h" and can't open include file "vars.h" appeared. I am new to C programming, how to solve this?

pronk
Posts: 18
Joined: 16 Jul 2009 01:02

Re: USB project

#2 Post by pronk » 04 Sep 2009 15:34

open c:\program files\Mikroelektronika\mikroC PRO for PIC\Examples\Internal MCU modules\p18F4550\HID Read Write Test

you will find VARs.h and Definit.h copy and paste them in your project folder

Donlanthirion
Posts: 14
Joined: 19 Jul 2009 00:10
Location: Brazil
Contact:

#3 Post by Donlanthirion » 04 Sep 2009 15:45

Both vars.h and definit.h are located on C:\Program Files\Mikroelektronika\mikroC PRO for PIC\Examples\Internal MCU modules\p18F4550\HID Read Write Test folder. Try copying them into your project folder, add them to your project (via MikroC IDE) and then compile it again. See if it works.

User avatar
nikola.kostic
mikroElektronika team
Posts: 433
Joined: 11 Aug 2009 12:12

#4 Post by nikola.kostic » 07 Sep 2009 11:14

lcpoon,

I have added required .hex files and sent you complete project via support ticket you created.

gcastillo
Posts: 2
Joined: 04 Mar 2011 23:53

Re: USB project

#5 Post by gcastillo » 14 Mar 2011 22:12

Hi.. i'm having the same problem with my project, and i've copied those files into my project but still doesn't work.. get the same error.. Icpoon, were you able to solve it?

wjfong
Posts: 8
Joined: 07 Mar 2011 21:15

Re: USB project

#6 Post by wjfong » 29 Mar 2011 03:58

hello, when i check the example directory on my harddisc, i just saw USBdsc & i cant find Definit.h & VARs.h files...

can someone email me the files?? wjfong@hotmail.com

thanks a lot :D

Post Reply

Return to “mikroC General”