help mfc c++

Hello,
I am new to c++ because i program on vb6, vb.net only, but i got a risk that my codes can be decompiled easily, now c++ is a machine code so i think that the program cannot be decompiled, here is my problems

I am trying to make program that will:
1. listing all usb drives - list them on a listbox
2. get all list of files & folder on a usb disk drive - list in listbox
3. unhide all files & folder - listing all unhidded files folder in a listbox
4. search for a file starting with wildcard *.lnk and deleting it - list all filename *.lnk to a listbox before deleting them

I know how to do this in vb.net and vb6 but in C++ MFC i dont know, please reply immediately, Thank You!

anyway i am using VS 2005 - C++ MFC
Last edited on
hehe, loved the "please reply immediately" part! The demanding type, hehe.

For someone so worried about Intellectual Property theft, you seem quite comfortable asking for ready-to-go code yourself. Or am I misunderstanding? If I am, then my apologies in advance.

Now let me ask you: How much of C++ do you know? How much of Windows programming do you know? If I told you: To list all files and folders in the USB disk you can call FindFirstFile/FindNextFile and then call the ListBox_AddString macro to add the item to the list, would that be enough for you to understand the solution?
i dont really know c++ but i am programming with vb6, vb.net and autoit, some other people says autoit is like c++ because of its syntax, but autoit can be easily decompiled too thats why i am gonna try c++
Well, then you are veeeery far away from actually trying a program with the description you initially posted. You should start by learning the language first, then learn MFC, then solve your problem of USB drives, files and the rest.
You don't need MFC for this (MFC is not free, so you must pay for it ... ), all can be done with win32API.
You use GetDriveType() to see if a drive is removable
List files with FindFirstFile/FindNextFile;
Set file attributes with SetfileAttributes()
etc ...
ok thanks for all of help, i will find a tutorial on programming in c++ and mfc :), wish me luck
Topic archived. No new replies allowed.