|
FILE_ATTRIBUTE_HIDDEN .
Make sure you can view the hidden files!
|
|
|
|
|
|
sarfaraznawaz wrote: ...but its getting deleted in windows 8 and windows xp . Which means it is indeed getting created. At what point does the file get deleted?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
My application am creating the file.i am calling the exe for the preview of the file after closing the exe the file is getting dleted,its working fine on windows 7 and vista even am not use the delete file API not the exe which am calling has no dletefile API ...
what would be the problem ...
Best Regards
Sarfaraz
|
|
|
|
|
Make sure you call ::CloseHandle(temp_file) after you have done working with it
|
|
|
|
|
ya i am closing handle, if i not close the handle it unable open it its show the message that its has been in use ...
thats not the problem its getting deleted as i close the preview exe...
Best Regards
sarfaraz
|
|
|
|
|
Hello friends
MFc application (vs2010).
Menu Items are not showing and sometimes overwriting the Text of MenuItem.
Any Ideas? Is related with WM_DISPLAYCHNAGE ?
Regards
Yogesh Sikri
|
|
|
|
|
yogeshs wrote: MFc application (vs2010). SDI or MDI?
yogeshs wrote: Menu Items are not showing and sometimes overwriting the Text of MenuItem. If menu items are not being shown, how can they be overwritten?
When you created the app, did you opt for any sort of style or command bar?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
Applicaion is SDI.
SomeTimes MenuItems are not coming,and sometimes with overwritten Text or garbage Values.
App was Already Created,Convert to 2010.
thanks
|
|
|
|
|
I try to catch a key press from a software usi RAW and Low Hook but i cannot have an result. I try to press alot of key but in my demo I can see and think?
I think that this has a function e.handle to handle key so we cannot capture anything?
Any body can help me solve this problem?
This is link of software which i cann't capture keypress
http://download.game.zing.vn/laio/csmplay-setup.exe[^]
modified 16-Oct-12 21:30pm.
|
|
|
|
|
|
Web spiders request documents and parse them. During parsing, all links from the document are stored to be processed later. If you want to find sub-urls, you must do something similar. But this will not find URLs that are not linked.
For some URLs without a file specification you may get a directory listing containing all files and sub-directories. But most servers will send you a default page (often index.html) when no file is specified or deny the request (listing of directories prohibited).
UPDATE:
You may use the GNU wget utility (also available for Windows) to perform such scanning. This command will download and parse all files and delete them afterwards while printing a line for each URL.
wget -r -nd --delete-after http://my.lotro.com/home/
modified 10-Oct-12 6:22am.
|
|
|
|
|
There is no standard directory listing method in the HTTP protocol. Directory listing is usually disabled (security hole) for most if not the whole site and even if its enabled you get back an index file if present (like with http://my.lotro.com/home[^]). Even if the get on the directory returns a directory listing its still a non-standard generated html page that you have to parse somehow. Its a waste of time trying to solve this problem because this can not be solved. Web spiders just follow links found on websites, they do not do directory listings.
|
|
|
|
|
Hi guys,
For our company I have written (meanwhile some 15 years ago!) a data mapping tool. This tool has evolved over the years and it is currently in C++, using Microsoft Visual Studio 2010. One of the products for this tool is a debugger that shows what is happening and shows the source code lines where action is performed. This part uses a CEdit control.
We have included stuff like breakpoint markers and all that.
Recently I have come to think that it might be handy to introduce syntax highlighting for the source codes. Would anyone have any samples of a CEdit that can do that sort of thing (like changing the color of words, showing them in bold or italics and stuff like that) Would save me a lot of re-inventing the wheel!
Thanks in advance for any suggestions.
|
|
|
|
|
I think the best solution would be to replace the CEdit control by a CRichEditCtrl . It can do all the things you want.
|
|
|
|
|
I created an SDI application with FormView. I fixed the main window size to 600*350 and placed the control over the dialog accordingly and it worked fine.
But now I magnified the screen (Control Panel\Appearance and Personalization\Display) to 125% on my win7 machine. Now my application dialog is adjusted as per windows magnifier but main windows(mainframe) size remains small (600*350) and FromView inside the mainframe is not completely visible.
Please guide me to solve this issue.
|
|
|
|
|
It is a known issue. MS has developed a guide (TL;DR)[^] that is in their mind supposed to assist the developers.
In short, try first to adjust the manifest settings, as they suggest in the article and see if it works, otherwise, it is a notorious task of testing and adjusting, especially is you use custom fonts
|
|
|
|
|
Hello friends
I converted a Mfc project from VS2005 to VS2010.
Its compiled successfully.Now,the prob is that I am not able to launch application through release build output As It is opening through Debug Build output.
Any Ideas ?
Thanks & Regards
Yogesh Sikri
|
|
|
|
|
Create the release version and launch it. Your question makes no sense, you have to choose the Release build as opposed to the Debug version.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Perform a clean build on both release and debug. Then rebuild the solution in release and launch it. The clean operation already wiped out the debug binaries, so you will either get an error or the app will be launched in release mode.
|
|
|
|
|
Hello Guys
Thanks for ur reply. Prob Solved.
|
|
|
|
|
Here is some code from the draw function in my custom control. I am using a vector to contain data concerning portions of the control.
This code works. You will surely agree with me, though, that using the iterator 'x' to identify vector members in called functions is probably a tad on the clunky side. I have had a go at sending pointers to vector members. I gave up with this. I think this might not be the right way to go either. What it is the correct, elegant way to do this?
vector<sliderUnit>::iterator slider;
for ( slider=sliderVector.begin() ; slider != sliderVector.end(); slider++ )
{
theSliderRect.left = theDrawRect.left+(x-2)*sliderWidth;
theSliderRect.right = theSliderRect.left + sliderWidth;
(*slider).m_TextBoxSize = m_TextBoxSize;
(*slider).sliderRect = (RECT)theSliderRect;
tempRect=theSliderRect;
tempRect.right=tempRect.right-4;
DrawBackground(&theMemDC,tempRect);
if (m_currentSlider != x-1){
(*slider).m_bFlashFocus = FALSE;
}
else{
(*slider).m_bFlashFocus = TRUE;
}
DrawButtonsByID(&theMemDC, theSliderRect, x-1);
DrawThumbSliderByID(&theMemDC, theSliderRect, x-1);
DrawSliderLabelByID(&theMemDC, theSliderRect, x-1);
x++;
}
modified 9-Oct-12 16:11pm.
|
|
|
|
|
Huh?
What type is "X"? I assume it is an int (or long) since you add it to a CRect internal value.
In what way does it identify a vector element? it is not clear.
Nihil obstat
|
|
|
|
|
Sorry, I should have clearer. The function calls I refer to are at the bottom of that block of code
DrawButtonsByID(&theMemDC, theSliderRect, x-1);
DrawThumbSliderByID(&theMemDC, theSliderRect, x-1);
DrawSliderLabelByID(&theMemDC, theSliderRect, x-1);
The 'x' becomes 'id' in the called function below which dereferences the vector member that is the same as the iterator in that first for loop block I posted. I know this is murky. That's why I want to make nicer.
void CScrollBarEx::DrawThumbSliderByID(CDC* inDC, CRect inDrawRect, short id)
{
CRect theThumbSliderRect;
COLORREF theThumbSliderColor = GetSysColor(COLOR_3DFACE);
COLORREF theThumbSliderTextColor = GetSysColor(COLOR_WINDOWTEXT);
ASSERT(inDC != NULL);
if (sliderVector[id].m_bThumbSliderDownFlag && sliderVector[m_currentSlider].m_bTrackThumbSliderFlag)
{
theThumbSliderColor = sliderVector[id].m_ThumbSliderTrackColor;
theThumbSliderTextColor = m_ThumbSliderTextColor;
}
...
|
|
|
|
|
So you're accessing a vector with an index that comes from a variable of unknown type and origin. Not a lot of information to work with. Why do you think this is a problem? Is there a reason why you think x is not the appropriate index to use?
Until you explain what x is and where you got it from, it's hard for us to understand your problem - if there is one. Since the code works, the only suggestion I can make at this point is to rename x to something more ... self-explanatory, and add a few comments to explain what's going on (while you're still able to understand it). That may be helpful if you need to fix it in a year or two.
P.S.: There's one other suggestion I can think of: instead of passing x to those functions, pass a reference to the vector element. While technically that is the same as passing a vactor index, it removes the dependency between those functions and the entire vector.
|
|
|
|