Trying to Add System::ComponentModel
-
I want to use the
Win32Exception
class in my C++/CLI DLL. The docs say it is located in theSystem::ComponentModel
namespace. But Intellisense is telling me that there is noComponentModel
namespace insideSystem
. And worse, there is no System.ComponentModel DLL to which to add a reference. I'm stuck. How do I get theSystem::ComponentModel
namespace and its classes into my DLL?The difficult we do right away... ...the impossible takes slightly longer.
-
I want to use the
Win32Exception
class in my C++/CLI DLL. The docs say it is located in theSystem::ComponentModel
namespace. But Intellisense is telling me that there is noComponentModel
namespace insideSystem
. And worse, there is no System.ComponentModel DLL to which to add a reference. I'm stuck. How do I get theSystem::ComponentModel
namespace and its classes into my DLL?The difficult we do right away... ...the impossible takes slightly longer.
you might try: Microsoft.Win32.Primitives.dll There is conflicting / confusing information out there. I've confirmed the above in C#.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
-
you might try: Microsoft.Win32.Primitives.dll There is conflicting / confusing information out there. I've confirmed the above in C#.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
Thanks Gerry. I have 125 copies of that file on my dev machine. Each one is a different size, date, version and in a different folder. I think I'll work around not having that exact exception class for now. :sigh:
The difficult we do right away... ...the impossible takes slightly longer.
-
I want to use the
Win32Exception
class in my C++/CLI DLL. The docs say it is located in theSystem::ComponentModel
namespace. But Intellisense is telling me that there is noComponentModel
namespace insideSystem
. And worse, there is no System.ComponentModel DLL to which to add a reference. I'm stuck. How do I get theSystem::ComponentModel
namespace and its classes into my DLL?The difficult we do right away... ...the impossible takes slightly longer.