windows

Good resources for windows shell extension programming?

Duplicate of: Tutorial for Windows Shell Extensions I'm learning about programming windows shell extensions, and have been having difficulty finding good resources. What are the essential books, tutorials, reference sites, etc., for delving into shell extensions? ...

How are an application's manifest-specified details used?

I am upgrading an unmanaged C++ application to use the XP/Vista style common controls by adding a manifest. According to MSDN's page on application manifests, you are required to specify the name and version in the manifest, and optionally the description: <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <ass...

What is the bit size of long on 64-bit Windows?

Not to long ago someone told me that long are not 64 bits on 64 bit machines and i should always use int. This did not make sense to me. I seen docs (such as the one on apples official site) say that long are indeed 64 bits when compiling for a 64bit CPU. I looked up what it was on windows and found Windows: long and int remain 3...

How can I get Volume GUIDs using WMI?

Is there any way to retrieve the following type of path: \\?\Volume{GUID}\ for USB drives Using WMI? ...

Programmatically start application on login

What's the best way to programmatically start an application on login for Windows? I know you can do it by adding an item to the startup folder in the start menu, but I want to have an option in my application to turn it off and on. ...

Safe to uninstall .NET Framework 2.0 and 1.0 after installing 3.5?

I'm new to Windows development and I have a question. I'm using a Mac with Boot Camp to run Windows in dual boot, but I have an extremely small Windows partition (10 GB, because Boot Camp failed with bigger partition, due to the disk usage). After installing Visual Studio 2008 I continuously get low-disk-space warnings so I want to free ...

Application Crashes as limited user

I have a WPF application that runs fine under XP as an administrator. When I run as a limited user the application does not run at all, I get the hour glass for a half second and then nothing. Where do I start in working out what part of my application is causing it to crash when running under a limited user account? ...

Shell extension for drive like GDrive?

How can I go about with writing a shell extension to display online files in a virtual drive like the Gmail Drive does? ...

How do I delete a file from a c++ app without console window in Windows?

I need do delete a temporary file from my c++ windows application (developed in Borland C++ Builder). Currently I use a simple: system("del tempfile.tmp"); This causes a console window to flash in front of my app and it doesn't look very professional. How do I do this without the console window? ...

Launching Shell Links (LNKs) from WOW64

Our 32-Bit application launches Windows LNK files (Shell Links) via ShellExecute. When it tries to "launch" a link to a 64-Bit binary (such as the "Internet Explorer (64-Bit)" shortcut in Start Menu) it always ends up launching the 32-Bit binary. Internally, ShellExecute incorrectly resolves the link target: There's a hidden field inside...

How can a program have a high virtual byte count while the private bytes are relatively low on Windows 32-bit?

I'm trying to get a better understanding of how Windows, 32-bit, calculates the virtual bytes for a program. I am under the impression that Virtual Bytes (VB) are the measure of how much of the user address space is being used, while the Private Bytes (PB) are the measure of actual committed and reserved memory on the system. In particu...

[64-Bit] Why does malloc overwrite RSP and RSP+8?

You can read about the 64-bit calling convention here. x64 functions are supposed to clean up after themselves however, when I call malloc from .asm, it overwrites the value at RSP and RSP+8. This seems very wrong. Any suggestions? public TestMalloc extern malloc : near .CODE align 8 TestMalloc proc mov rcx, 100h 000000018...

Debugging javascript in Safari for Windows

Is there a way to debug javascript using Safari 3.2 in Windows Vista? I found a link to a debugger named Drosera but I can't get it to work because the information seams to be outdated. ...

PHP date calculation

What is the best (date format independent way) in PHP to calculate difference in days between two dates in specified format. I tried the following function: function get_date_offset($start_date, $end_date) { $start_time = strtotime($start_date); $end_time = strtotime($end_date); return round(($end_time-$start_time)/(3600*24)); } ...

Why such a disparity in pricing between Windows and Linux hosting services

I'm a .Net developer for pay, but I have my personal web site hosted on a LAMP stack with a shared hosting provider. I've been looking for a while to switching to a Windows with .Net hosting provider, but what really turns me off is the price. The reason that I want to switch is that I find .Net much more enjoyable to develop on, and I...

Installing Ruby 1.8.7 (and other stuff) manually

Hi, I don't want to rely on one-click installer anymore and I want to learn how to install ruby manually. Do you have any resource for this? Thanks a lot. Cheers ...

How to solve this focus problem with a dual monitor application?

We have an application that uses a dual monitor setup - User A will work with Monitor 1, and user B will work with Monitor 2 simultaneously. Monitor 2 is a touch screen device. Now, the problem is, when User A types something in his screen, if User B tries to do something, User A will end up in losing the focus from his window, which is...

Form Resizing and Maximizing

I am preventing the user from resizing the form. How do I also remove the maximize button? ...

In Vim, what is the simplest way to join all lines in a file into a single line?

I want to join all lines in a file into a single line. What is the simplest way of doing this? I've had poor luck trying to use substitution (\r\n or \n doesn't seem to get picked up correctly in the case of s/\r\n// on Windows). Using 'J' in a range expression doesn't seem to work either (probably because the range is no longer in 's...

Read\write boost::binary_oarchive to pipe.

Hello. I am continue to build two simple processes throwing class objects one to another (see my previous post) through simple (anonymous) pipes. Now I revealed for myself boost::serialization (thanks answered people) and have tried to make some class be serialized through ::WriteFile\::ReadFile. So - what I am doing wrong? 1) I creat...