By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,384 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

Query:how to use windows api in my c source code?

P: n/a
Hello Everybody:
I'm learning c now.I think it's really a tedious job following my
textbook to write programs which are used to deal with math problems.I
want to write some codes related with OS(just like creating processes or
so).Then it may refers to the applying of windows API.
Now here is my question:How to use api in my source code without
error?Will the statement "#include<windows.h>" do(I can't find this head
file in my include directory)?Or there might have some other ways?
By the way:My os is windowXP and compiler is TURBO c2.0.
Any help will be greatly appreciated.

Dowson.
Jun 12 '07 #1
Share this Question
Share on Google+
69 Replies


P: n/a
In article <f4**********@news.cn99.com>, Jack Dowson <jc*****@aol.comwrote:
>Now here is my question:How to use api in my source code without
error?Will the statement "#include<windows.h>" do
You should ask about this in one of the Windows programing newsgroups.
Sorry, I don't keep track of their names; I usually stick to pure C,
or to C with POSIX extensions. comp.lang.c only discusses the things
defined by the C programming language, not anything OS specific.
--
Prototypes are supertypes of their clones. -- maplesoft
Jun 12 '07 #2

P: n/a
Walter Roberson said:
In article <f4**********@news.cn99.com>, Jack Dowson
<jc*****@aol.comwrote:
>>Now here is my question:How to use api in my source code without
error?Will the statement "#include<windows.h>" do

You should ask about this in one of the Windows programing newsgroups.
Sorry, I don't keep track of their names;
comp.os.ms-windows.programmer.win32

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 12 '07 #3

P: n/a
Jack Dowson wrote:
Hello Everybody:
I'm learning c now.I think it's really a tedious job following my
textbook to write programs which are used to deal with math problems.I
want to write some codes related with OS(just like creating processes or
so).Then it may refers to the applying of windows API.
Now here is my question:How to use api in my source code without
error?Will the statement "#include<windows.h>" do(I can't find this head
file in my include directory)?Or there might have some other ways?
By the way:My os is windowXP and compiler is TURBO c2.0.
Any help will be greatly appreciated.

Dowson.
Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.

Turbo c 2.0 is an outdated compiler. You should use a newer one.

For instance, you can download
http://www.cs.virginia.edu/~lcc-win32
for free

jacob
Jun 12 '07 #4

P: n/a
jacob navia wrote:
>
.... snip ...
>
Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.
You know better than to answer an off-topic question in this
newsgroup. You should give him a reference to a suitable group.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 12 '07 #5

