看板 C_and_CPP 關於我們 聯絡資訊
想請問各位大神 最近參考以下網站資訊寫了pdf流程的error handerler 但執行時總會於原始碼13行error_hander處跳出E0167 C2664錯誤 分別為參數不相容與引數轉換的錯誤 不知是否有大大能分享相關經驗 先感謝大家的回覆與分享 參考網站 https://github.com/libharu/libharu/wiki/Error-handling#The_typical_usage_of_erro 原始碼 https://ideone.com/FBFkcU ----- Sent from JPTT on my HTC_U-3u. ※ 編輯: lattes (110.28.8.199 臺灣), 03/18/2021 10:46:31
nh60211as: 沒問題餒,你的Visual C++版本跟設定是什麼 03/18 11:46
lattes: http://i.imgur.com/jHPWcBg.jpg 03/18 14:16
lattes: n大您好 附上專案設定 03/18 14:16
nh60211as: 這樣子好了,你bulid libharu的流程秀一下,build完之 03/18 14:44
nh60211as: 的hpdf.h也秀一下。因為我看libharu沒有提供VC++的 03/18 14:44
nh60211as: dll,所以自己建的流程可能會出錯 03/18 14:45
lattes: 請問指的是套件的安裝流程嗎 libharu我是用vcpkg直接裝的 03/18 14:56
lattes: 03/18 14:56
nh60211as: 剛剛測過vcpkg build x86跟x64的libharu函式的格式 03/18 15:44
nh60211as: 不一樣。我有空再貼差別 03/18 15:45
lattes: 再麻煩n大解惑了 非常感謝您! 03/18 15:56
nh60211as: 改成void HPDF_STDCALL error_handler(... 可以編譯 03/18 16:06
nh60211as: 可是能不能跑我不知道,因為防毒會擋 03/18 16:06
nh60211as: 建議你下次依照發問的格式把該填的都填一填 03/18 16:07
lattes: 想請教n大是怎麼build的呢? 再測試後依然無法執行 不知是 03/18 20:24
lattes: 否為vcpkg的方式不可行 03/18 20:24
nh60211as: 用vcpkg裝x86、x64都可以,用cmake裝x64可以 03/18 20:42
nh60211as: 我現在手邊沒有build好的程式碼可以看,所以先別等我了 03/18 20:43