Search:
Type: Posts; User: nhcheng
Search:
Search took 0.03 seconds.
-
January 20th, 2004, 11:03 PM
Hi,
Mick is right. There is something wrong with the logic.
I commented out the lines, and the files get deleted without
any problem!
Thank You everyone!
^^ :wave:
-
January 20th, 2004, 06:50 AM
Hi, I couldn't see what is wrong with logic.
Could you please explain to me?
That is the codes which was written by someone and I am just using it. When this codes was run in someone else...
-
January 20th, 2004, 02:44 AM
I could not delete those files manually if my application is running.
It says sharing violation.
If my application is not running, the files could be deleted.
-
January 20th, 2004, 02:29 AM
My application is using MFC. The operation underneath is C.
I added in +1 to line[MAXLINE + 1];
The file is still there without being removed.
:( :confused:
-
January 20th, 2004, 01:57 AM
Thanks!
In fact, the SrecParser() is a predefined function. I don't wish to modify any codes in this function. I am just using it and put it in my application.
Thanks a lot!
-
January 20th, 2004, 01:44 AM
i've tried both MAXLINE and MAXLINE+1. the latter gives me assertion failed error.
FILE *file a handler to the filename in parserFile()?
if I already fclose(file), doesn't it mean free the file...
-
January 20th, 2004, 12:51 AM
parserFile(char* filename)
{
if ((file = fopen( (char *)filename,"r")) != NULL)
{
if ( stat( (char *) filename, &info ) == 0 )
{
ucMemorybuffer = (u8*) malloc(...
-
January 20th, 2004, 12:37 AM
char* file[] = {"test1.txt", "test2.txt", "test3.txt", "test4.txt", "test5.txt"};
Process()
{
char* ptr;
int i=0;
while(i<4)
{
ptr = file[i];
-
January 20th, 2004, 12:03 AM
I fopen and fclose the file before i called that process().
before the process() begin, i still manage to remove(file);
but right after the parser->parsefile(ptr); i couldn't remove the file...
-
January 20th, 2004, 12:02 AM
is the ptr a handler?
i try to free it but i got debug assertion error.
-
January 19th, 2004, 11:41 PM
Thanks everyone.
I think my application is holding the file, that's why I can't delete it.
My program looks something like this:-
char* file[] = {"test1.txt"};
void process()
{
...
-
January 19th, 2004, 11:08 PM
hi,
Actually my main concern is to remove the files from my disk once the parsing process is done.
I thought I have to free the pointer which is pointing to the files before remove the files.
...
-
January 19th, 2004, 10:17 PM
Hi,
Currently I am using a char* pointer to point to a file.
The program goes like this:-
char* file[] = {"test1.txt", "test2.txt"};
void process()
{
char* ptr;
whie(1)
-
January 11th, 2004, 07:52 PM
Yes, it is a xml file.
but how to read a xml file?
-
January 10th, 2004, 01:11 AM
Hi board,
Currently I am trying to read a big block of data from a file.
The file format is like this:-
<fileitem> 2143243546jgafjdhflajd
....
....
</fileitem>
<fileitem>...
-
December 17th, 2003, 05:57 AM
Currently I have a project named DisplayDlg. Hence there is a DisplayDlg.cpp which have all dialog handling.
From DisplayDlg.cpp, I call a function in other .cpp namely callFunction.cpp. When the...
-
November 28th, 2003, 04:04 AM
Hi I think I have solved the problem. It is dependencies problem.
Thanks.
-
November 27th, 2003, 06:23 AM
I see.
I am not sure whether I have done is correct or not.
I have this dll called 'com.dll'. I have all the files to develop this dll.
Now in my won workspace called 'test', I want to open...
-
November 27th, 2003, 03:53 AM
Hi, I am currently testing 2 DLL and LIB. However I don't know how to link/insert these DLL and LIB into my MFC project?
Should I just insert project into workspace?
I tried to include some...
|
Click Here to Expand Forum to Full Width
|