|
|
|
Как взять из XML строку в виде BSTR
|
|||
|---|---|---|---|
|
#18+
Вот код: _bstr_t bstrMessage = str; ::CoInitialize(NULL); MSXML::IXMLDOMDocumentPtr plDomDocument; MSXML::IXMLDOMElementPtr pDocRoot; plDomDocument.CreateInstance(MSXML::CLSID_DOMDocument); plDomDocument->loadXML(bstrMessage); pDocRoot = plDomDocument->documentElement; MSXML::IXMLDOMNodePtr pChild = pDocRoot->firstChild; _bstr_t bstrFrom = pChild->text; bstrMessage содержит код XML. pChild->text прописан в XML как "fff\0fff", а bstrFrom после присваивания содержит "fff". По ходу дела pChild->text останавливается на '\0'. Что мне нужно сделать, чтобы bstrFrom содержал "fff\0fff". Спасибо. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.01.2006, 15:12 |
|
||
|
Как взять из XML строку в виде BSTR
|
|||
|---|---|---|---|
|
#18+
По поводу сути проблемы см. пост . Что касается BSTR и _bstr_t: см. _bstr_t::GetBSTR в MSDN. Приглашаю посетить сайт ИСКАТЕЛИ АЛМАЗОВ и другие эстонские юморески ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.01.2006, 16:12 |
|
||
|
|

start [/forum/topic.php?fid=14&msg=33508015&tid=1334889]: |
0ms |
get settings: |
8ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
193ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
46ms |
get tp. blocked users: |
1ms |
| others: | 215ms |
| total: | 494ms |

| 0 / 0 |
