News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Interfacing to C++ overloaded functions

Started by K_F, September 07, 2015, 04:45:24 PM

Previous topic - Next topic

K_F

I would like to interface to a C++ object function which is overloaded.
I can understand that the MS compiler can easily pick up which function it is from the source code, but does anyone know offhand how to do this dynamically.

The overloaded functions have to be separate code pieces or implement via 'switch' structures.

I'd would think that each overload function has a pointer in the object's virtual table - would this be correct ?

Thanks
'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

K_F

'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'


K_F

'Sire, Sire!... the peasants are Revolting !!!'
'Yes, they are.. aren't they....'

kcvinu

Some good soul posted the link of this page in a Stack Overflow page where discussion is about how to safely pass "this" pointer to a wndproc function. And when I arrived this page.... My day spoiled!

NoCforMe

Hmm; seems like "K_F" answered their own question but didn't bother to let the rest of us in on the solution. I think they may still be around here.
Assembly language programming should be fun. That's why I do it.

stoo23

Quote from: kcvinu on August 06, 2024, 11:22:21 AMSome good soul posted the link of this page in a Stack Overflow page where discussion is about how to safely pass "this" pointer to a wndproc function. And when I arrived this page.... My day spoiled!

Quote from: NoCforMe on August 07, 2024, 04:55:20 AMHmm; seems like "K_F" answered their own question but didn't bother to let the rest of us in on the solution. I think they may still be around here.
Yeah,.. Not all that helpful really eh ??,.. lol
He Does occasionally Drop-In and is still active, perhaps try sending him a PM ??