Name mangling of c++ classes and its member functions?

后端 未结 4 1129
失恋的感觉
失恋的感觉 2021-01-21 01:15

Is there no way I could avoid name mangling of C++ classes and its member functions when exposed from a c++ dll.

Can\'t I use a def file mechanism in this regard ?

4条回答
  •  没有蜡笔的小新
    2021-01-21 02:02

    Virtual function would be the answer I think, have you noticed COM, create a instance, it gives you a pointer to that interface represented as class. I guess that methods declared are not resolved by name, but by slot index.

提交回复
热议问题