Problem while using Windows Registry
-
hi, i found a code online regarding how to use windows registry and when i run it visual studio 2005 its running fine.. Now i tried to implement the samething implemented in the code in my application and i found and i am getting this folllowimg error. "fatal error C1190: managed targeted code requires a '/clr' option" In my .Cpp file i am using #using and in stdafx.h i am using #using #using using namespace System; using namespace System::Windows::Forms; using namespace Microsoft::Win32; #undef MessageBox please let me know the way to get over this error.. harsha
-
hi, i found a code online regarding how to use windows registry and when i run it visual studio 2005 its running fine.. Now i tried to implement the samething implemented in the code in my application and i found and i am getting this folllowimg error. "fatal error C1190: managed targeted code requires a '/clr' option" In my .Cpp file i am using #using and in stdafx.h i am using #using #using using namespace System; using namespace System::Windows::Forms; using namespace Microsoft::Win32; #undef MessageBox please let me know the way to get over this error.. harsha
To use managed c++, you need to choose option
Project-->Properties-->configuration properties-->c/c++-->General-->commaon language runtime support(/clr)
.Prasad Notifier using ATL | Operator new[],delete[][^]
-
hi, i found a code online regarding how to use windows registry and when i run it visual studio 2005 its running fine.. Now i tried to implement the samething implemented in the code in my application and i found and i am getting this folllowimg error. "fatal error C1190: managed targeted code requires a '/clr' option" In my .Cpp file i am using #using and in stdafx.h i am using #using #using using namespace System; using namespace System::Windows::Forms; using namespace Microsoft::Win32; #undef MessageBox please let me know the way to get over this error.. harsha
The code is using the CLR so you'll need to enable Common Language Runtime support in your project properties (Configuration Properties/General). Mark
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
-
The code is using the CLR so you'll need to enable Common Language Runtime support in your project properties (Configuration Properties/General). Mark
"Great job, team. Head back to base for debriefing and cocktails." (Spottswoode "Team America")
Thanks a lot its working now:) harsha
-
To use managed c++, you need to choose option
Project-->Properties-->configuration properties-->c/c++-->General-->commaon language runtime support(/clr)
.Prasad Notifier using ATL | Operator new[],delete[][^]
Thanks a lot its working now:) harsha
-
hi, i found a code online regarding how to use windows registry and when i run it visual studio 2005 its running fine.. Now i tried to implement the samething implemented in the code in my application and i found and i am getting this folllowimg error. "fatal error C1190: managed targeted code requires a '/clr' option" In my .Cpp file i am using #using and in stdafx.h i am using #using #using using namespace System; using namespace System::Windows::Forms; using namespace Microsoft::Win32; #undef MessageBox please let me know the way to get over this error.. harsha
harsh_2961 wrote:
using namespace Microsoft::Win32;
better ask you CLR based question in ManagedForum[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta Global Interface Table: An Easy Way to Marshal an Interface Pointer[new] VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
harsh_2961 wrote:
using namespace Microsoft::Win32;
better ask you CLR based question in ManagedForum[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta Global Interface Table: An Easy Way to Marshal an Interface Pointer[new] VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
You said better ask on the ManagedForum but he said thanks its working now:-D:doh:
WhiteSky
-
You said better ask on the ManagedForum but he said thanks its working now:-D:doh:
WhiteSky
WhiteSky wrote:
he said thanks its working no
he he he ;P
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta Global Interface Table: An Easy Way to Marshal an Interface Pointer[new] VC Forum Q&A :- I/ IV Support CRY- Child Relief and You