Click here to Skip to main content
15,902,189 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: MessageBox in Vc++2005 Pin
Mark Salsbery20-May-07 7:05
Mark Salsbery20-May-07 7:05 
AnswerRe: MessageBox in Vc++2005 Pin
Anurag Gandhi20-May-07 21:28
professionalAnurag Gandhi20-May-07 21:28 
GeneralRe: MessageBox in Vc++2005 Pin
lavy288321-May-07 4:12
lavy288321-May-07 4:12 
QuestionLNK4248 error Pin
subramanyeswari17-May-07 23:19
subramanyeswari17-May-07 23:19 
AnswerLNK4248 error Pin
subramanyeswari17-May-07 23:30
subramanyeswari17-May-07 23:30 
QuestionCollapsable Side Menus Pin
john john mackey17-May-07 9:47
john john mackey17-May-07 9:47 
GeneralPointer to function as arguments in visual c++ Pin
dodoxor17-May-07 7:27
dodoxor17-May-07 7:27 
GeneralRe: Pointer to function as arguments in visual c++ Pin
Mark Salsbery17-May-07 7:59
Mark Salsbery17-May-07 7:59 
This should be posted on the Visual C++/MFC[^] board.

The error messages state what needs to be done to get the address of a member function.
Note that this still won't compile because the member functions are not declared static, which
means there's an implicit "this" pointer passed to the methods.

One way to get it to compile:
class A
{
public:
   A();
   static void jpeg_received(jpg_t* jpg);
   static void exit_capturing(int code);
   int rec(void);
public:
   camaddr_t camaddr;
   CAPID capid;
};  
...
CAPID capid = ccap_start_capturing(..., &A::jpeg_received, &A::exit_capturing);

Note that static methods cannot access non-static member variables/methods.

Mark



"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

AnswerRe: Pointer to function as arguments in visual c++ Pin
sthotakura21-May-07 9:57
sthotakura21-May-07 9:57 
Questionprogram code fro a tough question Pin
MaddySays17-May-07 0:56
MaddySays17-May-07 0:56 
AnswerRe: program code fro a tough question Pin
Christian Graus17-May-07 1:07
protectorChristian Graus17-May-07 1:07 
GeneralRe: program code fro a tough question Pin
MaddySays17-May-07 1:18
MaddySays17-May-07 1:18 
GeneralRe: program code fro a tough question Pin
Christian Graus17-May-07 1:32
protectorChristian Graus17-May-07 1:32 
GeneralRe: program code for a tough question Pin
MaddySays17-May-07 1:45
MaddySays17-May-07 1:45 
GeneralRe: program code for a tough question Pin
Christian Graus17-May-07 2:13
protectorChristian Graus17-May-07 2:13 
Questionstrcat_s question [modified] Pin
Stick^16-May-07 12:48
Stick^16-May-07 12:48 
AnswerRe: strcat_s question Pin
Christian Graus16-May-07 13:10
protectorChristian Graus16-May-07 13:10 
QuestionError 206 error C2665: 'qsort' : none of the 2 overloads could convert all the argument types Pin
subramanyeswari16-May-07 5:55
subramanyeswari16-May-07 5:55 
AnswerRe: Error 206 error C2665: 'qsort' : none of the 2 overloads could convert all the argument types Pin
subramanyeswari16-May-07 6:02
subramanyeswari16-May-07 6:02 
GeneralRe: Error 206 error C2665: 'qsort' : none of the 2 overloads could convert all the argument types Pin
Mark Salsbery16-May-07 6:33
Mark Salsbery16-May-07 6:33 
Questionlnk2028 unresolved token Pin
subramanyeswari16-May-07 2:16
subramanyeswari16-May-07 2:16 
AnswerRe: lnk2028 unresolved token Pin
Mark Salsbery16-May-07 5:48
Mark Salsbery16-May-07 5:48 
GeneralRe: lnk2028 unresolved token Pin
subramanyeswari16-May-07 5:51
subramanyeswari16-May-07 5:51 
QuestionLogging Pin
hansipet16-May-07 0:06
hansipet16-May-07 0:06 
AnswerRe: Logging Pin
sthotakura21-May-07 21:24
sthotakura21-May-07 21:24 

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.