I have three dlls.
Each of them contains the same function - unfortunately, with different parameters. so i have the following methods
aMethod(param1) aMethod(param1, param2) aMethod(param1, param2, param3)
My task is to create a new dll (or a new dll) that is backward compatible. But, as far as I learned from Google, there is no way to overload methods in a dll.
Does anyone have any feedback on how I can solve this problem elegantly?
DLL. , DLL, - Windows, Delphi. , Delphi , , , . , -- DLL, , .
Delphi , , . , .
, DLL, , a.dll. , .
, DLL, DLL, exe , ( ).
, dll (a, b, c), - dll + . , DLL exes, dll a, b c? . , DLL . , .
, , DLL. Delphi . . :
http://delphi.about.com/od/objectpascalide/a/overloading.htm
- - - Delphi, #:
aMethod( int version, object args)
or in C:
aMethod (int version, void** args)
Then according to the version you can use casting. Note that args can also be a collection object.
NTN.
Source: https://habr.com/ru/post/1747986/More articles:Alternative for PHP mail - httpSometimes a big delay when using PHP mail () - httpUDP sockets on an ad hoc network (Ubuntu 9.10) - cMove file using ImpersonateLoggedOnUser - c #C # runtime error from double to int32 - c #QGraphicsItem redraws - c ++Create a new log file every time my program starts - javaSplitting a group of functions into an include file in C? - cFCKeditor in jQuery ui dialog not working - jqueryError using custom xslt - .netAll Articles