Discussion:
Unmanaged C++ code
(too old to reply)
aegis
2009-10-30 15:45:36 UTC
Permalink
I'm modifying the registry using the RegistryKey class.
Is there a way to use this class such that my program
does not have to be compiled with /clr?

I would ideally like to make the executable non-reliant
on any dependencies.
Scott McPhillips [MVP]
2009-10-30 15:52:48 UTC
Permalink
RegistryKey is a managed class, so using it requires /clr.

To access the registry with unmanaged code used unmanaged API functions or
the unmanaged CRegKey class.
Post by aegis
I'm modifying the registry using the RegistryKey class.
Is there a way to use this class such that my program
does not have to be compiled with /clr?
I would ideally like to make the executable non-reliant
on any dependencies.
--
Scott McPhillips [VC++ MVP]
Continue reading on narkive:
Loading...