|
Run regedit.exe as an Administrator from within the limited user account.
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
|
|
|
|
|
First off you are in the wrong forum. None of your questions are about managed or mixed mode development which this forum is intended for as one might see if they READ the first message in the forum.
Second, one interpretation of your collection of posts is that you believe the way to learn about subjects is to ask people in internet forums to teach them to you. In my opinion this about the worst way to attempt learning a subject. A more efficient method would be to read the documentation or even buy a book that covers the subject. Also there is a mountain of articles and blog entries on the internet that might provide introductory type explanations of subject. One can happily find them by using Google to search for them. There are actually a lot of these articles on CodeProject, the CodeProject articles are a primary purpose of this site. Look through the "CHAPTERS" menu on the site. Then once you have at least a beginner level grasp of the subject people in forums might be able to help you with specific problems if/when you get stuck on something.
led mike
|
|
|
|
|
Well put
Regards,
--Perspx
"The Blue Screen of Death, also known as The Blue Screen of Doom, the "Blue Screen of Fun", "Phatul Exception: The WRECKening" and "Windows Vista", is a multi award-winning game first developed in 1995 by Microsoft" - Uncyclopedia
|
|
|
|
|
Let me answer your question one by one:
I dont think all my questions are irrerevelant to the group.
Secondly thanks a lot for your interpretation that i ask people questions and learn .If my intention is that then i would join some classes rather that posting questions in the forum .
I can buy books thats again a good thought but let me make it clear to you that had i not read any books then i would not even be coding , or rather my questions are not soo preliminary
and thirdly searching on the google , i have been searching for these questions but when i could not find appropriate ans i ask questions here
Please for gods sake help people but do not tell them what to do.
You could have put the same thing in a better way or rather you could have directed me to the correct group which you haven't this clearly shows that you like to rebuke ppl,
its always easy to point mistakes but difficult to help others.
|
|
|
|
|
gayatri.neelema wrote: Please for gods sake help people but do not tell them what to do.
Look, you've been a member of this site for 6 months. I know what's going on here far better than you do. I suggest that you listen to me rather than argue with me. You have posted this question IN THE WRONG FORUM, period. Figure it out or get lost, either way I don't care.
led mike
|
|
|
|
|
I have not argued with you but asked u to be more sensible and help ppl.
may be you have more experience but u dont have to any right to be rude you could have been better but u r getting worse fine i understand that its ur problem and i am not even interested in what or who u r ,
i better chose to ignore u and not care for any of ur messages
|
|
|
|
|
|
Geeze, long enough post? It's best just to post only your trouble spot.
math415 wrote: If your program won't at least compile and run (even if it gives incorrect answers) you'll lose 10 points.
Homework problem. You should really be consulting with your instructor.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi ,
I want to write a sample application for registry cleaning.
I wanted to know how do we decide if a particular registry key is invaid or not so that we can delete the key.
How do we search for invalid registry keys.
I am using c++
Thanks,
Gayatri
|
|
|
|
|
The keys under HKEY_CLASSES_ROOT are pretty well defined - you can
cleanup orphaned file/type associations relatively easily.
Beyond that I'm not sure how much you can reliably do. There's no magic
APIs that will tell you if an item in the registry is still being used.
I do know you can make your system unusable very easily
Good luck!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thanks for you answer.
It would be nice of you if you cold tell me how will is the relation mainitained for the keys which are being used .
I am novice to it,so it would be great if you could explain it with an example.
Thanks
|
|
|
|
|
|
Hi,
I want to find the active threads running in a process.
I am using c++ and win32 API's.
Thanks,
Gayatri
|
|
|
|
|
If this isn't a Managed C++ question (using .NET) please direct your question to C++ Forum[^]. If you are using the managed libraries, you can use the System.Diagnostics.Process[^] class to get the Threads[^] that belong to that process.
|
|
|
|
|
You could use the WMI Win32_Process and Win32_Thread classes.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I need to call a managed C++ dll from our native C++ code. To manage this i followed the tutorial in http://support.microsoft.com/kb/828736 "How to call a managed DLL from native Visual C++ code in Visual Studio.NET or in Visual Studio 2005."
However I'm using VS2008 and the article is using a managed C# dll.
Were the article says:
Replace the following lines of code in the AssemblyInfo.cs file
[assembly: ComVisible(false)]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
with the following.
[assembly: ComVisible(true)]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("..\\..\\MyKeyFile.SNK")]
I added the SNK file to the projects property "linker->Advanced->Key File" and changed [assembly: ComVisible(false)] in the AssemblyInfo.cpp file.
Now when I build my solution I get following errors in the native code:
error C2787: 'WNXal::NeXus' : no GUID has been associated with this object
error C2079: 'pINeXus' uses undefined struct 'WNXal::INeXus'
Code snippit:
--------------
#import "../Lib/NeXus/References/WNXal.tlb" raw_interfaces_only
using namespace WNXal;
HRESULT hr = CoInitialize(NULL);
INeXus pINeXus(__uuidof(WNXal::NeXus));
long lResult = 0;
e = pINeXus->Initialize();
CoUninitialize();
Benny
|
|
|
|
|
Stray Bullet wrote: I need to call a managed C++ dll from our native C++ code.
Alternatively you can make a mixed mode project to solve that problem without the need to expose the managed classes using COM
[Native module] calls --> [Mixed Mode module] calls --> [Managed module]
no COM.
led mike
|
|
|
|
|
I have designed a Winform Form, lets say Form1.h. I can switch to its Form designer and drop components etc. Now, if i insert this Form1.h in a different solution/project, i can compile, call the Form, but i cannot switch to the form designer. It's like a plain .h file. How can i make VS2008 understand that this is a form, so that i can edit it visually?
I'm using VS2008 C++/CLR.
Thanks
|
|
|
|
|
uus831 wrote: Now, if i insert this Form1.h in a different solution/project, i can compile, call the Form, but i cannot switch to the form designer.
What if you copy and add the Form1.resx file to the new project as well?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi, i tried that too, but its just the same. I cant switch to form designer.
|
|
|
|
|
I ran into a similar problem not long ago (using VS2005 Pro). Here's how I solved it
1. In the project you want a copy of the Form1, simply add a new Form object. Be sure to call it Form1 was well (or whatever you called it in your original project).
2. Delete the .h and .cpp files for the form you just created. Leave the .resx file alone.
3. Copy Form1.h and Form1.cpp from your original project to your new project and compile. Be sure to rename them to whatever you called the form you just deleted. Since your copied form is now the same name, it should work just fine.
I'm not certain if this is exactly what I did, but I have it documented at work. I can check on it Monday.
Dybs
|
|
|
|
|
Thanks!!! It works! I have tried, and it works great. Except, that you need to rename the namespace so that it is the same in the new project.
Great tip!
Thanks again.
|
|
|
|
|
Oh yeah, kinda forgot the namespace thing No problem, glad to help.
Dybs
|
|
|
|
|
Hi,
I'm trying to call CreateThread() from windows.h using the below code:
The problem argument seems to be the emphasised one...
<br />
unsigned long i;<br />
<br />
CreateThread(NULL, 0, LiftThread, (void *)i, 0, &id);<br />
Im getting the error:
Error 5 error C2440: 'function' : cannot convert from 'unsigned long (__cdecl *)(void *)' to 'LPTHREAD_START_ROUTINE'
Does anyone know how I could fix this?
Cheers,
|
|
|
|
|
Your thread procedure needs to be defined as follows:
DWORD WINAPI LiftThread(LPVOID lpParameter);
Is that how you defined it?
Also, non-C++/CLI questions should be posted on the Visual C++/MFC board
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|