|
Undici77 wrote: It's easy! Nothing of strage, but it's not working!!
Any ideas??
Not really; what is not working? Do you get an error message, exception, crash etc? Are you sure the contents of your udl file are valid? This is like drawing teeth!
It's time for a new signature.
|
|
|
|
|
My UDL file I think is ok (I can open it, and cliccking on the Test Connection Button) I get the the "OK" Message.
When I execute the code posted up, I get the dialog that ask me the database connections parameters, and if I try to disable it I get the Exception
"Data source name not found and no default driver specified"
So... I don't know exactly where is the problem... I'm little desperate.
TuxOnHumax Team
|
|
|
|
|
I'm not an expert on this but I have been looking at the documentation, and I cannot see an example of using a UDL file with CDataBase , so I'm not certain it is supported. My only suggestion now is to post this in the General Database forum to see if anyone can help there. Don't forget to post the contents of your UDL file also.
It's time for a new signature.
|
|
|
|
|
OK.. May be the problem is this.. I need to use OLE DB and not odbc... this is my udl file:
[oledb]
; Everything after this line is an OLE DB initstring
Provider=SQLOLEDB.1;Password=aaa;Persist Security Info=True;User ID=aaa;Initial Catalog=TABLE;Data Source=192.16.0.10,1433
TuxOnHumax Team
|
|
|
|
|
i want to make an .exe which resides in any system's folder and on a specefic date and time it get active and delete all files in that specefic folder.
|
|
|
|
|
Wow!!! Sounds like a typical virus attack.
|
|
|
|
|
can u help me in tht...actualy its not particularly a virus....i want it to be useful for me to manage my data in my work...i want to discard the files after a certain time when here are no more needed. i want it in .exe form or any other.
|
|
|
|
|
As David said, I would recommend a scheduled task.
Take a look at the ITaskScheduler[^] interface for starters.
|
|
|
|
|
rather you can do like this.
1.write an exe, that reads the foldername and the date/time on which it has to be deleted, from a text file.
2.on execution, the exe reads a text file, that contains a lookup of the folder names and dates.
3.if the current time is beyond the time specified in the file, then delete the files from that folder.
4.now you can place this exe(shortcut) in the startup.
5.also you can write your exe in such a way that, it loops the above code once in an hour.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|
This is not a particulary difficult task to do.
just create a service and set it with a periodic "heart-beat" to check the date, and when the date is right, delete the files in the folder.
Watched code never compiles.
|
|
|
|
|
You could do the same thing with a batch file and a scheduled task.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
How to find the coordinates of the starting point of a waveform (stored in two columns of data: first column-time; second column-g)? The technique needs to be able to discard the noise sometime which may be before the real start point.
Thank you for your start ideal and coding techniques!
|
|
|
|
|
If you mean a file made up by lines (separated by a '\n') each containing two numbers separated by a delimiter, with some spurious character at beginning, you typically need to read the file line by line, then parse each line to identify the presence of certain structural elements (digits, signs, separators etc.)
Once you decide that the line looks OK, you can start to convert the (sub)strings into numbers.
Another technique can make use of a circular buffer.
You read the file to fill in the buffer, check the buffer contents if matching some "prerequisite" (as above), do the required conversion then discard the already read characters, and refill the buffer.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
Thanks. This is about data processing of a seismic wave stored in a file containing two columns of data: the fist column is the time: 0, 0.0001, 0.0002, 0.0003, ...; the second column is the wave amplitude: 0.00, 0.0001, 0.00015, ...; the zero's or noise in the beginning for some time, then real wave onset come and the wave started.
I need to detect the wave onset. Too bad I can not draw a picture for you here. For example, a paper here provide a way to find this onset, but too complex. Here is the link for the paper: http://www-geo.phys.ualberta.ca/~doug/papers/First-break_timing.pdf[^]
I am looking a simple, better method.
Thanks
|
|
|
|
|
mrby123 wrote: Too bad I can not draw a picture for you here.
But you can show the relevant parts of the file, yes?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
|
Your problem is about parsing a data file that represents a waveform, correct?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Not exactly, it is about to find the onset of the waveform like that in the paper in the link.
|
|
|
|
|
mrby123 wrote: ...it is about to find the onset of the waveform...
But you are using a data file as input for this, correct?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
|
Ok, so the problem boils down to something like:
FILE *pFile = fopen(...);
double dTime, dAmp;
while (fscanf("%f %f\n", &dTime, &dAmp) != EOF)
{
}
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Thanks. You are right on the issue. Now the key I am looking for is the technique to detect the onset. What is the
robust criterion to determine the onset of the wave, while the noise in the data will not confuse the determination?
Thanks for smart thought.
|
|
|
|
|
mrby123 wrote: Thanks. You are right on the issue.
Which is what I was trying to get at three posts ago.
mrby123 wrote: Now the key I am looking for is the technique to detect the onset. What is the
robust criterion to determine the onset of the wave, while the noise in the data will not confuse the determination?
Only you can determine what is noise and what is not. When you are dealing with floating-point numbers, you can't check a number being exactly equal to 0 . You'll have to compare against something like epsilon.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Can you please elaborate your question?
if i understood it correctly,(since you said you want to discard noise) you must be trying to strip the silence in the .Wav file and create a new .wav file.
please be clear.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|
|