P: n/a
Jack Dowson wrote:
>
I'm learning c now.I think it's really a tedious job following my
textbook to write programs which are used to deal with math
problems.I want to write some codes related with OS(just like
creating processes or so).Then it may refers to the applying of
windows API. Now here is my question:How to use api in my source
code without error?Will the statement "#include<windows.h>" do(I
can't find this head file in my include directory)?Or there might
have some other ways? By the way:My os is windowXP and compiler
is TURBO c2.0.
Specific system, such as windows, Turbo C, etc. are off-topic here,
where we deal with the C language as defined in the various C
standards. In particular, there is no such include file as
<windows.hin standard C, so your question is unanswerable here.
Things would be different on a windows news group, but strictly
limited to windows systems.

Try the references in my sig. below:

--
Some useful references about C:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html (C-faq)
<http://benpfaff.org/writings/clc/off-topic.html>
<http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/(C99 std)
<http://www.dinkumware.com/refxc.html (C-library}
<http://gcc.gnu.org/onlinedocs/ (GNU docs)
<http://clc-wiki.net/wiki/C_community:comp.lang.c:Introduction>

--
Posted via a free Usenet account from http://www.teranews.com

Jun 12 '07 #6

P: n/a
On Tue, 12 Jun 2007 18:59:45 -0400, CBFalconer <cb********@yahoo.com>
wrote:
>jacob navia wrote:
>>
... snip ...
>>
Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.

You know better than to answer an off-topic question in this
newsgroup. You should give him a reference to a suitable group.
It wasn't an answer, it was an advertising opportunity.

--
Al Balmer
Sun City, AZ
Jun 12 '07 #7

P: n/a
CBFalconer said:
jacob navia wrote:
>>
... snip ...
>>
Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.

You know better than to answer an off-topic question in this
newsgroup.
No, he doesn't. Caveat emptor!

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 13 '07 #8

P: n/a
Richard Heathfield wrote:
CBFalconer said:
>jacob navia wrote:
>>>
... snip ...
>>>
Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.

You know better than to answer an off-topic question in this
newsgroup.

No, he doesn't. Caveat emptor!
I disagree. He does, but he doesn't. :-)

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 13 '07 #9

P: n/a
In article <46***************@yahoo.com>,
CBFalconer <cb********@maineline.netwrote:
>Richard Heathfield wrote:
>CBFalconer said:
>>jacob navia wrote:

... snip ...

Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.

You know better than to answer an off-topic question in this
newsgroup.

No, he doesn't. Caveat emptor!

I disagree. He does, but he doesn't. :-)
In much the same way that most of the American public (and 100% of the
regulars in this NG) "know" that Christ was born of a virgin. "Knowing"
things that you know aren't true is dangerous.

Jun 13 '07 #10

P: n/a
On 12 Jun 2007 at 22:56, CBFalconer wrote:
Try the references in my sig. below:
If you really intend the OP to see the list of references, put it in the
main body of your post - many people have their newsreaders hide
signatures. Of course, in your case that might well fail and only the
second of your signatures be recognized as a signature.
--
Some useful references about C:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html (C-faq)
<http://benpfaff.org/writings/clc/off-topic.html>
<http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/(C99 std)
<http://www.dinkumware.com/refxc.html (C-library}
<http://gcc.gnu.org/onlinedocs/ (GNU docs)
<http://clc-wiki.net/wiki/C_community:comp.lang.c:Introduction>

--
Posted via a free Usenet account from http://www.teranews.com
Either way, this sig/these sigs are in gratuitous violation of basic
netiquette.

--
CBFalconer: breathtaking hypocrite or insidious troll?
Jun 14 '07 #11

P: n/a
On 12 Jun 2007 at 22:59, CBFalconer wrote:
You know better than to answer an off-topic question in this
newsgroup. You should give him a reference to a suitable group.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com
You know better than to breach basic netiquette with this over-long sig.
You should cut it down, and omit the second sig.

--
CBFalconer: breathtaking hypocrite or insidious troll?
Jun 14 '07 #12

P: n/a
On Thu, 14 Jun 2007 21:44:13 +0200 (CEST), Net Nanny
<ne******@pointlesspedantry.comwrote:
>On 12 Jun 2007 at 22:59, CBFalconer wrote:
>You know better than to answer an off-topic question in this
newsgroup. You should give him a reference to a suitable group.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

You know better than to breach basic netiquette with this over-long sig.
You should cut it down, and omit the second sig.
Probably, he would love to omit the second sig, but then he'd have to
use a non-free news server ;-)

--
Al Balmer
Sun City, AZ
Jun 14 '07 #13

P: n/a
On Thu, 14 Jun 2007 21:42:37 +0200 (CEST), Net Nanny
<ne******@pointlesspedantry.comwrote:
>On 12 Jun 2007 at 22:56, CBFalconer wrote:
>Try the references in my sig. below:

If you really intend the OP to see the list of references, put it in the
main body of your post - many people have their newsreaders hide
signatures.
I never heard of that. Which newsreaders provide that option? Why
would anyone want to use it?

For the intended purpose, the references are in the proper place. They
do exceed the 4-line limit, of course.

--
Al Balmer
Sun City, AZ
Jun 14 '07 #14

P: n/a
Al Balmer wrote:
| On Thu, 14 Jun 2007 21:42:37 +0200 (CEST), Net Nanny
| <ne******@pointlesspedantry.comwrote:
|
|| On 12 Jun 2007 at 22:56, CBFalconer wrote:
||| Try the references in my sig. below:
||
|| If you really intend the OP to see the list of references, put it
|| in the main body of your post - many people have their newsreaders
|| hide signatures.
|
| I never heard of that. Which newsreaders provide that option? Why
| would anyone want to use it?

It's done all the time, Al - In fact, I just set up a 'rule' on
Outhouse Express that deletes all of netnanny's sigs. 8-)

| For the intended purpose, the references are in the proper place.
| They do exceed the 4-line limit, of course.

