"Paul Thomas" <[EMAIL PROTECTED]> writes:
> So when I'm using the library, my class has to have a static member
> function so that it can be passed into you library as a function
> pointer. Unfortunately a non-static member function can not be passed
> into the library.
You've got "abstract" void
Mikhail ,
Thanks a lot! That example was exactly what I needed to see! I
couldn't figure out any way out of being stuck with using static
member functions.
thanks,
Paul
On Dec 15, 2007 1:15 AM, Mikhail Gusarov <[EMAIL PROTECTED]> wrote:
> "Paul Thomas" <[EMAIL PROTECTED]> writes:
>
> > So when I
Mikhail,
So I ran into a snag using your method, maybe you can help me a little
more. I'm able to cast the abstract pointer to my object, but it isn't
a valid pointer to the object. Is there some trick to setting the
"abstract" pointer to my object? I'm really confused.
SSHConnection* this_ = sta
Dan,
I'm completely lost as to how I could "store an array of functors for
objects using libssh2". Is this some undocumented part of the library?
Would I somehow tell the library about my object's address?
I'd appreciate any advice,
Paul
On Dec 15, 2007 2:21 AM, Dan Fandrich <[EMAIL PROTECTED]>
On Sat, Dec 15, 2007 at 05:57:20PM -0500, Paul Thomas wrote:
> I'm completely lost as to how I could "store an array of functors for
> objects using libssh2". Is this some undocumented part of the library?
> Would I somehow tell the library about my object's address?
As someone else has already po
Whoa. Ok, I think I understand this better now.
So inside my C++ class that is wrapping up the library, I use the
"abstract" parameter as a data storage object:
mp_session = libssh2_session_init_ex(NULL, NULL, NULL, this);
and then when I give the library my static member function, inside
that