473,385 Members | 1,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

p 161...File access

mdh
Hi All,
There is a line in the discussion of K&R (section 7-5) that says ...
(end of 2nd paragraph, about the middle of the page)...in connection
with the description of getc and putc...that

"Like getchar and putchar, getc and putc may be macros instead of
functions"

Now, recently, I asked why va_list, va_arg, va_start etc were macros,
and the answers included these two insights from KT;

>>>>>>>
a function can't modify an argument.

Â*A C function cannot take 
a type name as an argument
<<<<<<<

Is the significance of this statement ( ie relating to putchar/
getchar) related to macros in va_list at all. And if not, what
significance/insight should I attribute to this statement?
Thanks as usual.

Sep 29 '08 #1
21 1473
>There is a line in the discussion of K&R (section 7-5) that says ...
>(end of 2nd paragraph, about the middle of the page)...in connection
with the description of getc and putc...that

"Like getchar and putchar, getc and putc may be macros instead of
functions"
If they are macros, it's usually for efficiency reasons.

You need to KNOW if getc() and putc() might be macros for
reasons such as:
FILE *f = &array_of_open_files[0];

c = getc(f++);
might not do what you expect it to do because the first argument
of getc() might be evaluated more than once, causing unexpected
results. This is not an issue if getc() *MUST* be a function.

>Now, recently, I asked why va_list, va_arg, va_start etc were macros,
and the answers included these two insights from KT;

>>>>>>>>
a function can't modify an argument.

Â*A C function cannot take 
a type name as an argument
<<<<<<<
>Is the significance of this statement ( ie relating to putchar/
getchar) related to macros in va_list at all.
Have you ever expected getc(unsigned long *) to work correctly?

No. There are lots of different reasons why something might be a macro,
and those reasons need not be related.

>And if not, what
significance/insight should I attribute to this statement?
Which statement?

Code may be considered 'dead' because it can never be reached.
Cats may be considered 'dead' because they have been shot through the
head with a .45 .

Do you think these two statements are related?

Sep 29 '08 #2
On Sun, 28 Sep 2008 23:09:28 -0500,
Gordon Burditt <go***********@burditt.orgwrote:
>>There is a line in the discussion of K&R (section 7-5) that says ...
(end of 2nd paragraph, about the middle of the page)...in connection
with the description of getc and putc...that

"Like getchar and putchar, getc and putc may be macros instead of
functions"

If they are macros, it's usually for efficiency reasons.

You need to KNOW if getc() and putc() might be macros for
reasons such as:
FILE *f = &array_of_open_files[0];

c = getc(f++);
might not do what you expect it to do because the first argument
of getc() might be evaluated more than once, causing unexpected
results. This is not an issue if getc() *MUST* be a function.
If a library function is implemented as a macro, it is not allowed to
evaluate its arguments more than once.

Excerpt from 7.1.4 p1:

Any invocation of a library function that is implemented as a macro shall
expand to code that evaluates each of its arguments exactly once, fully
protected by parentheses where necessary, so it is generally safe to use
arbitrary expressions as arguments.162)

Footnote 162 says: Such macros might not contain the sequence points that the
corresponding function calls do

(This is copied from WG14/N1256. The C99 standard itself has identical
wording, except that the footnote number is 156)

In other words, the code above is guaranteed to behave identical whether
getc() is a macro or a function.
Martien
--
|
Martien Verbruggen | I think there is a world market for maybe
| five computers. -- Thomas Watson, chairman
| of IBM, 1943
Sep 29 '08 #3
Martien Verbruggen <mg**@tradingpost.com.auwrites:
If a library function is implemented as a macro, it is not allowed to
evaluate its arguments more than once.
[...]
In other words, the code above is guaranteed to behave identical whether
getc() is a macro or a function.
It is amazing that you went to all the trouble of quoting all
that without actually looking at the description of the getc
function:

7.19.7.5 The getc function
[...]
2 The getc function is equivalent to fgetc, except that if it
is implemented as a macro, it may evaluate stream more than
once, so the argument should never be an expression with
side effects.