BFD! In the context of all other problems in the world today, there
are surely more pressing needs than counting lines in sig files...

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
Jun 14 '07 #15

P: n/a
Morris Dovey said:
Al Balmer wrote:
<snip>
>
| For the intended purpose, the references are in the proper place.
| They do exceed the 4-line limit, of course.

BFD! In the context of all other problems in the world today, there
are surely more pressing needs than counting lines in sig files...
There are more pressing needs than using an int to receive getchar's
return value, too. But when someone is told that int is appropriate and
yet continues to use char over and /over/ and OVER, what does that tell
us about him?

Chuck has been told over and /over/ and OVER about his sig, and yet he
continues to violate the Usenet convention of four lines. Until he
fixes that, his criticisms of other people's netiquette violations have
little or no moral force.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 14 '07 #16

P: n/a
Al Balmer wrote:
<ne******@pointlesspedantry.comwrote:
>On 12 Jun 2007 at 22:56, CBFalconer wrote:
>>Try the references in my sig. below:

If you really intend the OP to see the list of references, put it
in the main body of your post - many people have their newsreaders
hide signatures.

I never heard of that. Which newsreaders provide that option? Why
would anyone want to use it?

For the intended purpose, the references are in the proper place.
They do exceed the 4-line limit, of course.
And it's not a limit, it is a suggested max. My lines are
relatively short, so they consume less space than 4 80 char. lines.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 14 '07 #17

P: n/a
Net Nanny wrote:

You know better than to breach basic netiquette with this over-long
sig. You should cut it down, and omit the second sig.
You are aware that the "second sig" is added by his news service, over
which he has no control, right?


Brian
Jun 14 '07 #18

P: n/a
On Thu, 14 Jun 2007 16:33:56 -0500, "Morris Dovey" <mr*****@iedu.com>
wrote:
>Al Balmer wrote:
| On Thu, 14 Jun 2007 21:42:37 +0200 (CEST), Net Nanny
| <ne******@pointlesspedantry.comwrote:
|
|| On 12 Jun 2007 at 22:56, CBFalconer wrote:
||| Try the references in my sig. below:
||
|| If you really intend the OP to see the list of references, put it
|| in the main body of your post - many people have their newsreaders
|| hide signatures.
|
| I never heard of that. Which newsreaders provide that option? Why
| would anyone want to use it?

It's done all the time, Al - In fact, I just set up a 'rule' on
Outhouse Express that deletes all of netnanny's sigs. 8-)
I can do better - a rule that deletes his entire post :-)

I'd be interested in how you get OE to edit a received post with a
rule. In Outlook non-express, it could be done by running a script, I
suppose, but I've never used OE.
>
| For the intended purpose, the references are in the proper place.
| They do exceed the 4-line limit, of course.

BFD! In the context of all other problems in the world today, there
are surely more pressing needs than counting lines in sig files...
--
Al Balmer
Sun City, AZ
Jun 14 '07 #19

P: n/a
Al Balmer wrote:
On Thu, 14 Jun 2007 21:42:37 +0200 (CEST), Net Nanny
<ne******@pointlesspedantry.comwrote:
On 12 Jun 2007 at 22:56, CBFalconer wrote:
Try the references in my sig. below:
If you really intend the OP to see the list of references, put it
in the main body of your post - many people have their newsreaders
hide signatures.

I never heard of that. Which newsreaders provide that option? Why
would anyone want to use it?
I could, after a fashion, by setting the .sig text color to the same as
the background (it's currently a shade of gray somewhat darker than the
background). The text would still be there, and I could drag across it
and see it.
For the intended purpose, the references are in the proper place. They
do exceed the 4-line limit, of course.
True. It's not an flagrant violation, but one all the same.

Brian
Jun 14 '07 #20

P: n/a
Richard Heathfield wrote:
| Morris Dovey said:
|
|| Al Balmer wrote:
| <snip>
||
||| For the intended purpose, the references are in the proper place.
||| They do exceed the 4-line limit, of course.
||
|| BFD! In the context of all other problems in the world today, there
|| are surely more pressing needs than counting lines in sig files...
|
| There are more pressing needs than using an int to receive getchar's
| return value, too. But when someone is told that int is appropriate
| and yet continues to use char over and /over/ and OVER, what does
| that tell us about him?
|
| Chuck has been told over and /over/ and OVER about his sig, and yet
| he continues to violate the Usenet convention of four lines. Until
| he fixes that, his criticisms of other people's netiquette
| violations have little or no moral force.

