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

C / C++ / MFC

 
GeneralRe: How to detect fullscreen? Pin
anycallmy28-Nov-05 17:31
anycallmy28-Nov-05 17:31 
Questionround off function in vc.net Pin
salaikumar28-Nov-05 2:09
salaikumar28-Nov-05 2:09 
AnswerRe: round off function in vc.net Pin
toxcct28-Nov-05 3:15
toxcct28-Nov-05 3:15 
AnswerRe: round off function in vc.net Pin
jhwurmbach28-Nov-05 3:31
jhwurmbach28-Nov-05 3:31 
QuestionDatagrid column backcolor in vc.net Pin
salaikumar28-Nov-05 2:07
salaikumar28-Nov-05 2:07 
QuestionCSocket Receive Problem Pin
Sarath C28-Nov-05 1:51
Sarath C28-Nov-05 1:51 
Questionhow to set images onto outlookbar' folders? Pin
gzy900128-Nov-05 1:08
gzy900128-Nov-05 1:08 
QuestionFunction pointer and Member function pointer Pin
tbrake28-Nov-05 0:10
tbrake28-Nov-05 0:10 
Hallo

Assume I have some classes...

One class for communication and their derived for the exteranl machine that is used. There for class DEVICE provides some virtual functions and some normal member function...

Now i want to write some libraries ( *.dll ) and they should also use the class DEVICE... but only the nonchangeable methods write and read. So i'd like to pass two function pointers the dll -- no problems so far...

But how about creating the function pointer...

I retrieve: cannot convert from 'void (__cdecl CDEVICE::*)(int,char *)' to 'void (__thiscall CDEVICE::*)(int,char *)' or other proplems i cant fix ...

this is what i have:

<br />
// DEVICE.h<br />
class CDEVICE<br />
{<br />
public:<br />
	typedef void (CDEVICE::*sendfunc)(int,char*);<br />
	sendfunc sendout;<br />
<br />
        void  _cdecl dev_out  (int p_adr,char* devcmd);<br />
};<br />


...

<br />
// DEVICE.cpp<br />
CDEVICE::CDEVICE()<br />
{<br />
        sendfunc = dev_out;<br />
}<br />



Please Help

THX T
AnswerRe: Function pointer and Member function pointer Pin
Chris Losinger28-Nov-05 3:33
professionalChris Losinger28-Nov-05 3:33 
QuestionClass shortcut Pin
Ciprian Cana28-Nov-05 0:06
Ciprian Cana28-Nov-05 0:06 
AnswerRe: Class shortcut Pin
toxcct28-Nov-05 3:33
toxcct28-Nov-05 3:33 
Questionreading from a given offset (from a file) Pin
zooley27-Nov-05 23:59
zooley27-Nov-05 23:59 
AnswerRe: reading from a given offset (from a file) Pin
kakan28-Nov-05 0:20
professionalkakan28-Nov-05 0:20 
GeneralRe: reading from a given offset (from a file) Pin
zooley28-Nov-05 0:53
zooley28-Nov-05 0:53 
GeneralRe: reading from a given offset (from a file) Pin
kakan28-Nov-05 3:14
professionalkakan28-Nov-05 3:14 
GeneralRe: reading from a given offset (from a file) Pin
David Crow28-Nov-05 6:10
David Crow28-Nov-05 6:10 
GeneralRe: reading from a given offset (from a file) Pin
zooley28-Nov-05 21:18
zooley28-Nov-05 21:18 
Questionsimple way to append a menu with a icon? Pin
Tcpip200527-Nov-05 23:54
Tcpip200527-Nov-05 23:54 
QuestionA program that can only be closed down by itself ,through an exit password. Pin
luyongxing27-Nov-05 23:42
luyongxing27-Nov-05 23:42 
AnswerRe: A program that can only be closed down by itself ,through an exit password. Pin
Marc Soleda28-Nov-05 0:03
Marc Soleda28-Nov-05 0:03 
GeneralRe: A program that can only be closed down by itself ,through an exit password. Pin
luyongxing28-Nov-05 17:49
luyongxing28-Nov-05 17:49 
AnswerRe: A program that can only be closed down by itself ,through an exit password. Pin
David Crow29-Nov-05 5:04
David Crow29-Nov-05 5:04 
QuestionMFC: CCriticalSection problem Pin
Pixinger7727-Nov-05 23:29
Pixinger7727-Nov-05 23:29 
AnswerRe: MFC: CCriticalSection problem Pin
sunit528-Nov-05 0:50
sunit528-Nov-05 0:50 
GeneralRe: MFC: CCriticalSection problem Pin
Pixinger7728-Nov-05 4:00
Pixinger7728-Nov-05 4:00 

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.