Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: getting rid of "Not Responding" window titles Pin
Monty223-Dec-03 17:54
Monty223-Dec-03 17:54 
GeneralRe: getting rid of "Not Responding" window titles Pin
Michael Dunn23-Dec-03 18:09
sitebuilderMichael Dunn23-Dec-03 18:09 
Questioncomposing a bitmap buffer ?? Pin
azusakt23-Dec-03 15:10
azusakt23-Dec-03 15:10 
AnswerRe: composing a bitmap buffer ?? Pin
John R. Shaw23-Dec-03 15:29
John R. Shaw23-Dec-03 15:29 
Questionideas? Pin
hingis_fan23-Dec-03 14:03
hingis_fan23-Dec-03 14:03 
AnswerRe: ideas? Pin
John R. Shaw23-Dec-03 15:12
John R. Shaw23-Dec-03 15:12 
GeneralCWinapp::Run Pin
Anthony988723-Dec-03 13:26
Anthony988723-Dec-03 13:26 
GeneralArray of pointers to a functions Pin
veselin_iordanov23-Dec-03 13:17
veselin_iordanov23-Dec-03 13:17 
ok i have very strange problem in first case everything is ok
<br />
int (*handler[15])(int parm); <br />
int user_trans_quit(int parm); <br />
<br />
int user_trans_quit(int parm){ <br />
printf("Just a test %d", parm); <br />
return 0; <br />
} <br />
int _tmain(int argc, _TCHAR* argv[]) <br />
{ <br />
handler[1]=user_trans_quit; <br />
handler[1](1); <br />
} <br />

but when i try to meke OO compiler give me this error "error C2064: term does not evaluate to a function taking 1 arguments"
<br />
#pragma once <br />
class PacketHandler <br />
{ <br />
private : <br />
    <br />
public: <br />
   PacketHandler(void); <br />
   ~PacketHandler(void); <br />
   int LoginAck(char *parm); <br />
   void Action(int i, char *data); <br />
   int (PacketHandler::*handler[255])(char *parm); <br />
}; <br />
.... <br />
#include "StdAfx.h" <br />
#include ".\packethandler.h" <br />
<br />
PacketHandler::PacketHandler(void) <br />
{ <br />
   handler[1]=LoginAck; <br />
} <br />
<br />
PacketHandler::~PacketHandler(void) <br />
{ <br />
} <br />
int PacketHandler::LoginAck(char *parm) <br />
{ <br />
   return 0; <br />
} <br />
void PacketHandler::Action(int i, char *data) <br />
{ <br />
handler[i](data); //error C2064: term does not evaluate to a function taking 1 arguments <br />
} <br />

10x in advance
PS:sry about my bad english
GeneralRe: Array of pointers to a functions Pin
Simon.W23-Dec-03 14:13
Simon.W23-Dec-03 14:13 
GeneralRe: Array of pointers to a functions Pin
Michael Dunn23-Dec-03 15:35
sitebuilderMichael Dunn23-Dec-03 15:35 
GeneralRe: Array of pointers to a functions Pin
John R. Shaw23-Dec-03 15:54
John R. Shaw23-Dec-03 15:54 
GeneralRe: Array of pointers to a functions Pin
veselin_iordanov24-Dec-03 8:09
veselin_iordanov24-Dec-03 8:09 
GeneralHooking the taskbar Pin
Rickard Andersson2023-Dec-03 13:08
Rickard Andersson2023-Dec-03 13:08 
GeneralRe: Hooking the taskbar Pin
Ryan Binns23-Dec-03 14:59
Ryan Binns23-Dec-03 14:59 
GeneralRe: Hooking the taskbar Pin
Rickard Andersson2024-Dec-03 0:28
Rickard Andersson2024-Dec-03 0:28 
Questionhow to create shortcut of a file from MFC Pin
Binayak23-Dec-03 12:27
Binayak23-Dec-03 12:27 
AnswerRe: how to create shortcut of a file from MFC Pin
Selvam R24-Dec-03 12:39
professionalSelvam R24-Dec-03 12:39 
Questionhow to modify system path? Pin
Binayak23-Dec-03 12:07
Binayak23-Dec-03 12:07 
Questionhow can i add and edit records to MS Access Pin
Member 78215423-Dec-03 12:00
Member 78215423-Dec-03 12:00 
AnswerRe: how can i add and edit records to MS Access Pin
Selvam R24-Dec-03 12:54
professionalSelvam R24-Dec-03 12:54 
GeneralStatus dialog box Pin
Spank me!!23-Dec-03 11:57
Spank me!!23-Dec-03 11:57 
GeneralRe: Status dialog box Pin
Brad Bruce23-Dec-03 12:42
Brad Bruce23-Dec-03 12:42 
GeneralRe: Status dialog box Pin
j_a_m_s_p_o_o_n23-Dec-03 13:16
j_a_m_s_p_o_o_n23-Dec-03 13:16 
GeneralMimicing Swing Using C++ Problem Pin
Todd23-Dec-03 10:02
Todd23-Dec-03 10:02 
GeneralMatlab C++ Pin
Vincent Sim23-Dec-03 9:50
Vincent Sim23-Dec-03 9:50 

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.