close

這是一個網友問我的問題, 我印象中是可以做到, 不過自己沒有實際測試過,

上網找到類似狀況, 找時間再來試試看!!


-----------------------------------

以下是問題

I have a .dll from c++ and I want to debug it in C#, but I don't know how to.

When I compiled the c++ project, Visual studio asked me to execute an ".exe".

I supposed that I had to create a project to execute the dll.

But I am lost, how could I debug it?

-----------------------------------

以下是回答

If I understand you correctly, you want to debug a C++ coded DLL that you created, in a C# project that calls the DLL, which you also created?

I've done this before by going into your C# project properties, and under the Debug section, checking the "Enable unmanaged code debugging" check box. This should allow you to step into your C++ DLL.


參考資料

1. Debug c++ dll in C#

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 me1237guy 的頭像
    me1237guy

    天天向上

    me1237guy 發表在 痞客邦 留言(0) 人氣()