Вы можете использовать потоки, итераторы и алгоритм копирования, чтобы сделать это довольно напрямую.
#include <string>
#include <vector>
#include <iostream>
#include <istream>
#include <ostream>
#include <iterator>
#include <sstream>
#include <algorithm>
int main()
{
std::string str = "The quick brown fox";
// construct a stream from the string
std::stringstream strstr(str);
// use stream iterators to copy the stream to the vector as whitespace separated strings
std::istream_iterator<std::string> it(strstr);
std::istream_iterator<std::string> end;
std::vector<std::string> results(it, end);
// send the vector to stdout.
std::ostream_iterator<std::string> oit(std::cout);
std::copy(results.begin(), results.end(), oit);
}
WHAT_GOES_HERE
- это ProgID, Class ID или имя, зарегистрированное в операционной системе.
Каждый из этих может изменяться для одной и той же DLL, зарегистрированной на разных машинах. Есть несколько способов узнать, что такое ProgID / CLSID / Moniker зарегистрированной dll. Вы можете поискать в Интернете по запросу «dll debugger», «dll export», «dll inspect», и вы увидите несколько решений, а также способы показать, какие функции экспортирует dll, чтобы вы могли их использовать.
Самый простой способ , вы можете просто зарегистрировать dll с помощью Regsvr32.exe и поискать в регистре Windows с помощью regedit.exe имя dll,