Click here to Skip to main content
16,018,353 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Question BackGroud:

Recently, I develop a .Net Add-Ins application, this add-ins is loaded into VS2010 after VS2010 start.

when I open a C++ project with VS2010, i need to debug this C++ project. however, this c++ project will call a Unmanaged C++ dll file. I want to implement to monitor a variable values of the C++ dll using Add-Ins. that is to say, when the variable values change, the Add-Ins will monitor this change and respond changes. I want to implement this function with Events machanism, but I really meet trouble in this matter. pls give me some advices about this question. thanks!
Posted
Updated 18-Feb-14 23:03pm
v2
Comments
Richard MacCutchan 19-Feb-14 5:04am    
You can add watch points in the debugger.

Eventhandler are fine. But you need to fire native data types and work with the right interfaces.

Here is a sample on the C# side:
Events and event handling in C#[^]

and here how to consume dlls:
Window Hiding with C#[^]

I have a project in which I do this stuff and it works fine for years.
 
Share this answer
 
KastenK,Thanks for your solution for my question. and I have resolved the problem based on your ideas, it can work. thanks again.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900