Re: How to declare a C++ member method for a ListN - WeOnlyDo Discussion board

Re: How to declare a C++ member method for a ListN (General questions)

by yumcious, Friday, March 25, 2005, 03:21 (6982 days ago) @ wodSupport

Yum,

isn't that declared in sftpdll.h header file?

No sir. I'm referring to the use of the callback as a normal C++ class member function, instead of a standalone function outside of the class.

So, for example, when the ListNames callback is called, the DLL is actually calling one of the wrapped C++ member function. In this case, the callback still has access to all the member variables in the same class. BUt this needs the callback functions to add another DWORD parameter at the front of the callback parameter list.

Yes, I know, I'm asking a tad much. I'm thinking that perhaps I should revert to a class-less standalone function for this SFTP stuff. Wrapping it in a C++ class was a stretch.

Regards
KS


Complete thread: