I need to develop a C ++ front-end using MSVC, which should link to the bank end library that is compiled with C ++ Builder.
How can we define our interfaces so that we don’t run into CRT library problems?
For example, I believe that we cannot safely transfer STL containers back and forth. It's true?
I know that I can safely pass POD types, but I hope I can use even more complex data structures.
- ++-. , STL, - . , POD .
STL , STL. STL (, , ), STL .
, , - frieindly. , __cdecl __stdcall , __fastcall , ++ Builder.
__cdecl
__stdcall
__fastcall
"Binary-compatible ++ Interface", , .
, Component Object Model (COM), ++, , .
, C, , POD. POD, C ++, .
, , POD, , , , .. C /.
, COM, CORBA , . , , " ".
++-Builder .
I ran into problems when transferring STL containers even when using the same STL implementation, but set different levels of debugging information, etc. Therefore, Passing PODs will be fine. C ++ containers will almost certainly lead to problems.
Source: https://habr.com/ru/post/1768062/More articles:Eclipse ide cannot resolve variables in newly written functions - javaHow to add multiple sorting options on a category page in magento? - phpMigrator.Net - create from existing database - .netHow to set richtext field in pencil to custom width? - firefox-addonAgnostic automatic deployment - javaНеобходимый подход для работы с небольшими подмножествами большого набора данных - sqlHow can I reliably parse a QuakeLive player profile using Perl? - htmlMySQL to create an age pyramid - mysqlJQuery: добавление селектора к уже выбранному объекту - jqueryAdd or merge lossless python dictionaries - pythonAll Articles