--
"I ran it on my DeathStation 9000 and demons flew out of my nose." --Kaz
Sep 29 '08 #4
go***********@burditt.org (Gordon Burditt) writes:
[...]
>>Now, recently, I asked why va_list, va_arg, va_start etc were macros,
and the answers included these two insights from KT;

>>>>>>>>>
a function can't modify an argument.

ÂÂ*A C function cannot take 
a type name as an argument
<<<<<<<
Gordon:

The above (starting with "Now, recently") was written by mdh. He
quoted something I had written, and he attributed it to me ("insights
from KT"). You left *that* indirect attribution in place.

Nothing bad happened.

Thus endeth the lesson.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Sep 29 '08 #5
mdh
On Sep 29, 12:55*am, Keith Thompson <ks...@mib.orgwrote:
gordonb.bv...@burditt.org (Gordon Burditt) writes:

[...]
>Now, recently, I asked why va_list, va_arg, va_start etc were macros,
and the answers included these two insights from KT;
a function can't modify an argument.
>Â*A C function cannot take 
a type name as an argument
<<<<<<<

Hi Keith,
I am still at a little bit of a loss why K&R specifically mentioned
this factoid. There may have been a lesson in the earlier answer, but
it evaded me.

Sep 29 '08 #6
On Sun, 28 Sep 2008 22:40:01 -0700,
Ben Pfaff <bl*@cs.stanford.eduwrote:
Martien Verbruggen <mg**@tradingpost.com.auwrites:
>If a library function is implemented as a macro, it is not allowed to
evaluate its arguments more than once.
[...]
>In other words, the code above is guaranteed to behave identical whether
getc() is a macro or a function.

It is amazing that you went to all the trouble of quoting all
that without actually looking at the description of the getc
function:

7.19.7.5 The getc function
[...]
2 The getc function is equivalent to fgetc, except that if it
is implemented as a macro, it may evaluate stream more than
once, so the argument should never be an expression with
side effects.
I never noticed that before. This seems to be limited to getc, putc,
getwc and putwc. Any others that are exceptions to this rule that I
missed?

Martien
--
|
Martien Verbruggen | If at first you don't succeed, try again.
| Then quit; there's no use being a damn fool
| about it.
Sep 29 '08 #7
"Gordon Burditt" <go***********@burditt.orgwrote in message
news:sb******************************@posted.inter netamerica...
Cats may be considered 'dead' because they have been shot through the
head
nine times
with a .45 .
:-)

-Mike
Sep 29 '08 #8
mdh <md**@comcast.netwrites:
On Sep 29, 12:55Â*am, Keith Thompson <ks...@mib.orgwrote:
[...]
>>Now, recently, I asked why va_list, va_arg, va_start etc were macros,
and the answers included these two insights from KT;
>a function can't modify an argument.
>>ÂÂ*A C function cannot take 
a type name as an argument
<<<<<<<

Hi Keith,
I am still at a little bit of a loss why K&R specifically mentioned
this factoid. There may have been a lesson in the earlier answer, but
it evaded me.
I wasn't aware that K&R mentioned it (though it's possible they do).

*I* mentioned it in response to your question about why va_* are macros.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Sep 29 '08 #9
>>>Now, recently, I asked why va_list, va_arg, va_start etc were macros,
>>>and the answers included these two insights from KT;
>>>>>>
a function can't modify an argument.

ÂÂ*A C function cannot take 
a type name as an argument
<<<<<<<

Gordon:

