Click here to Skip to main content
15,891,529 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Win32: IsDialog(HWND)? Pin
Jack Puppy12-Jun-05 0:16
Jack Puppy12-Jun-05 0:16 
GeneralRe: Win32: IsDialog(HWND)? Pin
Jörgen Sigvardsson12-Jun-05 2:57
Jörgen Sigvardsson12-Jun-05 2:57 
GeneralRe: Win32: IsDialog(HWND)? Pin
peterchen12-Jun-05 3:49
peterchen12-Jun-05 3:49 
GeneralRe: Win32: IsDialog(HWND)? Pin
Jörgen Sigvardsson12-Jun-05 5:21
Jörgen Sigvardsson12-Jun-05 5:21 
GeneralRe: Win32: IsDialog(HWND)? Pin
Jack Puppy12-Jun-05 4:22
Jack Puppy12-Jun-05 4:22 
GeneralRe: Win32: IsDialog(HWND)? Pin
Jörgen Sigvardsson12-Jun-05 5:23
Jörgen Sigvardsson12-Jun-05 5:23 
GeneralRe: Win32: IsDialog(HWND)? Pin
Jack Puppy12-Jun-05 14:45
Jack Puppy12-Jun-05 14:45 
Generalfunction pointer on classfunctions Pin
tbrake11-Jun-05 22:45
tbrake11-Jun-05 22:45 
H@llo

I have a class with some memberfunctions and like to refer to these by unsing functionpointers.
all my tries ends up in errors
some sample here:
<br />
// myCom.h<br />
class myCom<br />
{<br />
  public:<br />
  int send(int,char*);<br />
  int read(int,unsigned int,BYTE*);<br />
};<br />

<br />
// action.h<br />
class myCom;<br />
typedef int (*cdout)(int  ,char* );<br />
typedef int (*cdread)(int ,unsigned int ,BYTE* );<br />
class action<br />
{<br />
  myCom* mCom;<br />
  ...<br />
};<br />

<br />
// action.cpp<br />
...<br />
  mCom = new myCom;<br />
...<br />
  cdout test = mCom->send; // error C2440: 'initializing' : cannot convert from '' to 'int (__cdecl *)(int,char *)'<br />
or<br />
  cdout test;<br />
  test = mCom->send;      // error C2440: '=' : cannot convert from 'int (__thiscall CINTERFACE::*)(int,char *)' to 'int (__cdecl *)(int,char *)'<br />
...<br />


Confused | :confused:

Anyone any idea??

THX
GeneralRe: function pointer on classfunctions Pin
toxcct11-Jun-05 22:57
toxcct11-Jun-05 22:57 
GeneralRe: function pointer on classfunctions Pin
tbrake11-Jun-05 23:18
tbrake11-Jun-05 23:18 
GeneralRe: function pointer on classfunctions Pin
toxcct11-Jun-05 23:24
toxcct11-Jun-05 23:24 
GeneralRe: function pointer on classfunctions Pin
Behzad Ebrahimi12-Jun-05 4:09
Behzad Ebrahimi12-Jun-05 4:09 
GeneralI am stuck please help me Pin
Aqueel11-Jun-05 20:57
Aqueel11-Jun-05 20:57 
GeneralRe: I am stuck please help me Pin
toxcct11-Jun-05 23:00
toxcct11-Jun-05 23:00 
GeneralRe: I am stuck please help me Pin
eli1502197911-Jun-05 23:35
eli1502197911-Jun-05 23:35 
GeneralRe: I am stuck please help me Pin
toxcct12-Jun-05 0:11
toxcct12-Jun-05 0:11 
GeneralRe: I am stuck please help me Pin
eli1502197913-Jun-05 20:09
eli1502197913-Jun-05 20:09 
GeneralRe: I am stuck please help me Pin
S. Senthil Kumar12-Jun-05 4:52
S. Senthil Kumar12-Jun-05 4:52 
GeneralRe: I am stuck please help me Pin
toxcct12-Jun-05 20:30
toxcct12-Jun-05 20:30 
GeneralBSTR Pin
pardis11-Jun-05 19:52
pardis11-Jun-05 19:52 
GeneralRe: BSTR Pin
Gary R. Wheeler12-Jun-05 2:00
Gary R. Wheeler12-Jun-05 2:00 
GeneralMoving Non-Title Dialog Pin
Tran Duy Hung11-Jun-05 17:55
Tran Duy Hung11-Jun-05 17:55 
GeneralRe: Moving Non-Title Dialog Pin
Ravi Bhavnani11-Jun-05 19:42
professionalRavi Bhavnani11-Jun-05 19:42 
GeneralRe: Moving Non-Title Dialog Pin
Gary R. Wheeler12-Jun-05 2:01
Gary R. Wheeler12-Jun-05 2:01 
QuestionHow to update/refresh/resize the systray after replace the windows clock with static Pin
ELY M.11-Jun-05 17:47
ELY M.11-Jun-05 17:47 

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.