Agreed. <s>

Still, here in c.l.c it does seem (to me) more appropriate to focus on
C language/usage issues than to waste time beating up on CBF for
teranews' antisocial behavior.

If CBF reads this and likes the idea, I'm willing to host an orphan
page with his C links. That way he can shrink his sig to point to that
page.

BTW, I still have a Post-It with your initials on it stuck to the
front of a small book (ISBN 0-13-110163-3) that you once said you
wanted. If you don't want it, please let me know - else send your
mailing address!

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
Jun 15 '07 #21

P: n/a
Morris Dovey said:
Richard Heathfield wrote:
<snip>
|
| Chuck has been told over and /over/ and OVER about his sig, and yet
| he continues to violate the Usenet convention of four lines. Until
| he fixes that, his criticisms of other people's netiquette
| violations have little or no moral force.

Agreed. <s>

Still, here in c.l.c it does seem (to me) more appropriate to focus on
C language/usage issues than to waste time beating up on CBF for
teranews' antisocial behavior.
Oh, I can live with that. I'm talking about /his/ outsized sig block
data, not his ISP's additions.
BTW, I still have a Post-It with your initials on it stuck to the
front of a small book
Can't be my book, then. :-)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 15 '07 #22

P: n/a
Al Balmer wrote:
| On Thu, 14 Jun 2007 16:33:56 -0500, "Morris Dovey"
| <mr*****@iedu.comwrote:

|| It's done all the time, Al - In fact, I just set up a 'rule' on
|| Outhouse Express that deletes all of netnanny's sigs. 8-)
|
| I can do better - a rule that deletes his entire post :-)
|
| I'd be interested in how you get OE to edit a received post with a
| rule. In Outlook non-express, it could be done by running a script,
| I suppose, but I've never used OE.

Well, it's not exactly "editing". If truth be told, it deleted all
headers /and/ the message text right along with the sig. :-D

Never used OE? Excellent decision!
I'm inclined to believe that in its original form OE was a real-time
tectonic emulator with more fault lines than California put together.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
Jun 15 '07 #23

P: n/a
Richard Heathfield wrote:
| Morris Dovey said:
|
|| BTW, I still have a Post-It with your initials on it stuck to the
|| front of a small book
|
| Can't be my book, then. :-)

Of course not. That would be ISBN 0-672-31896-2, three volumes over.
These days it'd probably be considered an act of terrorism to attempt
sending anything that heavy by air.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
Jun 15 '07 #24

P: n/a
"Default User" <de***********@yahoo.comwrote:
Net Nanny wrote:
You know better than to breach basic netiquette with this over-long
sig. You should cut it down, and omit the second sig.

You are aware that the "second sig" is added by his news service, over
which he has no control, right?
Yes, he does. He can get a real, non-violating news service.

But please don't follow up to Kenny, or to his nyms.

Richard
Jun 15 '07 #25

P: n/a
In article <46***************@news.xs4all.nl>,
Richard Bos <rl*@hoekstra-uitgeverij.nlwrote:
>"Default User" <de***********@yahoo.comwrote:
>Net Nanny wrote:
You know better than to breach basic netiquette with this over-long
sig. You should cut it down, and omit the second sig.

You are aware that the "second sig" is added by his news service, over
which he has no control, right?

Yes, he does. He can get a real, non-violating news service.

But please don't follow up to Kenny, or to his nyms.

Richard
Savoir Faire is everywhere!

Jun 15 '07 #26

P: n/a
On Thu, 14 Jun 2007 19:38:04 -0500, "Morris Dovey" <mr*****@iedu.com>
wrote:
>Al Balmer wrote:
| On Thu, 14 Jun 2007 16:33:56 -0500, "Morris Dovey"
| <mr*****@iedu.comwrote:

|| It's done all the time, Al - In fact, I just set up a 'rule' on
|| Outhouse Express that deletes all of netnanny's sigs. 8-)
|
| I can do better - a rule that deletes his entire post :-)
|
| I'd be interested in how you get OE to edit a received post with a
| rule. In Outlook non-express, it could be done by running a script,
| I suppose, but I've never used OE.

