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

Search:

Type: Posts; User: Rajesh1978

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    274

    Re: copy and unlink

    Thanks all. I got it now
  2. Replies
    4
    Views
    274

    Re: copy and unlink

    across drives mean?

    in linux i saw a code where i see copy and unlink to /mnt/mypath instead move

    thats why the doubt
  3. Replies
    4
    Views
    274

    copy and unlink

    i have one doubt is it good to move the file from one path to other path.
    Or it is good to copy the file and unlink.
  4. Re: Handing more than one exception at a time

    Thanks. Now i undersood
  5. Re: Handing more than one exception at a time

    Very good knowledge is being exchanged.
    Thanks to all gurus

    Now my real question is repeated


    I meant the above quoted thing in the beginning.

    question is why two exceptions can not be...
  6. Handing more than one exception at a time

    It is advisable not to throw the exception from destructor. Because if exception happens stack unwinding happens. suppose the destructor again throws the exception then on part of first exception...
  7. Replies
    14
    Views
    784

    Re: stat() system call

    I even tried with set. Not much difference i see.
    In all the cases i see stat is faster.
    May be it is chacheing and using the the entries from the cache.

    also the operation is happening in a...
  8. Replies
    14
    Views
    784

    Re: stat() system call

    unordered set is there in c++ 11. As I am using older gcc compiler I do not have that.
    One more thing is there any system call in linux which notifies the changes in a directory ?
  9. Replies
    14
    Views
    784

    Re: stat() system call

    I tested with below scenario.
    1. I put 15K files on a directory
    2. used stat command to check the existance of some 5 files
    Time taken 2 miliseconds
    3. Did same thing using opendir. Loaded all...
  10. Replies
    14
    Views
    784

    Re: stat() system call

    i am accessing the location every 1 sec. Some time 3-4 files of size 800k is getting added per 1sec.

    I am getting delay once the number of files are more in the path
  11. Replies
    14
    Views
    784

    Re: stat() system call

    I want to check some 5 files one at a time.
    New files get added 2/min in that path.
  12. Replies
    14
    Views
    784

    stat() system call

    Hi,
    I am using stat command to check the existence of a file in a directory.

    The directory is having some 10K files. I feel the stat() call is expensive as i do not need the structure to be...
  13. Replies
    2
    Views
    491

    Re: Multi threaded insertion into STL Map

    Yes without synchronization there will be lot of problem.

    Thankss
  14. Replies
    2
    Views
    491

    Multi threaded insertion into STL Map

    Suppose multiple threads are are trying to insert into a STL Map, both are trying to insert with same key. As per my understanding it will not cause any issue till you invalidate the iterator. Here...
  15. Re: calling mem ber function by object pointer

    Thanks u all
  16. calling mem ber function by object pointer

    Hi,
    I have the following piece of code.


    #include<iostream>
    using namespace std;

    class Test
    {
    public:
  17. Replies
    6
    Views
    601

    Re: Reference and const pointer

    Thanks.
    So is it wrong to say Reference is constant pointer?
  18. Replies
    6
    Views
    601

    Reference and const pointer

    Hi,
    what is the advantage of using reference over constant pointer?
    Can they be used interchangeably?
  19. Re: [RESOLVED] Implicit default ctor - what is it for?

    Thanks laser.
    Now it seems to be correctly resolved thread
  20. Re: Implicit default ctor - what is it for?

    I agree with Eri. But still the question is on its place as why the default constructor is added by default. What is its role.
    Think that I have all the POD attributes then what is the use?
    Also...
  21. Replies
    11
    Views
    1,396

    Re: virtual destructor

    If you have a class with virtual function then the virtual destructor is required. Otherwise normal destructor is sufficient.
  22. Replies
    4
    Views
    487

    Re: Using Comparator in Set

    Thanks.
  23. Replies
    4
    Views
    487

    Re: Using Comparator in Set

    Thanks.
    I got it now.

    while testing this i got one more confusion.

    if i make the comp as below



    class comp
  24. Replies
    4
    Views
    487

    Using Comparator in Set

    I have the piece of code


    #include<iostream>
    #include<set>

    using namespace std;

    class Test
    {
  25. Replies
    3
    Views
    618

    Re: 2 Argument Conversion Function

    This i did not get from any book or tutorial;
    I thought logically it should work.

    In the first case when Demo d=100 ( constructor with one argument is called)
    It is same as Demo d(100) ->the 1...
Results 1 to 25 of 239
Page 1 of 10 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center