|
|
Did you find your answer?
|
|
|
|
|
Thank you very much for asking WhiteSky
The reason why I haven't written anything on it yet is that I haven't got the time for trying to use it just now, but I will try it in a couple of days and write back.
Thanks once again!
- Jones M
|
|
|
|
|
Hi guys... i'm doing a nice application that uses iwebbrowser2 class.
This application navigate through some webpages.
But even if the IE istance is hidden, the click sound that IE runs when navigates to a new page is still there!
So my question:
there is some way to make IE not play that click-sound or any sound??? Obviosly doing it through coding...and not deleting "start.wav".
Thanx
Regards
|
|
|
|
|
I can't think of anything else other than changing the system's sound scheme.
|
|
|
|
|
I was always under the impression that const before or after a function delaration was the same, yet after trying it I get compile errors, so obviously I was wrong. Would somebody please explain the difference between these two declarations:
const TCHAR *GetCurrentHash ();
TCHAR *GetCurrentHash () const;
|
|
|
|
|
"const" after a member function name means the function doesn't change any of the object's internal member variables.
"const" before the function name applies to the return value.
|
|
|
|
|
Ahhh, that makes perfect sense now. Thankyou.
|
|
|
|
|
waldermort wrote: TCHAR *GetCurrentHash () const;
but you can change any function local variable here!
"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
|
|
|
|
|
Greetings:
I need to launch a CFileDialog box but I need to implement special file name filtering. That is, I might filter with a file name extension like "TXT", however, I need to filter even further by excluding files that have certain sub-strings embedded in their names. The wild card method is not going to work here because I need to exclude file names that have certain characteristics, not include them. This requirement has been thrust upon me and I simply have to find a solution.
I can't see anything in the documentation that says you can do this.
Any suggestions?
Thank you,
Mark
|
|
|
|
|
Jethro63 wrote: This requirement...
Does it also include using CFileDialog ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi David:
No, not necessarily. I am becoming resigned to the possibility that I'll just have to construct my own selection dialog. No big deal, just another little thing on the great-big pile.
But I was expecting (or hoping) that under the hood of CFileDialog, there might be a mechanism, an optional callback function perhaps, where each time the dialog was about to add another entry to the list box embedded in the dialog, the callback would first be called and you could use this callback to do any manner of screening that you need and say "yes" or "no" to adding the file. No such luck, apparently.
So, I'm open to suggestions but I need to get this done. It is a minor requirement in the grand scheme of things but I have already spent a lot of time trying to come up with a solution.
Thanks,
Mark
|
|
|
|
|
Look up CDN_INCLUDEITEM in MSDN.
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
That is exactly what I was looking for!
Thanks!
Mark
|
|
|
|
|
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
|
|
|
|