Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yumetodo/xml_test_cooking_quiz
msxmlを使用。xmlを読み取って問題を出題する
https://github.com/yumetodo/xml_test_cooking_quiz
Last synced: 11 days ago
JSON representation
msxmlを使用。xmlを読み取って問題を出題する
- Host: GitHub
- URL: https://github.com/yumetodo/xml_test_cooking_quiz
- Owner: yumetodo
- Created: 2015-08-17T04:14:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T09:13:35.000Z (almost 8 years ago)
- Last Synced: 2025-01-20T03:37:07.557Z (15 days ago)
- Language: C++
- Size: 31.3 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## このプログラムは何?
msxmlのラッパーもどきをつくろうとしていた。で昔作ったプログラム
https://gist.github.com/yumetodo/3e1db684f61a73029416
を実験用に書き換えている。
## コンパイル条件
確認しているのは
- Visual Studio 2015 Community
- gcc 4.9.2 (msys2 mingw)
- clang 3.5.2 (msys2 mingw)static_assert使っているところがあるからそこ消せばVS2013 November CTPでもいけるのか・・・?
gcc/clangのコンパイルには
```
-std=c++14 -lOle32 -lOleAut32 -lmsxml3 -luuid
```が必要。なお、msxmlを使うので多分windows以外ではコンパイルできない
# Issue
xmlreader_simple.cpp の134行目付近```cpp
xmlnode_c xmllist_iterator_c::operator*() const{
if (std::numeric_limits::max() == this->m_index) throw std::out_of_range(std::string("存在しないnodeの実体は取得できません"));
IXMLDOMNode* lpItem = nullptr;
if (nullptr == this->m_xmllist_c->list) throw xml_runtime_error("nodelistが空です");
const auto err = this->m_xmllist_c->list->get_item(this->m_index, &lpItem);
if (nullptr == lpItem) throw xml_runtime_error("nodeを取得できませんでした。原因:" + hresult_to_string(err));
return xmlnode_c(lpItem);
}
```get_itemで失敗する。詳細は
[https://github.com/yumetodo/xml_test_cooking_quiz/issues/2](https://github.com/yumetodo/xml_test_cooking_quiz/issues/2)
へ