|
On a WinMe box, how can I disable system restore so that is stops adding *.cpy files into the _Restore directory?
|
|
|
|
|
I'm not in front of my Me machine, so this is from memory, but it should be:
System properties - Advanced tab - File System button - Disable System REstore checkbox.
--Mike--
Buy me stuff! (Link fixed now)
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Big fan of Alyson Hannigan and Jamie Salé.
Sonork - 100.10414 AcidHelm
|
|
|
|
|
It is already disabled. But the _Restore/Temp directory still keeps growing. I found out that if I set a new restore point, then the folder gets cleared, but is there a way to completely disable system restore?
|
|
|
|
|
Hey Guys
How do i check for whether an instance of my program is already running so that i can then stop another one being started.
Cheers Peter
|
|
|
|
|
There are many examples here at cp.com.
Just take a look at the articles and use the search engine
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I think one way is to use FindWindow() and use your window class,if it find it then do not attempt your application to proceed.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Short Solution – Use a mutex
Long Solution – Joe Newcomer’s brilliant article
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
See this article.
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I want to know if there is any function like C function 'printf'.
For example, I just want to draw a line of text in the view like that:you have typed a %s.
in C ,I would do like that :printf("you have typed %s",str);
but I could not the function can do like this way(I know there is a function ,TRACE,but it is not I need) in MFC,could anybody answer me?
YES, I am here.
|
|
|
|
|
CString::Format();
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
CString.Format(wada wada wada)
or
sprintf(wada wada wada)
then
TextOut(blah blah blah)
then apparently you will have an uncle called bob
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
coming soon: situations to avoid #38: "...and the dog was there too?"
|
|
|
|
|
Can these functions write to the view?
YES, I am here.
|
|
|
|
|
The first two that Lauren mentioned will format the data in your string into another buffer, then you can use TextOut to draw to your view. You should place the call to TextOut in your OnDraw handler if you are using MFC, or in your handler for WM_PAINT if you are using regular window 32.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
you would normally either let your user type directly into the view (like a text editor) or enter stuff thru a dialog box
then in your OnPaint() handler you would put the other code
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
coming soon: situations to avoid #38: "...and the dog was there too?"
|
|
|
|
|
Hi,
I have an SDI project (doc/view architecture), my view is derived from CFormView which contains a ListBox.
I wish to ask the user to save the application data (the content of the ListBox) when exiting or when File/New menu command is selected.
How to do that (save the content of the ListBox) ?
(I know that i should save it's content to my CDocument... but how to do it exactly ? step by step ?).
Thank's
|
|
|
|
|
Overriden Serialize ,and define strings for your listbox and do something like this:
void CTestAppDoc:: (CArchive& ar)
{
if (ar.IsStoring())
{
ar << m_string;
}
else
{
ar >> m_string;
}
}
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
You can use doc's default serialization feature if your know the kind of data and the exact size of your data. Otherwise, you should override all save, saveas, save file, etc. and write your own read/write functions for input and output.
Kuphryn
|
|
|
|
|
where can i find some tutorials that will show me how to use the windows tab control with visual c++ 6?
- Thanks
|
|
|
|
|
check out the controls section on cp
it has a few things on tabs that should help
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
coming soon: situations to avoid #38: "...and the dog was there too?"
|
|
|
|
|
> situations to avoid #37
LOL! *g*
is there a list of more?
|
|
|
|
|
The font of a CEdit box can be changed with SetFont(..), but that function doesn't change the Background color of the text.
How on earth can I change it, I'm getting pretty desperate, as it appears there is no function that does the job properly.
And subclassing a control will result in rewriting almost the entire paint process of the CEdit class.
I need to do the same with Group boxes.
Who can help me out? Any help would be greatly appreciated!
|
|
|
|
|
|
HI
Is there any way to hide all desktop details from the User and provide my own customize shell.
<|>
|
|
|
|
|
My question may be stupid but i can't remember if we can initialize and affect an array in the same code line. Something like:
int Array[10]=[1,2,3,4,5,6,7,8,9,10];
could someone tell me if it's possible and how to do...please
|
|
|
|
|
int array[10] = {1,2,3,4,5,6,7,8,9,10};
situations to avoid #37: "good morning ... how many sugars do you take in your coffee ... and what was your name again?"
coming soon: situations to avoid #38: "...and the dog was there too?"
|
|
|
|