473,666 Members | 1,991 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Program counter

I'm a newbie at programming and I'm trying to write a program that
allows me to count the number of times a program is accessed with the
result to increment a log file. I can get it to work(ish) with vbs if
the user opens up the program first and then opens the file, but as
you can imagine most users open up the file by double clicking in
explorer or via shortcuts. Has anyone got any advice or can point me in
the right direction

Anyway thanks in advance!

May 3 '06 #1
4 4364
Du*****@googlem ail.com wrote:
I'm a newbie at programming and I'm trying to write a program that
allows me to count the number of times a program is accessed with the
result to increment a log file. I can get it to work(ish) with vbs if
the user opens up the program first and then opens the file, but as
you can imagine most users open up the file by double clicking in
explorer or via shortcuts. Has anyone got any advice or can point me in
the right direction


Asking the same question three times in rapid succession is likely
to put people off helping you, ever.

Especially when it's as dramatically off-topic as this one is.

Try asking on a windows group (since this appears to be a windows-specific
question).

--
Chris "refreshed, revitalised, relaxed, returned, registered" Dollin
Jena User Conference: http://jena.hpl.hp.com/juc2006/index.html
"People are part of the design. It's dangerous to forget that." /Star Cops/
May 3 '06 #2
Thanks mate, got a really slow internet connection at work and hit post
2 too many times. I realised what i did and removed the dupicates
straight away. I'm new to furum etiquette so i do appologise. Thanks

May 3 '06 #3
Sorry new to furums and its etiquette (i did remove the repeated posts
straight away. couldn't find an appropriate location for my post but
ill try the windows group as well

May 3 '06 #4
Du*****@googlem ail.com writes:
Sorry new to furums and its etiquette (i did remove the repeated posts
straight away. couldn't find an appropriate location for my post but
ill try the windows group as well


Newsgroups, not forums.

Removing posts (i.e., cancelling articles) doesn't always work. It's
implemented by sending out a "cancel" message, but many sites ignore
cancels -- and it's always possible that the cancel won't catch up
with the original message.

It's also important to provide context when you post a followup. See
<http://cfaj.freeshell. org/google/> for details. It's rarely
necessary to quote the entire article to which you're replying. Trim
anything that's not relevant. See most of the articles in this
newsgroup for examples.

<http://clc-wiki.net/wiki/Introduction_to _comp.lang.c> is a good
introduction to this newsgroup. The FAQ is at
<http://www.c-faq.com/>.

--
Keith Thompson (The_Other_Keit h) 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.
May 3 '06 #5

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

Similar topics

10
1424
by: Cam | last post by:
Hi all, The code below is a practical exercise and works well running in the debug environment but fails when being compiled for a release build. I believe this is because the debug environment takes care of memory allocation and the release build relies on code to do this. My research in my books and on the web has not provided any great help. I would be grateful for advice on what I need to do to correctly allocate the memory...
7
7387
by: brian.digipimp | last post by:
Write a program that prompts the user to input a positive integer. It should then output a message indicating whether the number is a prime number. (Note: An even number is prime if it is 2. An odd integer is prime if it is not divisible by an odd integer less than or equal to the square root of the number.) I was given this assignment in my c++ class and I'm having trouble with it. I've looked at the professors lab solutions but I just...
10
2884
by: emmx | last post by:
Hi I am new to c. I am trying to write a simple program which will prompt the user to enter an integer between 1 and 9 and the output will be produced as follows (eg. 5) 1 22 333 4444 55555
12
2842
by: DannyB | last post by:
I'm just learning Python. I've created a simple coin flipper program - here is the code: #Coin flipper import random heads = 0 tails = 0 counter = 0
2
1730
by: ayman723 | last post by:
hi, I'm trying to write a program in wich I would generate 20 sentences out of 4 arrays(articles,nouns,preposition,verb).I have to select an item at random from each array and concatetane each one of those selections to form a sentence, I have to form 20 sentences. I have no compiling errors but when I execute the program is giving an execption. This is the code I have // program uses randon number generation to create sentences
1
2523
by: k1ckthem1dget | last post by:
I am trying to write a program which sorts an array of supplied names. These are the errors i am getting. .cpp:39: error: expected identifier before ',char); void selectionSort(int , int); int main() { char names =
9
3398
by: gdarian216 | last post by:
I have written a c++ program that takes input from a file and outputs the average. The program uses structs and I need to convert the struct to a class. I just dont know how to get started and if I will have to re-write my whole program. #include <cstdlib> #include <iostream> #include <string> #include <vector> #include <fstream> using namespace std;
4
2306
nexcompac
by: nexcompac | last post by:
Ok, I posted a similar post but now need to jump back into it. Here is what I have been able to clean up. I am using textpad and jbuilder. Still getting used to the whole java world and I am trying to compile a program using TextPad. Here is what I have so far. /* * Main.java * * Created on July 19, 2007, 5:54 PM *
5
2472
by: laxmang4 | last post by:
I'm trying to write a program that creates webpages by reading text from a file. I can't seem to get the program to ignore lines that only contain the "\n" or "\t". Here is the main section of code. int main() { string sarray; int counter=0; ifstream infile; ofstream outfile;
2
1399
by: ccarter45 | last post by:
Okay, so I need to write this program that first declares an array and inputs the number of each snake present on a plane (there are 5 diff. snakes). Next, it must print out the number of each snake: "The number of snakes in element 1 is: 7." I also need to make sure that no snakes escape the cart they are stored on on the plane. To keep them contained, the combined weight of the number of carryon pieces in front of the cart door must be great...
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8871
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8551
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7386
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5664
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2771
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.