Well your first handicap is that Turbo C will know nothing about USB.
I'm going to make a guess that your operating system is XP - am I right?
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
AT commands are serial
so you will have to first deal with USB-Serial conversion.
but yeah, throw that Turbo C trash away real quick before it makes you a completely worthless programmer.
(an aside to Salem, or anyone else: where are all these Turbo-C people coming from? how does Borland keep perpetuating their shi**y compiler?? )
jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
code::blocks would be my suggestion.
http://www.codeblocks.org/
Be sure you get the IDE and the compiler (the larger of the two downloads) the first time you get it. The IDE itself is under current development.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
^ what he said.
the version you want is the one that has "MinGW" in the name. that's the GCC compiler.
i think you'll like the IDE, too.
jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
Sorry, but I'm not going to tolerate you mashing of the English language, so I'm going to ignore you instead.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
LOL, come on, dude. just look at this
Which header files hv to be included to access serial ports using the codebloscks compiler? is dere a tutorial fr d same????
hv?
dere?
fr?
d?
are you serious???
you sound like a complete tard. if you cant be bothered to "talk" correctly, what matter is it to us whether or not you ever get your code right?
you know, i cant speak for anyone else here, but this... hardware, C code ... it's my industry. it's how i make a living. i spend 45 hours a week at a job, and i have to deal with many co-workers, from different areas. and the simple fact is, i don't want to work with idiots.
i just don't. Life is too short, and i don't have the patience for them. So it's in my interest to dissuade people who i think are idiots from entering my industry. While I can't actively *stop* them, I certainly don't have to *help* them.
.
jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
Well let me assure you I have enough command over the English language but its just that my generation is probably more used to converse in the "SMS lingo". If you have a problem understanding my language there is a more gracious way of saying so rather than adopting a condescending tone like you just did(or the guy before you). I appreciate the fact that you are trying to help me but please understand that I am just an amateur & not an expert like you all.
There are many people here from non-English speaking countries and leek speak is difficult if not impossible for them to read. Hell, I even have trouble reading your posts. Please read DaniWeb Rules -- the link is at the top of every page. And any further posts about this matter will get this thread closed.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
CHAMPNIM
check out this example:
http://www.captain.at/howto-simple-serial-port-test-example.php
and just to clarify, your C code is not dependent on CodeBlocks ... CodeBlocks is just the development environment (IDE) ... your C code is dependent upon being compatible with the "GCC compiler" ... this is standard ANSI C, and will serve you well to learn to do the majority of your coding on.
MSVC is another widely-used compiler. you could, at some point, download the free MSVC compiler and use it from CodeBlocks... but worry about that later.
.
jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
You open the port specifying FILE_FLAG_OVERLAPPED, but the WriteFile() call is missing the required pointer to an OVERLAPPED structure.
(87 == ERROR_INVALID_PARAMETER)
mitrmkar
Posting Virtuoso
1,809 posts since Nov 2007
Reputation Points: 1,105
Solved Threads: 395