The above (starting with "Now, recently") was written by mdh. He
quoted something I had written, and he attributed it to me ("insights
from KT"). You left *that* indirect attribution in place.
Are you sure "KT" isn't a reference to a Knowledge Tree web site?
>Nothing bad happened.
Something bad happened. Someone posted the article to which I am
replying, and talked about nothing but attributions, which are
entirely off-topic. Nowhere do any names of posters appear in the
C standard (with the possible exception of Dennis Ritchie).
Yes, this article is just as much an offender.

Attributions are bad because they provoke many of the "regulars"
into talking about the attributions and the people named in them
rather than talking about C. They call each other "trolls" and
trade insults.

Please don't read the attributions. And if you must read the
attributions, don't copy names from them into the body of the
article. The meaning of what was said doesn't change with who said
it.

Sep 29 '08 #10
Gordon Burditt wrote, On 29/09/08 19:10:
>>>Now, recently, I asked why va_list, va_arg, va_start etc were macros,
Keith Thompson has on many occasions specifically told you that he does
not want his posts quoted without attribution. Since this has often been
done when replying to you I find it unbelievable that you are not aware
of his desire.
>Nothing bad happened.

Something bad happened...
If that is bad, it is something bad happening in response to YOUR
failure to provide attributions.

However, as you are well aware Keith means that no one has sued him as a
result of posting that argument and it did not leed to complaints about
miss-attribution.

<snip>
Attributions are bad because they provoke many of the "regulars"
into talking about the attributions and the people named in them
rather than talking about C. They call each other "trolls" and
trade insults.
It is not the attributions that cause that. After all, such posts are
generally in *direct* response to the person, *not* in response to a
post quoting that person.
Please don't read the attributions. And if you must read the
attributions, don't copy names from them into the body of the
article.
Please ignore Gordon on this matter. The "standard" on news groups is to
attribute quoted material to the poster.
The meaning of what was said doesn't change with who said
it.
No, but how likely it is to be reliable does depend on who posted it. It
also allows one to spot whether it is a debate between just two people
or one with multiple people which can be useful.

For the record, I explicitly deny permission to quote any of the
articles I have ever posted to any news group without attribution. I
also deny permission to quote any of my future articles without attribution.
--
Flash Gordon
If spamming me sent it to sm**@spam.causeway.com
If emailing me use my reply-to address
See the comp.lang.c Wiki hosted by me at http://clc-wiki.net/
Sep 29 '08 #11
go***********@burditt.org (Gordon Burditt) writes:
>>>>Now, recently, I asked why va_list, va_arg, va_start etc were macros,
and the answers included these two insights from KT;
>>>>>>>
a function can't modify an argument.

ÂÂÂ*A C function cannot take 
a type name as an argument
<<<<<<<
The above was written by mdh <md**@comcast.net>.
>>
Gordon:

The above (starting with "Now, recently") was written by mdh. He
quoted something I had written, and he attributed it to me ("insights
from KT"). You left *that* indirect attribution in place.
The above was written by me, Keith Thompson <ks***@mib.org>.
Are you sure "KT" isn't a reference to a Knowledge Tree web site?
Yes.
>>Nothing bad happened.

Something bad happened. Someone posted the article to which I am
replying, and talked about nothing but attributions, which are
entirely off-topic. Nowhere do any names of posters appear in the
C standard (with the possible exception of Dennis Ritchie).
Yes, this article is just as much an offender.

Attributions are bad because they provoke many of the "regulars"
into talking about the attributions and the people named in them
rather than talking about C. They call each other "trolls" and
trade insults.
Nonsense. Your deliberate snipping of attributions occasionally
provokes such discussions. If you left them alone, nothing bad would
happen, and this discussion would not be taking place.
Please don't read the attributions. And if you must read the
attributions, don't copy names from them into the body of the
article. The meaning of what was said doesn't change with who said
it.
What I write is judged in part by what I've written before; same for
everyone else here. If Steve Summit writes something, I check my
facts very carefully before publicly disagreeing. If certain other
posters write something, I check my facts very carefully before
agreeing. Furthermore, this newsgroup isn't just a series of factual
statements (or misstatements) made in a vacuum; it's a kind of
community. Knowing who said what makes it a more pleasant place and
makes it easier to follow the discussions.

I understand that you, Gordon Burditt, are not likely to change your
mind on this topic. I only brought it up again because you
(accidentally) left a partial attribution in place, rather than rudely
deleting deleting it. I don't intend to discuss it again, except for
my usual request when I happen to post a followup to something you
wrote.

I, Keith Thompson, wrote this. Permission to quote this, or anything
else I post to Usenet, without attribution is denied. Permission to
quote with proper attribution is granted, as always.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Sep 29 '08 #12
Gordon Burditt (Yes, that's whp wrote it; sue me Gordon for attributing
to you your own words.) wrote:
Are you sure "KT" isn't a reference to a Knowledge Tree web site?
Yes, and you are an idiot if think otherwise.
Something bad happened. Someone posted the article to which I am
replying, and talked about nothing but attributions, which are
entirely off-topic.
Something bad happened. You stole other people's words without
attribution. That is anti-social and dishonest.
Attributions are bad because they provoke many of the "regulars"
into talking about the attributions and the people named in them
rather than talking about C. They call each other "trolls" and
trade insults.
That is just incredibly stupid. Proper attribution does not lead to
discussion of attribution. Where do you get off telling such blatant lies?
Please don't read the attributions. And if you must read the
attributions, don't copy names from them into the body of the
article. The meaning of what was said doesn't change with who said
it.
This is not only stupid and dishonest, it violates long-standing usenet
policy. Do not pay any attention to Gordon Burditt: he is ignorant and
anti-social and is trying to entice others into his den of ignorance and
misbehavior.

Sep 29 '08 #13
In article <r9************@news.flash-gordon.me.uk>,
Flash Gordon <sp**@flash-gordon.me.ukwrote:
>Gordon Burditt wrote, On 29/09/08 19:10:
[quoting somebody without attribution:]
>>>>Now, recently, I asked why va_list, va_arg, va_start etc were macros,

Keith Thompson has on many occasions specifically told you that he does
not want his posts quoted without attribution. Since this has often been
done when replying to you I find it unbelievable that you are not aware
of his desire.
Perhaps it's time to start sending cease-and-desist letters?
dave

--
Dave Vandervies dj3vande at eskimo dot com
Oh, and hello to everyone that noticed I wasn't here. Everyone else,
please carry on not caring.
--Randy the Random in the scary devil monastery
Sep 29 '08 #14
dj******@csclub.uwaterloo.ca.invalid writes:
In article <r9************@news.flash-gordon.me.uk>,
Flash Gordon <sp**@flash-gordon.me.ukwrote:
>>Gordon Burditt wrote, On 29/09/08 19:10:
[quoting somebody without attribution:]
>>>>>Now, recently, I asked why va_list, va_arg, va_start etc were macros,

Keith Thompson has on many occasions specifically told you that he does
not want his posts quoted without attribution. Since this has often been
done when replying to you I find it unbelievable that you are not aware
of his desire.

Perhaps it's time to start sending cease-and-desist letters?
Nah. His use of my words without attribution is annoying, but I'm
under no obligation to do anything about it, and I choose not to in
this case. I doubt that bringing the legal system into this would be
either appropriate or constructive. This is about rudeness, not legal
liability, Gordon Burditt's absurd claims to the contrary
notwithstanding. I am Keith Thompson, replying to Flash Gordon's
reply to Gordon Burditt. Permission to quote this without attribution
is specifically denied.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Sep 29 '08 #15
Gordon Burditt wrote:
....
Attributions are bad because they provoke many of the "regulars"
into talking about the attributions
Well, so does removing attributions.
... and the people named in them
rather than talking about C. They call each other "trolls" and
trade insults.
Have you seen any evidence to suggest that your refusal to attribute
things people said reduces the name calling? People can identify the
people they want to insult just from the style of the things that
other person says. Also, as far as I can tell, the desire to insult
someone here seems to stem primarily from the content of the message,
not the identity of the person who posted it.
Please don't read the attributions. And if you must read the
attributions, don't copy names from them into the body of the
article. The meaning of what was said doesn't change with who said
it.
When it contains first-person pronouns, the meaning most certainly
changes with the identity of the speaker.

Reputation is an important aspect of almost every culture, and that's
because a person's character can, quite legitimately, affect the right
way to think about what that person says; it can even determine
whether or not there's any point in spending time reading what that
person says.

Statements made by people who have a reputation for lying need to be
either ignored outright, or at least examined more carefully for lies
than those of people who have a reputation for honesty.

Statements by people who have a reputation for careless speech need to
be interpreted differently from those by people with a reputation for
speaking precisely - the same exact sentence can mean quite different
things when written by those two different kinds of people.

Statements by people who have a reputation of being experts in a given
area should be taken more seriously, when discussing that area, than
those by people who do not.

Attribution both enables the building of reputations in the first
place, and also enables the legitimate application of a person's
reputation to interpreting words written by that person.
Sep 29 '08 #16
Gordon Burditt wrote:
mdh wrote:
>There is a line in the discussion of K&R (section 7-5) that
says ... (end of 2nd paragraph, about the middle of the page)
...in connection with the description of getc and putc...that

"Like getchar and putchar, getc and putc may be macros instead
of functions"

If they are macros, it's usually for efficiency reasons.

You need to KNOW if getc() and putc() might be macros for
reasons such as:
FILE *f = &array_of_open_files[0];

c = getc(f++);
might not do what you expect it to do because the first argument
of getc() might be evaluated more than once, causing unexpected
results. This is not an issue if getc() *MUST* be a function.
I have reinstalled the attribution that you carelessly omitted.

You know all this. Just read the description of the function:

7.19.7.5 The getc function

Synopsis
[#1]
#include <stdio.h>
int getc(FILE *stream);

Description

[#2] The getc function is equivalent to fgetc, except that
if it is implemented as a macro, it may evaluate stream more
than once, so the argument should never be an expression
with side effects.

Returns

[#3] The getc function returns the next character from the
input stream pointed to by stream. If the stream is at end-
of-file, the end-of-file indicator for the stream is set and
getc returns EOF. If a read error occurs, the error
indicator for the stream is set and getc returns EOF.

You have various ways of ensuring that getc does NOT call a macro,
including placing the call in parentheses. i.e.:

ch = (getc)(f++); /* perfectly legal */

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Sep 29 '08 #17
Martien Verbruggen wrote:
Gordon Burditt <go***********@burditt.orgwrote:
>mdh wrote:
>>There is a line in the discussion of K&R (section 7-5) that
says ... (end of 2nd paragraph, about the middle of the page)
...in connection with the description of getc and putc...that

"Like getchar and putchar, getc and putc may be macros instead
of functions"

If they are macros, it's usually for efficiency reasons.

You need to KNOW if getc() and putc() might be macros for
reasons such as:
FILE *f = &array_of_open_files[0];

c = getc(f++);
might not do what you expect it to do because the first argument
of getc() might be evaluated more than once, causing unexpected
results. This is not an issue if getc() *MUST* be a function.

If a library function is implemented as a macro, it is not allowed
to evaluate its arguments more than once.
.... snip ...
>
In other words, the code above is guaranteed to behave identical
whether getc() is a macro or a function.
No it isn't. The standard contains specific exemptions for getc
and putc.

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Sep 29 '08 #18
On Sep 29, 11:28 pm, CBFalconer <cbfalco...@yahoo.comwrote:

<snip>
You have various ways of ensuring that getc does NOT call a macro,
including placing the call in parentheses. i.e.:

ch = (getc)(f++); /* perfectly legal */
While absolutely correct, whenever I'd want a non-macro getc because I
don't want the argument to be evaluated more than once, I'd just use
fgetc.
Sep 29 '08 #19
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
>dj******@csclub.uwaterloo.ca.invalid writes:
>Perhaps it's time to start sending cease-and-desist letters?

Nah. His use of my words without attribution is annoying, but I'm
under no obligation to do anything about it, and I choose not to in
this case. I doubt that bringing the legal system into this would be
either appropriate or constructive. This is about rudeness, not legal
liability, Gordon Burditt's absurd claims to the contrary
notwithstanding.
Probably true.
I was thinking in terms of root causes; the root cause for his
reluctance to maintain attributions seems to be complaints and threats
of lawsuits that he claims to have received when quoting with
attribution, so perhaps if he were to get those results when quoting
without attribution as well, he'd have less reason to cut them out.
(Which would have a particularly elegant symmetry, even if it's not
worth actually doing.)

I am Keith Thompson, replying to
Dave Vandervies's reply to
Flash Gordon's
reply to Gordon Burditt.
An excellent, though probably not intentional, demonstration of how
much easier it is to let the computer handle it for you. (Which of
course only works if everybody else is willing to play nicely.)
dave

--
Dave Vandervies dj3vande at eskimo dot com
>[S]o I just hang-up and swore at them for a good 5 minutes.
The sequence of these actions could be improved upon.
--Bogdan Imandei and Rik Steenwinkel in the scary devil monastery
Sep 29 '08 #20
dj******@csclub.uwaterloo.ca.invalid writes:
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
>>dj******@csclub.uwaterloo.ca.invalid writes:
>>Perhaps it's time to start sending cease-and-desist letters?

Nah. His use of my words without attribution is annoying, but I'm
under no obligation to do anything about it, and I choose not to in
this case. I doubt that bringing the legal system into this would be
either appropriate or constructive. This is about rudeness, not legal
liability, Gordon Burditt's absurd claims to the contrary
notwithstanding.

Probably true.
I was thinking in terms of root causes; the root cause for his
reluctance to maintain attributions seems to be complaints and threats
of lawsuits that he claims to have received when quoting with
attribution, so perhaps if he were to get those results when quoting
without attribution as well, he'd have less reason to cut them out.
(Which would have a particularly elegant symmetry, even if it's not
worth actually doing.)
Tempting, but way too much effort. Perhaps eventually Gordwon will
get tired of so many people complaining about his behavior and/or
notice that the only person here who has claimed to agree with him is
"Kenny McCormack".
> I am Keith Thompson, replying to

Dave Vandervies's reply to
> Flash Gordon's
reply to Gordon Burditt.

An excellent, though probably not intentional, demonstration of how
much easier it is to let the computer handle it for you. (Which of
course only works if everybody else is willing to play nicely.)
Whoops, sorry I left you out.

Note the demonstration that, in the case of an unintentional missing
or incorrect attribution, a brief apology is all that's called for --
and in the presence of such an apology, any legal action would, I
expect, be thrown out of court very quickly. IANAL.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Sep 29 '08 #21
Martien Verbruggen wrote:
On Sun, 28 Sep 2008 22:40:01 -0700,
Ben Pfaff <bl*@cs.stanford.eduwrote:
>Martien Verbruggen <mg**@tradingpost.com.auwrites:
>>If a library function is implemented as a macro, it is not allowed to
evaluate its arguments more than once.
[...]
>>In other words, the code above is guaranteed to behave identical whether
getc() is a macro or a function.
It is amazing that you went to all the trouble of quoting all
that without actually looking at the description of the getc
function:

7.19.7.5 The getc function
[...]
2 The getc function is equivalent to fgetc, except that if it
is implemented as a macro, it may evaluate stream more than
once, so the argument should never be an expression with
side effects.

I never noticed that before. This seems to be limited to getc, putc,
getwc and putwc. Any others that are exceptions to this rule that I
missed?
No.

--
pete
Sep 29 '08 #22

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Dino | last post by:
dear all, i've created an application for a customer where the customer can upload ..csv-files into a specified ftp-directory. on the server, a php-script, triggered by a cronjob, reads all the...
2
by: Fran Tirimo | last post by:
I am developing a small website using ASP scripts to format data retrieved from an Access database. It will run on a Windows 2003 server supporting FrontPage extensions 2002 hosted by the company...
3
by: Joe Costa | last post by:
I have written the following code to search for the right file depending on the startup file for "Client Access". The menu database that I made will load the correct config file specific for each...
4
by: Bill | last post by:
I need help closing a CMD window when it is executed from Access. 1) The batch file is called from Access. 2) Access closes, 3) the batch runs a copy of the access database (creating a backup)...
1
by: raydelex | last post by:
I am new to securing a database with logins. My questions is: I want only one database to use a new Workgroup file that I have created, not all the Access databases that I bring up under my...
11
by: sur | last post by:
Hello, My problem is that File.Exists works fine if my file is on my local drive but returns false if its on any other drive. I think that the issue is probably file permissions and so I have...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
13
by: George | last post by:
Hi, I am re-writing part of my application using C#. This application starts another process which execute a "legacy" program. This legacy program writes to a log file and before it ends, it...
16
by: Eran.Yasso | last post by:
Hi, I have a mdb file shared in the LAN. I want to write app that verifies if it's open. If the file is not open, then my app can open the file. if the file is used, then the app won't open it....
5
by: =?Utf-8?B?QWRyaWFuTW9ycmlz?= | last post by:
Hello! I'm trying to copy a file from another computer on the network that I do not have permission with my current logon details to access. If I open the folder using the Windows file manager...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.