简体   繁体   中英

How to use DigiDoc C++ library with Delphi?

I got http://www.id.ee/index.php?id=36484 I want to use it in Delphi. There is demo-exe . I opened it using Dependency walker and I see it uses digidocpp.dll I see void digidoc::initialize(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &) How do I call it in Delphi?

The function you refer to uses STL classes and so can only be accessed from C++ code. You will need to write a C++ adapter DLL and consume that from Delphi. The adapter consumes the C++ interface on one side, and presents an interface accessible to Delphi on the other. For instance you might expose COM compatible interfaces.

You will also need the documentation and SDK for the C++ library.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM