The MASM Forum

General => The Campus => Topic started by: K_F on September 07, 2015, 04:45:24 PM

Title: Interfacing to C++ overloaded functions
Post by: K_F on September 07, 2015, 04:45:24 PM
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
Title: Re: Interfacing to C++ overloaded functions
Post by: K_F on September 07, 2015, 11:28:34 PM
Not to worry.. have all the info
:biggrin:
Title: Re: Interfacing to C++ overloaded functions
Post by: Zen on September 09, 2015, 05:55:53 AM
So,...problem solved ???
Title: Re: Interfacing to C++ overloaded functions
Post by: K_F on September 09, 2015, 05:09:51 PM
Problem ??
:biggrin:
Title: Re: Interfacing to C++ overloaded functions
Post by: kcvinu on August 06, 2024, 11:22:21 AM
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!
Title: Re: Interfacing to C++ overloaded functions
Post by: NoCforMe on August 07, 2024, 04:55:20 AM
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.
Title: Re: Interfacing to C++ overloaded functions
Post by: stoo23 on August 07, 2024, 11:02:18 AM
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 ??