how to copy folder in c++?

This is a discussion on how to copy folder in c++? within the Windows Programming forums, part of the Platform Specific Boards category; Ah, you characterise yourself both as a newbie and as a religious fanatic, I see. Given that newbies statistically have ...

  1. #16
    Registered User
    Join Date
    Jun 2005
    Posts
    5,851
    Ah, you characterise yourself both as a newbie and as a religious fanatic, I see.

    Given that newbies statistically have trouble grasping "syntax rich" foundations, I would suggest your argument is idealistic. Learning a bunch of syntactic features by rote is an effective way to get into trouble, and waste time doing it, and that is quite common for beginners (and, even a few too many teachers and authors). Pragmatically, if "old and dull" is useful to get the job done effectively, then use that. If "syntax rich" (or, in practice, specific syntax features) is useful to get the job done, then use that.

    Having used both the new rich syntactic features in modern C++, as well as the old and dull things like win32, and even wrapping of old and dull things using modern techniques to get jobs done, my experience is not as black and white as you describe. In my experience, rich syntax is quite dangerous if it is used without sufficient understanding, and even more dangerous if support (eg compiler implementations) hasn't caught up - which it hasn't yet with some of the more latest features. Yes, there are problems with older APIs, but one of their virtues is that they are typically stable and better-documented so, with some care, are easier to understand and use.
    Right 98% of the time, and don't care about the other 3%.

  2. #17
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,170
    Religious at least, I will admit. Though I try to ensure my arguments are backed up by facts. Still, I am as everyone else, not perfect. I make mistakes, and sometimes I let things go to my head.
    Also, I have assumed or stated nothing about your experience. I don't do it on any senior members on the board. I know full well that there are a lot of seniors here who know a lot more than me, and there are a lot of them I look up to.
    *shrug* Anyway, I have nothing more to add since you aren't really countering my arguments. Sometimes, it is hard to sum up cons and pros and to describe them in an easy way. Sometimes discussion is the only way to expose the "naked" truth about something.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

  3. #18
    Registered User
    Join Date
    Oct 2012
    Posts
    34
    i want to learn win32 for just deep learning i dont care if i would use it in future or not or how hard its to use and understand
    why so rush ! i will learn how to use QT or sth else maybe after win32
    and i found this books recomended on internet which one is better?or recommend another book if these are not good enough...
    Programming.Applications.for.Microsoft.Windows.4th Ed.Jeffrey.Richter
    Programming Windows - Win32 Api (Mspress, Charles Petzold, 5Th Ed)
    tnx
    Last edited by king_zart; 12-15-2012 at 12:43 AM.

  4. #19
    Bored Programmer
    Join Date
    Jul 2009
    Location
    Tomball, TX
    Posts
    404
    Charles Petzold was suggested to me by everyone I asked about it! I haven't recieved my copy I ordered online yet, which is ironic since I just started trying to use another OS. I had trouble tracking down the book in person, but I have heard much about despite its age it was the "bible" on the subject of sorts.

    I do agree with Elysia that: It is very difficult to understand from a beginners perspective. I have made multiple programs in Win32 and would still shudder at the idea of trying to do it without the documentation website open at the same time. There are just too many variables and functions with names that are just difficult to memorize since they lack a good reflection of what they do. Being a beginner myself I would say that I would prefer to not use it if I could. Though I see the point in understanding it and having some working knowledge in case I'm ever put in a situation where I"m going to have to use it.

    I agree with Grumpy on the fact that it should be considered just as viably as any other solution for a given situation. Obviously in most situations zealetrous hatred for anything can turn out to be a blinding weakness.

    Ultimately do what you want, just expect a few falls along the way.

  5. #20
    Registered User
    Join Date
    Jun 2005
    Posts
    5,851
    Quote Originally Posted by Elysia View Post
    Anyway, I have nothing more to add since you aren't really countering my arguments.
    I have not tried to counter your arguments, per se. I'm pointing out there are shades of grey, where you appear to have described things as only black versus white. You claim (and I paraphrase) that win32 is evil and should not be used. A counter to that (literally) would be to prove or demonstrate the opposite of your views (say, that win32 has the sort of perfection associated with saints and should always be used over alternatives). I have not asserted the opposite of your view, let alone tried to prove or demonstrate it.
    Right 98% of the time, and don't care about the other 3%.

  6. #21
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,170
    Quote Originally Posted by grumpy View Post
    I have not tried to counter your arguments, per se. I'm pointing out there are shades of grey, where you appear to have described things as only black versus white. You claim (and I paraphrase) that win32 is evil and should not be used...
    No, actually, I didn't.
    I mentioned that unless you have a good reason for not using Win32, then don't use it.
    The reasoning is that, it will make you have to plunge into the world of C, and into the world of the nitty gritty Windows. We did not specifically use C to write out code, so why should do we so all of a sudden? If we wanted to write C, we could have chosen it from the beginning. True, C++ makes it rather easy to interop with C, but it nevertheless leads into a world with more bugs, and more pain. It also leads us into the world of Windows, which truly is Evil™. The API is huge, obscure and difficult to use. There is a reason why there exists many GUI frameworks--both for C and C++--to hide all these details from the user and make it easier to make graphical applications.
    However, there are valid reasons for using Win32, or it would not exist. Just as goto is Evil™, so it both Win32 API. They are a necessary evil sometimes. For example, you must interop with some existing Win32 code. No library is probably going to do that. You absolutely and truly need the flexibility to do certain tasks. Sometimes you have some circumstances that prevents you from using libraries. Maybe your boss forbid you, etc, etc, etc.
    Of course, this is purely from a practical point of view. There is nothing stopping one--nor should there be--to learn it just for fun.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copy files in to a different folder help
    By TaiL in forum C Programming
    Replies: 4
    Last Post: 10-15-2009, 01:45 PM
  2. Folder copy
    By Salibea in forum C++ Programming
    Replies: 5
    Last Post: 08-15-2005, 05:28 AM
  3. function to copy file from one folder to another
    By Harman in forum C Programming
    Replies: 7
    Last Post: 05-15-2005, 11:39 AM
  4. deleting a folder AND copying a folder
    By hanhao in forum C++ Programming
    Replies: 2
    Last Post: 05-01-2004, 08:48 AM
  5. Copy Folder?
    By Antinaris in forum C++ Programming
    Replies: 1
    Last Post: 11-14-2003, 05:59 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21