|
Creating your own dialog would be the easier choice. You could also allow the CFileDialog to do it's job, then before showing it to the user, iterate through it's list box performing your own additional scan of the files. All you need to do is find the window handle to it's listbox, then use the normal api functions to remove items.
|
|
|
|
|
Does this dialog expose the handle to its list box? Is there not a risk of screwing things up? For example, maybe I can remove the entries from the list box but what if there is an under-lying collection (like, say, CStringArray) that contains the entries and these entries are not removed? The list box would become un-synchronized with the internal list...
Thank you,
Mark
|
|
|
|
|
did CDN_INCLUDEITEM work for you? As I recall it does not quite work as you would first expect...
I needed to do exactly what you did, the only solution I could find was provided by Paul DiLascia:
http://msdn.microsoft.com/msdnmag/issues/03/10/CQA/
There doesn't seem to be any under-lying collection, as this solution worked fine for me...the only problem is in this solution is you're deleting unwanted files from the list after they have been added rather than just excluding them in the first place...
|
|
|
|
|
Another similar option would be to populate the dialogs list with an obviously stupid file extension, then add the items yourself.
|
|
|
|
|
Hi,
Is it possible to kill any process that uses a certain process' memory under Win32?
stay safe,
Aamir
|
|
|
|
|
Aamir Mughal wrote: ...process that uses a certain process' memory...
Please explain.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
You can kill any process, however processes generaly do not share the same memory (a memory mapped file being an exception).
|
|
|
|
|
Another way is that both .EXEs can use a DLL which has a shared data segment.
Steve
|
|
|
|
|
Another way is ReadProcessMemory and WriteProcessmemory
|
|
|
|
|
That's not technically shared memory: it's a way to acesss mrmory in another process that isn't shared.
Steve
|
|
|
|
|
That's not technically shared memory: it's a way to acesss memory in another process that isn't shared.
Steve
|
|
|
|
|
I am basically trying to make an anti-cheat tool for a certain program. So I mean how can I stop programs like trainers which modify the programs memory value at runtime?
|
|
|
|
|
Aamir Mughal wrote: I am basically trying to make an anti-cheat tool for a certain program. So I mean how can I stop programs like trainers which modify the programs memory value at runtime?
actually you have to hook api like ReadProcessMemory and writeProcessmemory
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief And you
|
|
|
|
|
Hi Friends,
Can anyone guide me in preparaing for a C++ and COM interview? I have seen some online interview questions in C++, but couldn't find anything for COM. This is a face-to-face interview, so i expect those guys to ask me to write some programs. Anyone has a idea, the general C++ programs that will be asked to write in personal interviews?
I would appreciate if someone could guide me on finding some online materials to prepare for an personal interview in C++ and COM.
Thanks in advance.
|
|
|
|
|
i've never had to write a program in an interview.
|
|
|
|
|
Thanks.
Any idea about the other typical questions that i can expect?
|
|
|
|
|
dipuks wrote: typical questions
If you could have only one book on your desk which would you choose?
led mike
|
|
|
|
|
Kamasutra
Just kidding
Is this a interview qestion? Hmmm I will got for VC++ book by Dennis
|
|
|
|
|
Does 'playboy' qualify as a book?
|
|
|
|
|
Yes, but "36C" is not the proper answer for "What does COM stand for?"
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
waldermort wrote: Does 'playboy' qualify as a book?
Vote for it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Re
|
|
|
|
|
Never been asked that one. I'd say 'code complete'.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Yes great book. Of course Don Miguel's astute observation[^] raised it's value in my opinion.
Personally I never cared for the question. Might as well ask someone, "If you could be a tree what kind of tree would you be?"
led mike
|
|
|
|
|
Chris Losinger wrote: i've never had to write a program in an interview.
Strange.. i always ask people to write program, when ever i take interview...
my favourite question is print this (using any language of his/her choice)->
*
* *
* * *
* * * *
* * * * *
and you will surprise, 80% of people having 2+ exp couldn't able to write this simple program...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Re
|
|
|
|
|
dipuks wrote: I would appreciate if someone could guide me on finding some online materials to prepare for an personal interview in C++ and COM.
I don't get this. Either you know the answers, or you don't. Do you know how to write C++ and COM code ? If so, then you shouldn't have a problem. I'd be more worried about if you get questions like 'how would you deal with conflict with a co-worker' and 'what if the lead tells you to do things differently to how you think it should be done' ?
Those questions suck. The tech stuff should be easy, if you know your stuff. And if you don't, no amount of last minute cramming will help. I prefer to be honest in interviews. I think saying 'I don't know, but I know how to find out' at least once in an interview is probably a *good* thing.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|