Click here to Skip to main content
15,917,582 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Using external Members Pin
Alexandru Savescu24-May-02 3:35
Alexandru Savescu24-May-02 3:35 
GeneralRe: Using external Members Pin
laphijia24-May-02 3:59
laphijia24-May-02 3:59 
GeneralRe: Using external Members Pin
Joaquín M López Muñoz24-May-02 3:58
Joaquín M López Muñoz24-May-02 3:58 
GeneralRe: Using external Members Pin
laphijia24-May-02 6:39
laphijia24-May-02 6:39 
GeneralHolding pointers to functions as values in a std::map Pin
Alexandru Savescu24-May-02 2:43
Alexandru Savescu24-May-02 2:43 
GeneralRe: Holding pointers to functions as values in a std::map Pin
Chris Losinger24-May-02 3:03
professionalChris Losinger24-May-02 3:03 
GeneralRe: Holding pointers to functions as values in a std::map Pin
Alexandru Savescu24-May-02 3:13
Alexandru Savescu24-May-02 3:13 
GeneralI'm doing similar but why won't work Pin
24-May-02 3:45
suss24-May-02 3:45 
Hi,

I'm doing something similar, but i don't have luck Frown | :(

<br />
typedef bool (*func)(CClient *, CPacketBase *);<br />
typedef std::map<long, func> CHandlerMap;<br />


and I declared a function called
<br />
bool CPacketHandler::prcLogin(CClient *pclt, CPacketBase *pak)<br />
{<br />
 ....<br />
  return true;<br />
}<br />


I tried to insert the function into the map like:

<br />
m_HandlerMap.insert(CHandlerMap::value_type(1001, &prcLogin));<br />


The error I got is :

error C2276: '&' : illegal operation on bound member function expression
Error executing cl.exe.
GeneralRe: I'm doing similar but why won't work Pin
Joaquín M López Muñoz24-May-02 3:54
Joaquín M López Muñoz24-May-02 3:54 
GeneralRe: I'm doing similar but why won't work Pin
24-May-02 4:39
suss24-May-02 4:39 
GeneralRe: Holding pointers to functions as values in a std::map Pin
Vivek Rajan24-May-02 7:54
Vivek Rajan24-May-02 7:54 
GeneralChange scrollbar colour Pin
Nnamdi Onyeyiri24-May-02 1:23
Nnamdi Onyeyiri24-May-02 1:23 
QuestionMath and 3d books ? Pin
Joao Vaz24-May-02 1:04
Joao Vaz24-May-02 1:04 
AnswerRe: Math and 3d books ? Pin
jan larsen24-May-02 2:56
jan larsen24-May-02 2:56 
GeneralRe: Math and 3d books ? Pin
Joao Vaz24-May-02 3:21
Joao Vaz24-May-02 3:21 
AnswerRe: Math and 3d books ? Pin
Chris Losinger24-May-02 3:06
professionalChris Losinger24-May-02 3:06 
GeneralRe: Math and 3d books ? Pin
Joao Vaz24-May-02 3:24
Joao Vaz24-May-02 3:24 
QuestionCalculation? Pin
Zizilamoroso23-May-02 23:54
Zizilamoroso23-May-02 23:54 
AnswerRe: Calculation? Pin
markkuk24-May-02 0:07
markkuk24-May-02 0:07 
GeneralRe: Calculation? Pin
Zizilamoroso24-May-02 0:07
Zizilamoroso24-May-02 0:07 
GeneralRe: Calculation? Pin
Joaquín M López Muñoz24-May-02 0:24
Joaquín M López Muñoz24-May-02 0:24 
GeneralRe: Calculation? Pin
Zizilamoroso24-May-02 0:27
Zizilamoroso24-May-02 0:27 
AnswerRe: Calculation? Pin
Nnamdi Onyeyiri24-May-02 0:07
Nnamdi Onyeyiri24-May-02 0:07 
GeneralRe: Calculation? Pin
Zizilamoroso24-May-02 0:09
Zizilamoroso24-May-02 0:09 
GeneralRe: Calculation? Pin
Nnamdi Onyeyiri24-May-02 0:17
Nnamdi Onyeyiri24-May-02 0:17 

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.