[問題] C++的DLL回傳structre ref問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Eclipse
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
sqlite3
問題(Question):
C++'s DLL 內設定回傳reference structure時會出現
str_output11.str_output0=1.0;//debug到這行,出錯exe己經停止運作
麻煩大家幫我看看,謝謝
餵入的資料(Input):
預期的正確結果(Expected Output):
可回傳reference structure
錯誤結果(Wrong Output):
出錯exe己經停止運作
程式碼(Code):請善用置底文網頁, 記得排版)
C++程式碼(DLL)
http://paste.plurk.com/show/2197276/
C程式碼(call C++'s DLL)
http://paste.plurk.com/show/2197281/
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 122.116.5.201
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1435760024.A.F77.html
→
07/02 01:10, , 1F
07/02 01:10, 1F
→
07/02 04:58, , 2F
07/02 04:58, 2F
→
07/02 04:59, , 3F
07/02 04:59, 3F
→
07/02 04:59, , 4F
07/02 04:59, 4F
→
07/02 04:59, , 5F
07/02 04:59, 5F
→
07/02 08:53, , 6F
07/02 08:53, 6F
→
07/02 08:54, , 7F
07/02 08:54, 7F
→
07/02 09:06, , 8F
07/02 09:06, 8F
→
07/02 12:42, , 9F
07/02 12:42, 9F
→
07/02 12:43, , 10F
07/02 12:43, 10F
→
07/02 14:07, , 11F
07/02 14:07, 11F
→
07/02 22:25, , 12F
07/02 22:25, 12F
→
07/02 22:26, , 13F
07/02 22:26, 13F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章