Understanding filters - help

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2007
Posts: 8
Reputation: kemarS is an unknown quantity at this point 
Solved Threads: 0
kemarS's Avatar
kemarS kemarS is offline Offline
Newbie Poster

Understanding filters - help

 
0
  #1
Mar 6th, 2008
Hi,
Can anyone explain to me be basic functionality of a filter in MS Visual C++ ? I need to use one to check the database for a file name; if the file name exists in the database, alert the program user that the file has already been uploaded to the database, if not, add the file name to the database along with an autonumber ID. The boss was suggesting that I use a filter, so i just wanted to get a basic undown on the things from the best ppl i know. Thx in advance.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,951
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Understanding filters - help

 
0
  #2
Mar 6th, 2008
As far as I understand it (having rarely ever used VC++), a filter is MS's way of providing hooks into the application's main Window Procedure (which contains the top-level event loop) in order to process specific messages. Here's a useful page I googled.

You will need to use RegisterWindowMessage to define your special message, and then use the filter to catch it.

Hope this was what you were looking for.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC