|
How can i get the names of all files in a specific folder? (in other words, how can i see what files are in a folder) (possibly with a filter to view only one type?)
P.S.: it has to be some sort of function that will return me the strings or give me a list or something, i'm not looking for the common open file dialog here
Greats n kisses
Kuniva
|
|
|
|
|
|
Using the Class CFindFile
Best Regards
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Would anyone recommend a site/book that is really well written to introduce MFC in Visual C++(i.e. - basic intoduction leading to the more advanced)? I have knowledge of C++, however, the articles written on this site are more directly related to the use of MFC once you have a good understanding of them. Thanks again.
Nick Parker
|
|
|
|
|
|
Advanced programmer
MFC Internals (Stepherd Wingo)
Best books in explaining MFC.
As for beginner, check out amazon.com.
Do check the rating. It really helps.
|
|
|
|
|
I 100% recommend Kruglinski: Inside Visual C++ version 4.
It's about VC 4.0 but still valid for the majority of the field. Don't know if there is any new editions of it.
And for non-MFC windows programming, which is very usefull even though you use MFC:
Petzold: Programming Windows 95 (maybe there's a new version here too)
Richter: Advanced Windows
Cheers
Steen.
"To claim that computer games influence children is rediculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
|
|
|
|
|
Hello,
I just developed a CWnd derived class.
I include this Wnd in a DialogBox.
I'm able to handle the On<r l="" m="">Button<down up="">, but when I add the OnMouseWheel, the function is not send the my CWnd-derived class.
Any clue ? Do I forgot something ?
Thanks,
Stephane
"It is ridiculous to claim that video games influence children.
For instance, if PacMan affected kids born in the eighties, we
should by now have a bunch of teenagers who run around in darkened
rooms eating pills while listening to monotonous electronic music."
|
|
|
|
|
I'm on W2k SP2 VCPP6.0 SP ( the last one )
"It is ridiculous to claim that video games influence children.
For instance, if PacMan affected kids born in the eighties, we
should by now have a bunch of teenagers who run around in darkened
rooms eating pills while listening to monotonous electronic music."
|
|
|
|
|
Hi,
I would like to do in Windows-based with Visual C++ the following command:
Convert.exe file1.dat file2.txt
The above is in DOS Command line. I wonder how to do in MFC.
I have explore CreateProcess(),ShellExecute, WinExec,Spawn etc, in vain...! please help...!
Thanks,
/Sophal
|
|
|
|
|
ShellExecute(NULL,"open","C:\\convert.exe","file1.dat file2.txt",
"",SW_SHOW);
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi,
I would like to do in Windows-based with Visual C++ the following command:
Convert.exe file1.dat file2.txt
The above is in DOS Command line. I wonder how to do in MFC.
Thanks,
/Sophal
|
|
|
|
|
Two identical posts except for that one extra line in the other post.
Maybe you should have modified this one instead of re-posting jus to add a line. Or you could have replied to your own post, addin the new line.
a new thread jus to add a line to the old thread is .... well,......
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi!
const int TOTAL_LEN = 8;
CString lBuffer;
lBuffer.Format("%8s","hello");
// I want to use the macro (TOTAL_LEN) instead of hardcoding '8'
// in the Format of the String
// something like
lBuffer.Format("%TOTAL_LENs","hello");
// obviously the above would result as "TOTAL_LENs" and not " hello"
// basically I want to insert spaces using the constants
// and without using the for loop
// CAN I DO IT or do I have to stick with the for loop
|
|
|
|
|
thanks Bijesh, it worked
I really appreciate it!
kpsr
|
|
|
|
|
lBuffer.Format("%s%s", (LPCTSTR)CString(32, TOTAL_LEN), "hello");
Best Regards....
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
Being a bit dim today. I have a popup menu on a modeless dialog box as part of an MDI app. When I bring up the popupmenu, one of the menu items is not avaliable, as it is implemented by the mainframe, and not the dialog. I would like both the dialogs and the mainframes pop ups to be avaliable. I though of implementing the menu item in the dialog, and posting a message to the Mainframe, that simulates a menu click.
I wonder if that makes sense.
Any ideas on how to do this?
Giles
|
|
|
|
|
Instead of trying to simulate a menu click on the mainframe, why dont you simply call the menu click handler from the mainframe class?
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi Nish,
Do you mean OnMenuSelect? Could you give a simple example?
(Quick one, how do you get though so many forums in one day?)
Thanks once again,
Giles
|
|
|
|
|
What I meant was that your menu-item handler in the modeless dialog should simply call the corresponding menu-item handler in your main frame class.
use AfxGetMainWnd to get a pointer to your main frame class
Giles wrote:
Quick one, how do you get though so many forums in one day
My about:blank is codeproject.com
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
I'd like a random function in c++ language. I see function rand, but this function is not performed.
|
|
|
|
|
|
hi ferdinando
You need to use srand first
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
Nish is a BIG fan of Goran Ivanisevic
|
|
|
|
|
Hi, all.
=======
I have Win2000 + Drivers + Software + Games on a 45GB Hard Disk.
I would like to create an app that will image my FAT32 Hard Drive to a file.
And then from the image file to clone it to another 45GB HD.
Please, HELP.
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
Norton's GHOST
- - - - - - - - - - - - - - - - - -
Memory leaks is the price we pay \0
01234567890123456789012345678901234
|
|
|
|