I had working code that implemented a wrapper and interface along the lines of:
public class wrapper : wrapperInterface {
...
}
Intellisense was generating a wrapperInterfacePtr so that in a C++ header I had a valid statement of:
wrapper::wrapperInterfacePtr m_wrapper;
I was mucking around trying to add some Delegate functionality so I could pass a C++ callback into the C# (I failed), and at some point during the mucking around the auto-generated wrapperInterfacePtr became undefined. Even after I returned all the code to (what appears) to be its original state, Intellisense is not generating wrapperInterfacePtr.
Any thoughts on how what I could have done, or how to kick-start Intellisense?
Ok, I got it to work again. I can't give the definitive reason it failed, but I have an idea. The new c# managed code is on top of a huge library of existing C++ unmanaged code. I build the managed code using VS and then use an in-house tool to build everything else. The in-house build tool doesn't do a clean unless you really, really force the issue. (It would take days.) When I did a build-clean on the dlls that interfaced with the managed code, that fixed the problem.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.