CMarkup建立xml檔案編譯報錯

2021-05-01 23:47:21 字數 746 閱讀 7294

[code=c/c++]

#include "

stdafx.h

"#include

"markup.h

"void

main()

[/code]

錯誤資訊:

--------------------configuration: testcmarkup - win32 debug--------------------

compiling...

stdafx.cpp

markup.cpp

note: mbcs build (not utf-8)

linking...

nafxcwd.lib(thrdcore.obj) : error lnk2001: unresolved external symbol __endthreadex

nafxcwd.lib(thrdcore.obj) : error lnk2001: unresolved external symbol __beginthreadex

debug/testcmarkup.exe : fatal error lnk1120: 2 unresolved externals

error executing link.exe.

testcmarkup.exe - 3 error(s), 0 warning(s)

解決辦法:

工程-〉設定-〉選擇使用mfc靜態庫,編譯成功,生成xml檔案

建立xml檔案 解析xml檔案

import codecs import xml.dom.minidom doc xml.dom.minidom.document print doc root doc.createelement booklist print u 新增的xml標籤為 root.tagname root.setatt...

建立XML檔案

function xml write htmcode,data type,mb order,mb name select case data type case 1 sql w select from zine mags where z id z id and page id page id and...

建立XML檔案

生成的xml檔案如下 小白楊0 010 888 0 北京 海淀區 鑄成大廈 0 小白楊1 010 888 1 北京 海淀區 鑄成大廈 1 小白楊2 010 888 2 北京 海淀區 鑄成大廈 2 小白楊3 010 888 3 北京 海淀區 鑄成大廈 3 小白楊4 010 888 4 北京 海淀區 鑄...