Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 13th, 2006, 8:40 AM   #1
myName
Programmer
 
Join Date: Oct 2005
Posts: 48
Rep Power: 0 myName is on a distinguished road
checking file existing time to time, in the same time program do other operation

Greeting to all,

Have a quesion that need help, i need to check the existing of a file time by time, how can i do this? Is it creating a thread? Beside checking existing of a file, the program have other operation too...

How to decide this program?
myName is offline   Reply With Quote
Old Mar 13th, 2006, 9:48 AM   #2
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
You haven't given us enough information, but yes threads could be what you want to check something regularly.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Mar 13th, 2006, 9:55 AM   #3
.TD
Programmer
 
.TD's Avatar
 
Join Date: Feb 2006
Location: UK
Posts: 36
Rep Power: 0 .TD is on a distinguished road
Or you could just check it before you need to use it as this would probably be more efficient and easier.
__________________
Go away before I replace you with a very small shell script.
--
Get FireFox!
.TD is offline   Reply With Quote
Old Mar 13th, 2006, 8:39 PM   #4
myName
Programmer
 
Join Date: Oct 2005
Posts: 48
Rep Power: 0 myName is on a distinguished road
This program is a com service program.. i so new in com service n c++, especially the thread.. huh!.. headache...

In the program, have 2 task..
1. check file existing, if the file exist, do some process then clear the contain of the file..
2. Get data send from client program, then save to database

The checking can be done every 30 minutes, Is there got timer in C++? use timer better or Thread better ?

Time so short for me... :-(
myName is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:57 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC