windows

How can you change an age-mismatched PDB to match properly?

Our nightly build process was broken for a long time, such that it generated PDB files that were a few hours different in age than the corresponding image files. I have since fixed the problem. However, I would like to start using a symbol server, but cannot due to having to use these age-mismatched pdb files. I work around this is...

Windows pointer bitmap not being correctly updated

So, I'm writing a text editor, using MDI. I have a frame window, child windows and each child window has a text-area window. Now, my problem is the pointer. It's not setting itself to the correct bitmap. So for example, if I move the pointer to the border, it correctly turns into the left-right drag icon. That's all good and well - ...

Should executables contain version numbers in their names?

I develop a certain server. Till now, two versions could not be installed at the same time. We're now changing that, and the question came up: should the version number be appended to the server components or not? The server contains 3 exes and 5 dlls (some COM, some native VC++). Should any or all have their name contain the version (Se...

Using layered windows to create smooth window borders

We are developing a skinned app with various rounded edges on most of its windows. I am using window regions to define non-rectangular shapes, but nearly everyone objects to the jagged aliasing this causes, because pixels can only be either fully opaque or fully transparent. I've come up with a solution to this using layered windows, b...

Filtering fiddler to only capture requests for a certain domain

I'm not sure how to modify the CustomRules.js file to only show requests for a certain domain. Does anyone know how to accomplish this? ...

"endpoint is a duplicate" when starting an RPC server

My program uses Microsoft RPC for interprocess communications. To prepare for receiving RPC calls the program runs the following sequence: RpcServerUseProtseqEp(), then RpcServerRegisterIf(), then RpcServerListen() The program starts its RPC server with the sequence above, works for some time, then terminates and may later be restart...

Windows Remote Assistence - Mouse invisible for peer?

We're often using windows remote assistence on a Win2k3 server to perform collaborative sessions like code reviews. If i'am inviting someone, my mouse gestures are invisible to the invited person. Is there an option to make the mouse visible for both peers? ...

What is the correct PHP configuration to connect to MS SQL 2000/2005?

I have a number of servers running PHP 5.2.6 (non-thread-safe build) on Windows 2003/IIS6 utilising FastCGI. I'm having some issues connecting to MS SQL 2000/2005 (MySQL connectivity is working fine, ASP/ASP.NET scripts can connect to MS SQL successfully as well). One solution suggests copying the SQL Client Tools ntwdblib.dll file to ...

[MS-Windows] Lauching a Java app from a batch file with the correct JRE

I have a very simple batch file that lauches a Java app (Saxon) with the simple command "java net.sf.Saxon.transform..." This app requires java version 1.5. This batch file will be used by 400+ users who each may or may not have some versions of the JRE installed on their machines. I had thought that simply installing the most recent ...

"CoInitialize failed" when one functino (from a lib) is included in VC++ MFC project

I know this is kind of vague, I'm just shooting for general possibilities here to get me on the right track. I include two libs and their .h's in my MFC Dialog program and compile it, no problem. When I call a function from one of the libs though, it shoots up a dialog box that says "Com Error" "CoInitialize Failed". That's not when I a...

SCardEstablishContext hangs as a service

Why might SCardEstablishContext hang, never to return, when called from a service? I have code that works fine on lots of Windows installations. It accesses a Cherry keyboard's Smart Card reader (6x44) to read data on a smart card. It works fine on most PCs it has been tried on. However, on some PCs, running in Spain with Spanish Window...

Programming ActiveSync on Windows Mobile

I am developing a desktop app which manages contact information and I want to be able to have it sync with the contacts list on Windows Mobile devices. Which namespaces/APIs do I need to understand to do this? I would prefer something in .NET compact framework, but I can do Win32 as well. I am looking for an approach that is completel...

Passing a multi-line string as an argument to a script in Windows

I have a simple python script like so: import sys lines = sys.argv[1] for line in lines.splitlines(): print line I want to call it from the command line (or a .bat file) but the first argument may (and probably will) be a string with multiple lines in it. How does one do this? Of course, this works: import sys lines = """This...

How do I time a program executing in Windows?

I want to be able to do the Windows equivalent of this Unix/Linux command: time fooenter code here foo x cpu time y real time z wallclock time ...

How to request JVM garbage collection (not from code) when run from Windows command-line

Hi. how could I request Java garbage collection externally, starting the program from JAR (Windows BAT used)? From the Java code I can do it with System.gc() When running a JNLP distribution, I get this "Java console" turned on from Control Panel / Java / ... and this Java console provides manual garbage collection. But... When I'm...

Concurrency in a GIT repo on a network shared folder

Hello, I want to have a bare git repository stored on a (windows) network share. I use linux, and have the said network share mounted with CIFS. My coleague uses windows xp, and has the network share automounted (from ActiveDirectory, somehow) as a network drive. I wonder if I can use the repo from both computers, without concurrency p...

"operation is not supported" when invoking an RPC call on Vista

My application uses Microsoft RPC for interprocess communications. When two processes are run on the same machine and one process tries to call a method declared as (IDL notation): error_status_t rpcMethod( [in] pipe byte parameter ); this call fails with RPC_S_CANNOT_SUPPORT ("The requested operation is not supported") and never reac...

Checking if a particular device driver is loaded

I'm trying to work out if I can check if a particular video card device driver is loaded in Windows Server 2003 using C++. Can anyone give me pointers on how I might achieve this? Thanks ...

Visual-small size language

I need to develop a simple Windows application with 6 or 7 forms. Its main purpose is to manage files and launch a external program. These are my wishes, in descending importance order Free Be Visual, I mean, the possibility to paint forms and object in the screen. Possibility to carry it in a USB pen-drive. I need a light/small s...

Programatically determining file "size on disk" in advance

I need to know how big a given in-memory buffer will be as an on-disk (usb stick) file before I write it. I know that unless the size falls on the block size boundary, its likely to get rounded up, e.g. a 1 byte file takes up 4096 bytes on-disk. I'm currently doing this using GetDiskFreeSpace() to work out the disk block size, then using...