every one i have created the file using the createFile.
HANDLE temp_file = CreateFile(sourceFileName,GENERIC_WRITE|GENERIC_READ,/*FILE_SHARE_WRITE|FILE_SHARE_READ*/NULL,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_HIDDEN /*FILE_ATTRIBUTE_NORMAL*/,NULL);
in windows vista i have created but its getting deleted in windows 8 and windows xp .
what will be the reason .
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 ...
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[^]
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).
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.
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.
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 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.
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.
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.
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?
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)
// Override this to draw the thumb slider
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[m_currentSlider].m_ThumbSliderTrackColor;
theThumbSliderColor = sliderVector[id].m_ThumbSliderTrackColor;
theThumbSliderTextColor = m_ThumbSliderTextColor;
Last Visit: 31-Dec-99 18:00 Last Update: 19-Sep-14 23:29