|
MSXML/XPath doesn't work with default namespaces: Q313372[^]
0 bottles of beer on the wall, 0 bottles of beer, you take 1 down, pass it around, 4294967295 bottles of beer on the wall.
Awasu 2.2.3 [^]: A free RSS/Atom feed reader with support for Code Project.
|
|
|
|
|
thanks
|
|
|
|
|
Hi,
I want to protect one of my partition drive from formatting and deleting in any way.I do not know how to protect this.Can any body help me please.
Thanx
nirmal
|
|
|
|
|
You can hide your partition drive with registry
|
|
|
|
|
thanx for your reply.
But how can i hide using registry.
nirmal
|
|
|
|
|
Can explain why you want to hide your partition drive,please?
|
|
|
|
|
I want to take backup of my OS in a partition drive other than OS drive and Active partition drive.So I want to protect that drive from unauthorised acces like formatting,deleting etc. Because i want that drive only for backup purpose.
nirmal
|
|
|
|
|
aaaan wrote: I want to take backup of my OS in a partition drive other than OS drive and Active partition drive.So I want to protect that drive from unauthorised acces like formatting,deleting etc. Because i want that drive only for backup purpose.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
You need to create DWORD value "NoDrives" and set value data to
drive a: 1
drive c 4
drive d 8
...
|
|
|
|
|
Thanks for your reply.
But it is not working.
nirmal
|
|
|
|
|
I used and it work how do you use?
you want create a dword value that is NoDrives and for its value enter 1 and restart your computer then when you see MyComputer you can see drive a
|
|
|
|
|
WhiteSky wrote: you want create a dword value that is NoDrives and for its value enter 1 and restart your computer then when you see MyComputer you can see drive a
http://www.codeproject.com/system/SysUtil.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
aaaan wrote: Thanks for your reply.
But it is not working.
http://www.codeproject.com/system/SysUtil.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Thanks ThatsAlok,
It is OK.
The drives are removed from explorer,but still we can do anything through
Computer Management->Disk management.I need to protect my drive from formatting and deleting.
nirmal
|
|
|
|
|
A good link thanks Alok
I think writer this article is ThatsAlok,Right?
|
|
|
|
|
Hi Friends!
I m working on Ms Access .mdb file Format.
Till now i know some information about .mdb file format like .mdb format stores data in different pages of fixed size.
In .mdb file format one of the main page is Databases Defination Page which stroe the information about the password and Encryption used in it.If any body know which type of encryption algorithm used in .mdb file format to store the password and other information and how much bytes used to store this information.
the other importent page is Table Page and Leaf Index Page.Is anybody tell me or give me some help what information these pages stroes.
If anybody have any idea which type of information stores in these pages and how this information stores .pls help me.
ThankYou.
|
|
|
|
|
Hi all,
I have one class CMyRichEditCtrl:public CRichEditCtrl
i have done some code by which i can get the word when mouse moves on it.
e.g.
asdf as*dff sdfs sdsd
asdasd asdasd asdasd asdasd
if mouse cursor is on the '*' word i am getting asdff. by using CharFromPos.
after getting this word i want to show it's ascii value.
so how can i show this thing.
Means i am doing all these things in mousemove handler.
so in that time if the mouse moves then what will happen?
is it possible?
Thanks and Regards
Harshal Shete
|
|
|
|
|
Im helping out someone with this problem and im stuck, it been sometime since i used c++.
He reads in a file (ios::binary) and
char version [30]; //
...
file.get(version, 30);
Now the in version[0] is a char value, i want the decimal value, for example, 0x18 is "cancle" (looks like a up arrow in text). I want the decimal value 24 from 0x18, or take the char "cancle" and get 24.
the reason i need the decimal value is because it represents the lenght of the data string after version[0]. 30 is the max the string can be so thats why i need the decimal value of version[0]. Its just to tell the user what version the file being read is. Can anyone help me on this?
Thanks.
modified 16-May-21 21:01pm.
|
|
|
|
|
int length = (int)version[0];
cout << "value should be 24 <" << length << ">" << endl;
|
|
|
|
|
Thanks. I swear i though i tried that but had an error and wrote if off.
edit: Well it wasnt an error but a '0'. When i run it through VS2005 i get a zero, but when i go to the .exe and double click it i get 24. Thats why i wrote it off i dont get the right values when running through VS2005. IT was driving me nuts out of the blue i double click the .exe and bam it works. dang VS2005
-- modified at 1:50 Monday 31st July, 2006
modified 16-May-21 21:01pm.
|
|
|
|
|
See Here[^] maybe it is some helpful to you
|
|
|
|
|
codeguru again ??!!
|
|
|
|
|
Hello Mr toxcct,
How are you?did you have a good weekends?
I can say only :
and i say again,
Viens,laissons l'Avenir;laissons nos chagrins fous.
Jouissons du present et si doux!(Khayyam)
|
|
|
|
|
I have an application that places a custom button on the window caption bar. However I am having a problem when running on Windows XP.
I am finding that simply handling the WM_NCPAINT message causes XP to render the caption bar with the old Windows 2000 style. If I comment out ON_WM_NCPAINT() in the message map the caption bar is then drawn with the current XP style, put it back and the Windows 2000 style is used.
To make matters worse GetSystemMetrics returns caption icon sizes that match the XP theme, even when it is rendering the Windows 2000 style. This means I have no way of calculating the icon size and position.
I feel like I am trapped, I can't have the XP style because handling WM_NCPAINT automatically disables it, and I can't have the Windows 2000 style because GetSystemMetrics won't tell me the correct sizes. How does Microsoft expect people to now put icons on the caption bar?
Has anybody put a custom icon on the caption bar of XP and retained the themed style, how did you do it?
P.S. Popup dialog windows are render with the XP style regardless of what I do with the main window.
|
|
|
|
|
'simply' handling WM_NCPAINT does not turn off visual styles as you claim. You are probably calling DrawFrameCtrl / some other API in your nc-paint handler - this is what is turning off the visual styles for the window. Replace all your drawing with a BitBlt and it'll work fine.
|
|
|
|
|
Yes you are right I have confirmed that it is the drawing part of OnNcPaint that is stopping the visual style. Since I do my drawing after the default window processing completes, Windows must work out that I will be calling DrawFrameControl in the future and then render using the old Windows 2000 style.
I think all I have to do now is replace DrawFrameControl with some theme based drawing when running on XP. I have just added to code to load the uxtheme.dll library and get pointers to theme functions I need to call. I think I just need to do the following with appropriate parameters to draw my icon...
if (uxthemeloaded)
{
pOpenThemeData(...);
pGetThemeBackgroundContentRect(...);
if (pIsThemeBackgroundPartiallyTransparent(...))
{
pDrawThemeParentBackground(...);
}
pDrawThemeBackground(...);
pCloseThemeData(...);
}
|
|
|
|