Well, it's not exactly "editing". If truth be told, it deleted all
headers /and/ the message text right along with the sig. :-D
That explains it <g>. I did the same thing. After I realized who it
was, I knew it would only get worse.
>
Never used OE? Excellent decision!
I'm inclined to believe that in its original form OE was a real-time
tectonic emulator with more fault lines than California put together.
I have to use Outlook at work, and that's bad enough. Microsoft
assumes that you'll like OE - you can't even uninstall it, though you
can remove it from menus and pretend it isn't there.

--
Al Balmer
Sun City, AZ
Jun 15 '07 #27

P: n/a
"Al Balmer" writes:
I have to use Outlook at work, and that's bad enough. Microsoft
assumes that you'll like OE - you can't even uninstall it, though you
can remove it from menus and pretend it isn't there.
Correct me if I'm wrong, but wasn't one of the requirements that had to be
met for software on Windows 95 to display the "official" Microsoft logo on
its packaging, that it had have provisions to uninstall the software?
Jun 15 '07 #28

P: n/a
On Fri, 15 Jun 2007 10:11:47 -0700, "osmium" <r1********@comcast.net>
wrote:
>"Al Balmer" writes:
>I have to use Outlook at work, and that's bad enough. Microsoft
assumes that you'll like OE - you can't even uninstall it, though you
can remove it from menus and pretend it isn't there.

Correct me if I'm wrong, but wasn't one of the requirements that had to be
met for software on Windows 95 to display the "official" Microsoft logo on
its packaging, that it had have provisions to uninstall the software?
That only applied to other people <g>. Actually, I think the current
ability to hide it is only because of the DOJ requirement
(pseudo-unbundling?)

--
Al Balmer
Sun City, AZ
Jun 15 '07 #29

P: n/a
On Fri, 15 Jun 2007 10:11:47 -0700, in comp.lang.c , "osmium"
<r1********@comcast.netwrote:
>"Al Balmer" writes:
>I have to use Outlook at work, and that's bad enough. Microsoft
assumes that you'll like OE - you can't even uninstall it, though you
can remove it from menus and pretend it isn't there.

Correct me if I'm wrong, but wasn't one of the requirements that had to be
met for software on Windows 95 to display the "official" Microsoft logo on
its packaging, that it had have provisions to uninstall the software?
OE was shipped as part of Win95 as far as I remember. Recall the great
Browser Court Case ?
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
Jun 15 '07 #30

P: n/a
Richard Bos wrote:
"Default User" <de***********@yahoo.comwrote:
Net Nanny wrote:
You know better than to breach basic netiquette with this
over-long sig. You should cut it down, and omit the second sig.
You are aware that the "second sig" is added by his news service,
over which he has no control, right?

Yes, he does. He can get a real, non-violating news service.
Of course. As always, I'm highly complimentary of
http://news.individual.net as a reasonably priced alternative for
text-only newsgroups.
But please don't follow up to Kenny, or to his nyms.
That was an early reply, as you can see elsethread I soon wised up.


Brian
Jun 15 '07 #31

P: n/a
Morris Dovey wrote:
Richard Heathfield wrote:
Chuck has been told over and over and OVER about his sig, and yet
he continues to violate the Usenet convention of four lines. Until
he fixes that, his criticisms of other people's netiquette
violations have little or no moral force.

Agreed. <s>
--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/

Speaking of .sigs, yours doesn't have the standard separator. That's
"-- " (dash dash space) on a line by itself. Yours is missing the space.

Brian

Jun 15 '07 #32

P: n/a
Default User wrote:

| Speaking of .sigs, yours doesn't have the standard separator. That's
| "-- " (dash dash space) on a line by itself. Yours is missing the
| space.

Very strange... It's in the sig file and in the locally archived
'sent' copy (as well as in the sig below).

I may have gremlins in my machine 8-|

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
Jun 15 '07 #33

P: n/a
Morris Dovey wrote:
| Default User wrote:
|
|| Speaking of .sigs, yours doesn't have the standard separator.
|| That's "-- " (dash dash space) on a line by itself. Yours is
|| missing the space.
|
| Very strange... It's in the sig file and in the locally archived
| 'sent' copy (as well as in the sig below).
|
| I may have gremlins in my machine 8-|

