Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Threads .... Pin
Anthony_Yio30-Oct-03 0:38
Anthony_Yio30-Oct-03 0:38 
GeneralRe: Threads .... Pin
vcplusplus30-Oct-03 2:57
vcplusplus30-Oct-03 2:57 
GeneralRe: Threads .... Pin
David Crow30-Oct-03 3:34
David Crow30-Oct-03 3:34 
GeneralActivating / Deactivating menus and toolbars Pin
Florin Ochiana29-Oct-03 23:14
Florin Ochiana29-Oct-03 23:14 
GeneralNetwork packets sniffer Pin
Anonymous29-Oct-03 23:08
Anonymous29-Oct-03 23:08 
GeneralRe: Network packets sniffer Pin
Joao Vaz29-Oct-03 23:41
Joao Vaz29-Oct-03 23:41 
GeneralTricky C++ question Pin
YaronNir29-Oct-03 22:57
YaronNir29-Oct-03 22:57 
GeneralRe: Tricky C++ question Pin
Ian Darling29-Oct-03 23:10
Ian Darling29-Oct-03 23:10 
This sounds like a job for function objects.

What you do is define a class and implement a standard function that can be called (usually operator()). Then you can pass the parameters to an instance of your class in the constructor, pass the object to your method, and then call the standard function from within the method.

This article seems to be a reasonable pointer in the right direction:

http://www.informit.com/isapi/guide~cplusplus/seq_id~135/guide/content.asp[^]

HTH

--
Ian Darling
"The moral of the story is that with a contrived example, you can prove anything." - Joel Spolsky
GeneralRe: Tricky C++ question Pin
YaronNir29-Oct-03 23:12
YaronNir29-Oct-03 23:12 
GeneralRe: Tricky C++ question Pin
Juan Antonio Bermejo29-Oct-03 23:19
Juan Antonio Bermejo29-Oct-03 23:19 
GeneralRe: Tricky C++ question Pin
YaronNir29-Oct-03 23:23
YaronNir29-Oct-03 23:23 
GeneralRe: Tricky C++ question Pin
YaronNir29-Oct-03 23:26
YaronNir29-Oct-03 23:26 
GeneralRe: Tricky C++ question Pin
Juan Antonio Bermejo29-Oct-03 23:32
Juan Antonio Bermejo29-Oct-03 23:32 
GeneralRe: Tricky C++ question Pin
YaronNir29-Oct-03 23:38
YaronNir29-Oct-03 23:38 
GeneralRe: Tricky C++ question Pin
Juan Antonio Bermejo30-Oct-03 21:21
Juan Antonio Bermejo30-Oct-03 21:21 
GeneralSysIPAddress32 in VC++ 5.0 Pin
Phil.Benson29-Oct-03 22:44
professionalPhil.Benson29-Oct-03 22:44 
GeneralRe: SysIPAddress32 in VC++ 5.0 Pin
saarfu15-Dec-09 4:51
saarfu15-Dec-09 4:51 
GeneralRe: SysIPAddress32 in VC++ 5.0 Pin
Phil.Benson15-Dec-09 5:26
professionalPhil.Benson15-Dec-09 5:26 
GeneralIHTMLDOMNode appendChild return E_INVALIDARG Pin
ShayAmar29-Oct-03 21:50
ShayAmar29-Oct-03 21:50 
GeneralAdd Attachment with Outlook2000 Automation Pin
NaturalBornChilla29-Oct-03 21:08
NaturalBornChilla29-Oct-03 21:08 
GeneralManipulating File Open/Save Filters Pin
Sreeramachandra29-Oct-03 20:34
Sreeramachandra29-Oct-03 20:34 
Generalfinding the IOCTRL for a Driver Pin
Fad B29-Oct-03 20:14
Fad B29-Oct-03 20:14 
GeneralRe: finding the IOCTRL for a Driver Pin
Alexander M.,30-Oct-03 2:37
Alexander M.,30-Oct-03 2:37 
QuestionCan anyone spot my mistake? Pin
georgiek5029-Oct-03 19:06
georgiek5029-Oct-03 19:06 
AnswerRe: Can anyone spot my mistake? Pin
Michael Dunn29-Oct-03 19:11
sitebuilderMichael Dunn29-Oct-03 19:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.