OK. I got it. Cheerz!!! http://haishibai.blogspot.com/2010_01_01_archive.html[^]
Cvaji
Posts
-
How to add Publisher name for an application -
How to add Publisher name for an applicationHi all, Please let me know how to give the publisher name to my sample MFC application. Currently it is displaying "Unknown" when i try to start it. I am using Visual Studio 2008. To see the publisher name -> Run an application as administrator in windows 7 machine and check the UAC dialog. -Cvaji
-
Add Publisher name to my applicationHi all, Please let me know how to give the publisher name to my sample MFC application. Currently it is displaying "Unknown" when i try to start it. I am using Visual Studio 2008. To see the publisher name -> Run an application as administrator in windows 7 machine and check the UAC dialog. -Cvaji
-
Number of process in Session 0Its not interacting with any DB. "95 processes are started and 96th is not getting started." Is that related to antivirus? That means antivirus will allow 95 processes and will restrict up to 95?
-
Number of process in Session 0All process are same. Why do you say, no to do it????
-
Number of process in Session 0Hai All, I am creating 200 process simultaneously from another process which is running as service in Windows server 2008 R2 machine. But only 95-100 process are getting created. After that, the remaining process will be terminated abnormally. Please let me know if there is any limitation in Windows server regarding the number of processes. -Cvaji
-
CreateFile - " file is being used by another process." [modified]sorry my friend..its just a mistake.. :)
-
CreateFile - " file is being used by another process." [modified]Even though my application is only doing the file read,
::CreateFile( csFileName_i.operator LPCTSTR(), GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
this made it work. Strange :confused: :)
-
CreateFile - " file is being used by another process." [modified]Hi All, I am using CreateFile to open a specific file which will be accessed by multiple instance of same process simultaneously. This time function getting failed and GetLastError() is returning the following error. "The process cannot access the file because it is being used by another process." This is how i called the function
hFile = ::CreateFile( csFileName_i.operator LPCTSTR(), GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
if( INVALID_HANDLE_VALUE == hFile )
{
CString csErr;
csErr.Format( _T("Failed to open File**** Error code = %d"), GetLastError());
AfxMessageBox( csErr );
return bRet;
}I need to open the same file simultaneously by different process. Please help me. -Cvaji
modified on Thursday, July 15, 2010 9:30 AM
-
_tfopen Error - file is being used by another process.Hi All, I am using _tfopen to read a specific file which will be accessed by multiple process simultaneously. This time _tfopen function getting failed and GetLastError() is returning the following error. "The process cannot access the file because it is being used by another process." This is how i called the function
_tfopen( csFileName_i.operator LPCTSTR(), _T( "rb" ))
I need to open the same file simultaneously by different process. Please help me. -Cvaji
-
How to get A WindowHandle from a process IdGetWindowThreadProcessId
what about this?
-
Get System Shutdown notificationI know about WM_QUERYENDSESSION Please tell me whether I can suspend the whole shutdown process when I receives this message and whether I can resume/cancel the shutdown process.
-
Get System Shutdown notificationHello all, Please tell me how to get window shutdown notification in my MFC application? -Cvaji
-
Find the windowsIf FindwindowEx was not provided by MS, i would go for your suggestion. :thumbsup:
-
Find the windowsWow. Hats off you man :) even though its an ugly method, i congratulate your brilliancy :thumbsup: But I got another method.
HWND hWnd = ::FindWindow( L"Notepad", 0 );
hWnd = ::FindWindowEx( 0, hWnd, L"Notepad", 0 );-Cvaji
-
Find the windowsYou mean the below code will return the handle for second notepad ? :confused:
hWnd = ::FindWindow( 0, L"Untitled - Notepad " );
-Cvaji -
Find the windowsIf there is no other simple way, i have to go with this option. Thank you for the reply.
-
Find the windowsCode-o-mat wrote:
Maybe try EnumWindows[^].
But this will enumerate all the top level windows right? I have the window name/window class of my required window. I need to get only that specific windows. -Cvaji
-
Find the windowsHello, I want to find the handle of same windows currently opened. E.g: I have started 2 notepads and I want to get handle of both notepads using some windows APIs. I tried FindWindow(). But its only return the first notepad window handle. Any other APIs available for getting the handle of second Window? Please help. -Cvaji
-
CStdioFile issue! :(did you try modShareDeny??
modified on Friday, April 9, 2010 11:37 AM