Hmm. I lied - there's no separator in my sig file. Not sure why you
aren't seeing the space. OE would seem to be recognizing the
separator, but I don't know that it looks for more than double
hyphens. :-(

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
Jun 15 '07 #34

P: n/a
In article <46*********************@news.qwest.net>,
Morris Dovey <mr*****@iedu.comwrote:
>Default User wrote:
>| Speaking of .sigs, yours doesn't have the standard separator. That's
| "-- " (dash dash space) on a line by itself. Yours is missing the
| space.
>Very strange... It's in the sig file and in the locally archived
'sent' copy (as well as in the sig below).
I confirm that by the time your messages reach me, the trailing space
on the separator is gone.

This is, of course, entirely conforming behaviour for a C program:

C89 4.9.2 Streams

A text stream is an ordered sequence of characters composed into
lines, each line consisting of zero or more characters plus a
terminating new-line character. Whether the last line requires
a terminating new-line character is implementation-defined.
Characters may have to be added, altered, or deleted on input and
output to conform to differing conventions for representing text
in the host environment. Thus, there need not be a one-to-one
correspondance between the characters in a stream and those in
the external represtnation. Data read in from a text stream
will necessarily compare equal to the data that were earlier written
out to that stream only if: the data consists only of printable
characters and the control characters horizontal tab and new-line;
no new-line character is immediately preceded by space characters; and
the last character is a new-line character. Whether space characters
that are written out immediately before a new-line character
appear when read in is implementation-defined.

--
If you lie to the compiler, it will get its revenge. -- Henry Spencer
Jun 15 '07 #35

P: n/a
In article <46*********************@news.qwest.net>,
Morris Dovey <mr*****@iedu.comwrote:
>Morris Dovey wrote:
| Default User wrote:
|
|| Speaking of .sigs, yours doesn't have the standard separator.
|| That's "-- " (dash dash space) on a line by itself. Yours is
|| missing the space.
|
| Very strange... It's in the sig file and in the locally archived
| 'sent' copy (as well as in the sig below).
|
| I may have gremlins in my machine 8-|

Hmm. I lied - there's no separator in my sig file. Not sure why you
aren't seeing the space. OE would seem to be recognizing the
separator, but I don't know that it looks for more than double
hyphens. :-(
I'm pretty sure the phrase "dash dash space" does not appear in the C
standard. Further, OE is off-topic here; I'm sure someone else will
helpfully provide a pointer to an appropriate newsgroup.
Therefore, your post is:

Off topic. Not portable. Cant discuss it here. Blah, blah, blah.

Useful clc-related links:

http://en.wikipedia.org/wiki/Aspergers
http://en.wikipedia.org/wiki/Clique
http://en.wikipedia.org/wiki/C_programming_language

Jun 15 '07 #36

P: n/a
Morris Dovey wrote:
Morris Dovey wrote:
Default User wrote:
Speaking of .sigs, yours doesn't have the standard separator.
That's "-- " (dash dash space) on a line by itself. Yours is
missing the space.
Very strange... It's in the sig file and in the locally archived
'sent' copy (as well as in the sig below).

I may have gremlins in my machine 8-|

Hmm. I lied - there's no separator in my sig file. Not sure why you
aren't seeing the space.
You can check the settings on your newsreader, I suppose. That may be
some sort of option.
OE would seem to be recognizing the
separator, but I don't know that it looks for more than double
hyphens. :-(
Some newsreaders will recognize non-standard separators. Mine will, but
I have it set to "strict" in that regard.

Brian
Jun 15 '07 #37

P: n/a
Walter Roberson wrote, On 15/06/07 22:54:
In article <46*********************@news.qwest.net>,
Morris Dovey <mr*****@iedu.comwrote:
>Default User wrote:
>| Speaking of .sigs, yours doesn't have the standard separator. That's
| "-- " (dash dash space) on a line by itself. Yours is missing the
| space.
>Very strange... It's in the sig file and in the locally archived
'sent' copy (as well as in the sig below).

I confirm that by the time your messages reach me, the trailing space
on the separator is gone.

This is, of course, entirely conforming behaviour for a C program:

C89 4.9.2 Streams
<snip>

Which just goes to show some of OE might be written in C.

OS stripping the space from the sig-sep is well known in certain places.
I suggest searching for quotefix, I've no experience of it myself, but
I've heard it fixes a number of broken elements of OE. Or, of course,
use something that work better.
--
Flash Gordon
Jun 15 '07 #38

P: n/a
Morris Dovey said:

<snip>
Hmm. I lied - there's no separator in my sig file. Not sure why you
aren't seeing the space.
Well, they're tricky beasts to see at the best of times, but in this
case we're not seeing it because it's not there.
OE would seem to be recognizing the
separator, but I don't know that it looks for more than double
hyphens. :-(
Why not get a real newsreader, Morris? :-)
>
--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
KNode would have stripped this out if it were well-formed.

ObTopic: the three-character sequence "-- " occurs no fewer than 42
times in my draft copy of C89. Does that make sig block markers topical
here?

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 15 '07 #39

P: n/a
Richard Heathfield wrote:
Morris Dovey said:

<snip>
Hmm. I lied - there's no separator in my sig file. Not sure why you
aren't seeing the space.

Well, they're tricky beasts to see at the best of times, but in this
case we're not seeing it because it's not there.
I almost said that, but decided that he meant, "I don't know why my
messages don't contain it in the correct place."

I'm just that kind of swell guy.

Brian
Jun 15 '07 #40

P: n/a
Flash Gordon wrote:

| I suggest searching for quotefix, I've no experience of it
| myself, but I've heard it fixes a number of broken elements of OE.
| Or, of course, use something that work better.

<vbgI've been running quotefix, and was just wondering if that might
not be part of the problem.

I'm fairly certain OE isn't written in (standard) C.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
Jun 16 '07 #41

P: n/a
Richard Heathfield wrote:
| Morris Dovey said:
|
| <snip>
|
|| Hmm. I lied - there's no separator in my sig file. Not sure why you
|| aren't seeing the space.
|
| Well, they're tricky beasts to see at the best of times, but in this
| case we're not seeing it because it's not there.
|
|| OE would seem to be recognizing the
|| separator, but I don't know that it looks for more than double
|| hyphens. :-(
|
| Why not get a real newsreader, Morris? :-)

Ok. Will return when I've managed to repair it.

--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto/
Jun 16 '07 #42

P: n/a
Morris Dovey wrote, On 16/06/07 02:36:
Flash Gordon wrote:

| I suggest searching for quotefix, I've no experience of it
| myself, but I've heard it fixes a number of broken elements of OE.
| Or, of course, use something that work better.

<vbgI've been running quotefix, and was just wondering if that might
not be part of the problem.
Check your options than.
I'm fairly certain OE isn't written in (standard) C.
True, but if some of it was then it would be allowed to behave like this :-)
--
Flash Gordon
Jun 16 '07 #43

P: n/a
Flash Gordon <sp**@flash-gordon.me.ukwrites:
Morris Dovey wrote, On 16/06/07 02:36:
>Flash Gordon wrote:
| I suggest searching for quotefix, I've no experience of it
| myself, but I've heard it fixes a number of broken elements of OE.
| Or, of course, use something that work better.
<vbgI've been running quotefix, and was just wondering if that
might
not be part of the problem.

Check your options than.
>I'm fairly certain OE isn't written in (standard) C.

True, but if some of it was then it would be allowed to behave like
this :-)
This is, of course, entirely theoretical; OE runs on an OS that allows
trailing blanks in text files.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 16 '07 #44

P: n/a
In article <f4**********@news.cn99.com>, Jack Dowson <jc*****@aol.com>
writes
>Hello Everybody:
I'm learning c now.I think it's really a tedious job following my
textbook to write programs which are used to deal with math problems.I
want to write some codes related with OS(just like creating processes or
so).Then it may refers to the applying of windows API.
Now here is my question:How to use api in my source code without
error?Will the statement "#include<windows.h>" do(I can't find this head
file in my include directory)?Or there might have some other ways?
By the way:My os is windowXP and compiler is TURBO c2.0.
Any help will be greatly appreciated.

Dowson.

1 You will need to ask in a more suitable NG ie a windows one.

2 Turbo C 2 whilst a very good compiler in it's day targeted DOS and at
best Win3.1 You will need a a much newer compiler that has the
capability to handle the newer processors and has the libraries for
Windows XP.

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 18 '07 #45

P: n/a
In article <46***************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>jacob navia wrote:
>>
... snip ...
>>
Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.

You know better than to answer an off-topic question in this
newsgroup. You should give him a reference to a suitable group.
He can answer who he likes, how he likes.

Don't start the OT rubbish again. Your definition is yours. Others have
other definitions of OT. (that is On topic or Off Topic as suites)

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 18 '07 #46

P: n/a
Chris Hills <ch***@phaedsys.orgwrites:
In article <46***************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>>jacob navia wrote:
>>>
... snip ...
>>>
Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.

You know better than to answer an off-topic question in this
newsgroup. You should give him a reference to a suitable group.

He can answer who he likes, how he likes.

Don't start the OT rubbish again. Your definition is yours. Others
have other definitions of OT. (that is On topic or Off Topic as
suites)
And you've never told us *your* definition of what's topical and what
isn't.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 18 '07 #47

P: n/a
In article <46*********************@news.qwest.net>, Morris Dovey
<mr*****@iedu.comwrites
>Richard Heathfield wrote:
| Morris Dovey said:
|
|| BTW, I still have a Post-It with your initials on it stuck to the
|| front of a small book
|
| Can't be my book, then. :-)

Of course not. That would be ISBN 0-672-31896-2, three volumes over.
These days it'd probably be considered an act of terrorism to attempt
sending anything that heavy by air.

Only in the USA where paranoia triumphs over common sense and reality
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 18 '07 #48

P: n/a
In article <46***************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>Jack Dowson wrote:
>>
I'm learning c now.I think it's really a tedious job following my
textbook to write programs which are used to deal with math
problems.I want to write some codes related with OS(just like
creating processes or so).Then it may refers to the applying of
windows API. Now here is my question:How to use api in my source
code without error?Will the statement "#include<windows.h>" do(I
can't find this head file in my include directory)?Or there might
have some other ways? By the way:My os is windowXP and compiler
is TURBO c2.0.

Specific system, such as windows, Turbo C, etc. are off-topic here,
where we deal with the C language as defined in the various C
standards.
You do others don't
>In particular, there is no such include file as
<windows.hin standard C,
True but many C compilers inthe desktop market have it.
so your question is unanswerable here.
No it's not.
>Things would be different on a windows news group, but strictly
limited to windows systems.
But strict windows groups also cover C....
>Try the references in my sig. below:
Your illegal over long sig.... You should at least halve it before you
have any credibility as to what the rules for this NG are.
>
--
Some useful references about C:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html (C-faq)
<http://benpfaff.org/writings/clc/off-topic.html>
<http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/(C99 std)
<http://www.dinkumware.com/refxc.html (C-library}
<http://gcc.gnu.org/onlinedocs/ (GNU docs)
<http://clc-wiki.net/wiki/C_community:comp.lang.c:Introduction>
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 18 '07 #49

P: n/a
In article <ln************@nuthaus.mib.org>, Keith Thompson
<ks***@mib.orgwrites
>Chris Hills <ch***@phaedsys.orgwrites:
>In article <46***************@yahoo.com>, CBFalconer
<cb********@yahoo.comwrites
>>>jacob navia wrote:

... snip ...

Normally that will do to use most of the API exposed by windows.
If there are additional header files to be included you should see
that in the documentation of the specific function of the API
you want to use.

You know better than to answer an off-topic question in this
newsgroup. You should give him a reference to a suitable group.

He can answer who he likes, how he likes.

Don't start the OT rubbish again. Your definition is yours. Others
have other definitions of OT. (that is On topic or Off Topic as
suites)

And you've never told us *your* definition of what's topical and what
isn't.
We largely the same as yours but I would widen it to most C questions.
However as you point out in depth discussions of various OS and other
things is not the main aim of this NG.

However I would not react to posters for being OT in the way you do, Be
nicer, more helpful. Some of the net nannies on here seem to have
personal problems.

Relax if you answer more of, what you call, OT questions on here we
would not get endless arguments of what is OT and what is OT

Your fear of this ng not staying racially pure has overtones of AH not
KR

--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ ch***@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Jun 18 '07 #50

69 Replies

This discussion thread is closed

Replies have been disabled for this discussion.