CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: nhcheng

Search: Search took 0.03 seconds.

  1. Replies
    41
    Views
    11,972

    Hi, Mick is right. There is something wrong...

    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:
  2. Replies
    41
    Views
    11,972

    Hi, I couldn't see what is wrong with logic....

    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...
  3. Replies
    41
    Views
    11,972

    I could not delete those files manually if my...

    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.
  4. Replies
    41
    Views
    11,972

    My application is using MFC. The operation...

    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:
  5. Replies
    41
    Views
    11,972

    Thanks! In fact, the SrecParser() is a...

    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!
  6. Replies
    41
    Views
    11,972

    i've tried both MAXLINE and MAXLINE+1. the latter...

    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...
  7. Replies
    41
    Views
    11,972

    parserFile(char* filename) { if ((file =...

    parserFile(char* filename)
    {
    if ((file = fopen( (char *)filename,"r")) != NULL)
    {
    if ( stat( (char *) filename, &info ) == 0 )
    {
    ucMemorybuffer = (u8*) malloc(...
  8. Replies
    41
    Views
    11,972

    char* file[] = {"test1.txt", "test2.txt",...

    char* file[] = {"test1.txt", "test2.txt", "test3.txt", "test4.txt", "test5.txt"};

    Process()
    {
    char* ptr;
    int i=0;

    while(i<4)
    {
    ptr = file[i];
  9. Replies
    41
    Views
    11,972

    I fopen and fclose the file before i called that...

    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...
  10. Replies
    41
    Views
    11,972

    is the ptr a handler? i try to free it but i got...

    is the ptr a handler?
    i try to free it but i got debug assertion error.
  11. Replies
    41
    Views
    11,972

    Thanks everyone. I think my application is...

    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()
    {
    ...
  12. Replies
    41
    Views
    11,972

    hi, Actually my main concern is to remove the...

    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.
    ...
  13. Replies
    41
    Views
    11,972

    Debug Assertion Failed on free pointer

    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)
  14. Replies
    4
    Views
    1,259

    Yes, it is a xml file. but how to read a xml...

    Yes, it is a xml file.
    but how to read a xml file?
  15. Replies
    4
    Views
    1,259

    Read block of data from a file

    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>...
  16. Replies
    14
    Views
    2,159

    How to access Text Box from other .cpp file?

    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...
  17. Replies
    3
    Views
    870

    Hi I think I have solved the problem. It is...

    Hi I think I have solved the problem. It is dependencies problem.
    Thanks.
  18. Replies
    3
    Views
    870

    I see. I am not sure whether I have done is...

    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...
  19. Replies
    3
    Views
    870

    Link DLL and LIB into workplace

    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...
Results 1 to 19 of 19





Click Here to Expand Forum to Full Width

Featured