Hello everyone,
Does windows closes idle sockets? I mean if I'm a client connecting to a service on Windows server, is it possible that Windows server closes the connection after certain idle-time?
If yes, how to change this behaviour, or at least change the idle-time value?
Thanks in advance.
...
In my MDI application, I've started noticing that with a child maximized, the other (inactive) MDI children are not maximized. This results in less-than-seamless switching between children, since the new active application shows up normal on screen before it gets maximized. I would expect it to instead keep the background windows maximiz...
I feel like there is an obvious answer to this, but it's been eluding me. I've got some legacy code in C++ here that breaks when it tries to call OpenThread(). I'm running it in Visual C++ 2008 Express Edition. The program first gets the ThreadID of the calling thread, and attempts to open it, like so:
ThreadId threadId = IsThreaded...
I've got some legacy code in C++ here that does some things I don't understand. I'm running it in Visual C++ 2008 Express Edition on a machine running Windows XP.
The code uses some Windows functions: GetAdaptersInfo and GetAdaptersAddressess. I realize that the final parameter for both of these is a pointer to the size of the buffer a...
Does anyone know of an editor that has the ability to enforce exact line lengths (bonus if it allows association of maximum line lengths by file name/extension)?
What I mean by exact line lengths is that the editor will always save each line padded to a maximum line length (defined by the user). For example, if a file should have a 120...
I am writing a WiX-based installer for our software. I need to download some non-trivial dependencies (like Sql Server Express 2008), then install them.
I could just use wget, but having the console open to show progress could be very confusing for non-technical people. Instead, I have been looking for a program that works just like w...
I want to use Python to access MFC document files generically? Can CArchive be used to query a file and view the structure, or does Python, in opening the document, need to know more about the document structure in order to view the contents?
...
I have a Windows C++ application that holds a std::hash_set containing abount 5 Million entries each with 32 Bytes. If i create the hash_set in a separate (of many) threads it uses > 1 GB according to ProcessExplorer. I see this when i free the list. If i create it in the main thread it ueses 200 MB. This phenomenon only applies to the 3...
I have always enabled integrated security on my web apps inside IIS with the assumption that the passwords that are requested on the client end will always be transmitted securely (encrypted) to my authentication server (AD/LSA). Am I correct on my assumption? The reason I have always assumed this is 'coz I always think of them as being ...
I would like to find the values of some of windows API constants, such as, but not limited to *LVM_ENABLEGROUPVIEW* & *WM_SHOWWINDOW*
Looking on the net lead me to MSDN which tells me what they are used for, but not the underlying values.
There is a very similar question on stackOverflow, Where can I find a list of windows API constan...
Windows 7 has a very nifty way of showing "Contributing Artist" metadata in Windows Explorer. In wonder how can I access that metadata from C++? Maybe you even point to some source code? Greatly appreciate in advance.
...
I'm looking for a good way to automatically 'svn add' all unversioned files in a working copy to my svn repository.
I have a live server that can create a few files that should be under source control. I would like to have a short script that I can run to automatically add these, instead of going through and adding them one at a time...
I'm having a problem with a UDPSocket wrapper I've written. I have a high bandwidth low latency local network over which I'm sending UDP packets back and forth. I don't have a concern too much for reliability of packet arrival, but it is incredibly important that the packets that do arrive do so quickly. Here's the relevant code for s...
So the other day I went to compile a VC++ project I am working on and all of a sudden I get errors in almost all of my files saying:
new.h: error C2039: 'set_new_handler' : is not a member of 'std
new.h: error C2039: 'set_new_handelr' : symbol cannot be used in a using-declaration
"new.h" and 'set_new_handler' are not being used ...
Is there a way to open My Computer Properties from C# Windows Application?
For example, user click on a button "Computer Name" and it launches My Computer Properties - "Computer Name" Tab.
...
I'm implementing a process elevation helper for Windows. It's a program that will run in elevated mode and launch other programs with administrator privileges without displaying additional UAC prompts. For security reasons, I want to make sure only binaries that are digitally signed with my company's Authenticode key can be executed.
Th...
How do I create a file in C++ when UAC is on, but with out running as administrator?
I'm trying to create a text file in the following path: "C:\Programdata\Desktop" in VC++ 6.0 when Vista's UAC is on. However, Createfile(...) failed with 'permission denied'.
When I run the sample application with "run as administrator" it works. But m...
Just checking if there's any best practice when writing a Windows Service.
The Service (Single-thread) needs to work at specified time intervals, right now I can only think of:
Use sleep(), then check the time in a loop?
Use a TTimer?
Any advice?
...
Should I redistribute msvcrt.dll with my application and use the private dll if some of the application's libs dynamically depend on msvcrt.dll? I.e. are any incompatibility issues possible with the system's msvcrt.dll (dll hell)? Application is targeted for Windows Server systems.
...
I have a service which creates a number of child processes. Using c# I need to determine the number of these child processes which are currently running.
For example I have a service running called "TheService". This spawns 5 child processes, all called "process.exe". Is it possible to determine the number of child processes running und...