c++ - windows programming , how to create a function in dll which can take all datatypes as input? -
I want to do a general task that can take any data type as a logic and in that data type only Results can be applied how to implement it through DLL.
It seems that you have a templated function in DLL, without specifying its type.
You can not do this because the collection of templates is resolved over time (hence the code is ready). As mentioned by @mslaters, you may not have an infinitely big template.
If you have a predefined data type, you can force them to be institute in your DLL code.
If you want to talk about the most common thing, then you can only
getResult * (zero * InputPameter) *
< P> But unfortunately, you do not know how memory is mapped for the object (so little profit, if you ask me more of the pain).
Comments
Post a Comment