windows-vista

CreateDispatch causes Vista to get all twitchy

I am creating an instance of word by calling CreateDispatch("Word.Application"). This works fine except in Vista it causes the dialog about the server being busy to come up and you have to keep hitting the "switch to" button several times. Each time you do it pops up the start menu until it finally opens word. Anybody know why and if the...

Creating Vista-Style Folder Icons

How can I create Vista-style folder icons with something inside the folder? imageres.dll (IIRC) contains icons for the front and back of a folder, and I can put my own image between them. However, in the icons generated by Explorer from thumbnails, and in most of the prebuilt icons, the image within the folder is 3-dimensionally rotate...

Missing Registry entries for the Context Menu

My Vista Home Basic SP2 machine misses the relevant Registry values, described under Page 171 of the tutorial (latest and relevent edition) The registry keys which hold the information on which context menus to show are HKEY_CURRENT_USER\Software\TortoiseSVN\ContextMenuEntriesMaskLow and HKEY_CURRENT_USER\Software\TortoiseSVN\Con...

FileSystemWatcher not monitoring local user folder or temporary internet files folder in Vista (64bit)

Hi Guys, I wrote a test program to monitor my Picture folder which points to c:\users[username]\Pictures and temporary internet files folder for the same user. This is program works perfectly fine if I change the folder to other location like d:\persona_pics. Any idea why events are not being raised when I set the mentioned folder to mo...

nsinstall: Bad file number error on Vista

I'm attempting to build Firefox on my Windows Vista Ultimate machine. I keep getting the following error: nsinstall: Bad file number I've read that this error is caused because of UAC in Vista. Here are the two articles that lead me to this conclusion. https://wiki.mozilla.org/Penelope_Developer_Page#Windows_Vista and http://www.ke...

How does one install VS2008 on Vista?

I met a lot of problems when I'm trying to compile with VS2008 on Vista. Because I'm new to VS2008 and new to programming in Windows, I'm totally lost when errors happen. My problem is as following: The vs2008 has anyway been installed and I tried to build a open source app and the compilation stopped due to errors. In the output win...

A clickonce deployed application is installed only for the specific user?

Are there any defaults in the clickonce installation? If someone decides to install the application, this application will be availiable to all the users of the computer? I guess the answer is no. They can only use the application if they log into the user account who installed it... but sometimes it is better to ask ...

How do I use C# to get the Hard-disk serial number?

How do i get the hard disk serial number without using dll and supported by VISTA ...

Rails template and run command

Hi! I've got a problem when I used a new templates functionality in Rails 2.3 (updated InstantRails on Windows Vista). I created a template and called it test.rb. test.rb run "gem sources -a http://gems.github.com" I tried to execute rails tt -m test.rb and got: create log/development.log create log/test.log applying template:...

Is there a way to set an application appearance different with the windows appearence?

e.g. set the application appearance to classic, but set the window appearance to Aero style. Is there a way to do this? ...

Correct way to design around Windows UAC limitations?

I found out an application I wrote does not work properly under Windows Vista/7 if UAC is enabled at any level, because it writes files to the install directory of the program, defaults to "C:\Program Files\MyProgram." If UAC is disabled (or on any other version of Windows) it works properly - I read that UAC denies applications write ac...

C# can read from a file that doesn't exist?

Hi, We have some C# code that reads data from a text file using a StreamReader. On one computer we can read data from the text file even after it has been deleted or replaced with a different text file - the File.Exists call reports that the file exists even when it doesn't in Windows Explorer. However, on another computer this behaviou...

Windows Games Explorer Play/Support Tasks

I'm trying to get a game I'm working on to integrate with the Windows Games Explorer. So far I have embedded a Game Definition Format XML file as a resource in my binary (my actual executable) and I've been able to register the game inside the Games Explorer. However, In Vista, the play tasks and support tasks that I have defined in my...

Stick application to the Desktop on Vista

I have an application that I want to stick to the desktop. Stick to the desktop means that every time that someone click windows+D or the show desktop icon the desktop will appear with the application on it. The user can locate the application on the desktop and change the location at any time but it always remains on the desktop. We m...

Replacing the Start Menu

I want to make my own Start Menu replacement and I am trying to figure out what approach to use. There are a number of ways the Start Menu is activated: click on it, hit windows key, hit ctrl+esc keys or tab until it gets focus and hit the space or enter key. I know enough about win32 to do each one of these separately and I could figur...

Error on executing .msu file in vista platform

Hi all , i'm trying to run the .msu file in the vista platform through command prompt my command looks like this **" startfile.exe Windows6.0-KB942288-v2-x86.msu /quiet /norestart "** startfile.exe is a blank exe through which i'm executing the .msu file . The Error from the command prompt is "the application has ...

Folder in the programdata disappeared

I have an application that write data in the programdata folder in vista. The application seems to write data to that location but the folder is not visible. What will be the problem for this. ...

Getting the Window Title?

Ok i specify: My problem is that I want to assign a keyboardshortcut for Dreamweaver CS4 and I have it like this: "C:\Program Files\Adobe\Adobe Dreamweaver CS4\Dreamweaver.exe" Thats ok so far. But when I press the key it doesn't place itself infront of everything else like Outlook and Visual Studio does, instead it blinks in the taskb...

Programatically registering .dll's on Windows Vista (using DllRegisterServer)

Instead of calling regsvr32.exe, one can register a .DLL using the following steps: HINSTANCE hLib = ::LoadLibraryEx(dllPath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH); HRESULT (STDAPICALLTYPE* lpDllEntryPoint)(void); (FARPROC&)lpDllEntryPoint = ::GetProcAddress(hLib, "DllRegisterServer"); const HRESULT hRes = (*lpDllEntryPoint)(); This wo...

Why does Visual Studio warn me that Administrator permissions are recommended?

I have UAC turned off and am running VS 2005 from an administrator account and I get this message. Also, when I try to add existing web site to a solution from VS 2008 I get a message saying I must run VS in the context of an administrator account. ...