windows

error C2065: 'MIIM_STRING' : undeclared identifier

While Trying to create a Menu to SubMenu using InsertMenuItem: MENUITEMINFO mii = { sizeof(MENUITEMINFO) }; mii.fMask = MIIM_SUBMENU | MIIM_STRING | MIIM_ID; mii.wID = uCmdID++; mii.hSubMenu = hSubmenu; mii.dwTypeData = _T("Net&Work Drive Solution"); // InsertMenu ( hmenu, uMenuIndex, MF_BYPOSITION | MF_POPUP, // (UINT_...

Windows Messages in Library Code

I am porting a library to Windows. In a function I need to block on the arrival of a WM_DEVICECHANGE message. What options are available for doing this? As my code resides in a library I have little-to-no information on the current set-up (so if it is a Console application, a regular GUI application, if my code is being run in a spawn...

Set application icon and window icon to Windows 7 friendly icon

I've created a WPF project in Visual Studio 2010 using .net 4.0 I've created an icon with many different sizes and formats right from 16x16 4 bit BMP up to 256x256 24 bit BMP. I set it as the program's icon in the property pages for the application, and as the window's icon in the icon propety on a WPF Window. This works to a point. ...

Problem with using Win32 IPHelper API in python

I'm attempting to create python module for getting network parameters. I'm using ctypes and has some problems. Function __getInterfaces_win2k() works with python 2.5 and 2.6, but doesn't work with python 2.7 (Unhandled exception at 0x1e001759 in python.exe: 0xC0000005: Access violation reading location 0x00000010.) Function __getInterf...

C# Windows 'Open With >' Context menu behaviour

I'm writing a C# Windows app to visualise and modify '.build' files (nant scripts). I would like the user to be able to right click on a .build file in windows explorer and select the 'Open With >' option to allow the file to be modified in my app. What does my program need to support in-order to work with this mechanism? What might my ...

Getting a Windows Service to run as a Network Service.

I have done some work developing a Windows Service and have had some success in doing so. I notice that some services run as the user Network Service. I wondered what the difference of behaviour is when running as this service. The service I am developing tracks logins and logouts and so it would be beneficial to try and have the serv...

Disappearing System Tray icons

Im creating a system tray application in visual studio 2010, using C#. When the application starts i create my thread and a system tray icon. THe icon shows, however whenever i mouse over the icon, it disappears ( the application is still running ), and even if i click the button to show all hidden icons, it doesnt display. However, if...

Can I use send_file to send a file on a drive other than the Rails.root drive?

Can I use send_file to send a file on a drive other than the Rails.root drive? I've tried both options below. I need to use the second option but Rails doesn't like using a drive other than the volume on which it is on. This works: def action send_file "C:\\rails_root\\public\\files\\file.ext" end This doesn't: def action send_f...

roundcube mssql setup

Installing roundcube webmail: I have the DB set up (win serv 2008, MS SQL 2008 - though even that was a battle!) i can navigate to the installer but when I go to set up everything there is no SQL Server option in the list of DBs? Anyone got any idea what thats all about? I can see MySql, MySqli and PgSql but no MSSQL cheers ...

Is it possible to discover named pipes in Windows?

Is there any method or tool that list existing named pipes in a Windows box? ...

Python os.walk and japanese filename crash.

Possible Duplicate: Python, Unicode, and the Windows console I have a folder with a filename "01 - ナナナン塊.txt" I open python at the interactive prompt in the same folder as the file and attempt to walk the folder hierachy: Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copy...

VBS Script tab not null

Earlier I have made a script to grab certain lines from a tabbed delimited text file, first row with each of the following rows into its own .txt file. (so these .txt files are only 2 rows of text) Then it would move each .txt file by what text it found in the given tab in this case it was (1)(3) (second row - forth tab) here is the co...

Get and set Windows desktop icons size in C#

I'd like to get and set the desktop icons sizes in Windows Vista and 7 - now the desktop allows to resize the icons dinamically with Ctrl-MouseWheel and I'd like to do it using C#. Yes, I can send the WM_MOUSEWHEEL message to the desktop listview handle, but that has two disadvantages: I don't have the current size, so I must send the ...

Windows PGM socket access error with non-admin account

I'm trying to use PGM sockets to send data on Windows. I can listen and receive data fine from a PGM socket using a non-admin account, but when I try to create a socket to send data I get an exception at this step: socket.Bind(new IPEndPoint(IPAddress.Any, 0)); The exception is: An attempt was made to access a socket in a way forbidde...

What's happening with the PHP distribution on Windows?

What's happening with the PHP distribution on Windows? I installed 4 different versions using default settings and none of them worked, at all. Two of them complained about missing OCI.dll and the other one about missing zlib.dll. This is a Windows 7 x64 machine and PHP directory was in PATH as requested - I double checked. The fun ...

System Tray Balloon Notifications from Adobe Air?

Is it possible to make an Adobe Air app create a native windows balloon notification/tooltip? I know it is possible to make a window appear in the corner, but I would like to use native windows notifications. ...

ODBC hook / shim

I have an old app that I need to get functioning. Right now it uses some invalid SQL. It connects to the db using ODBC. I would just like to shim the ODBC so I could watch for the invalid SQL and replace it with some valid commands. Any ideas? MySQL proxy would fit the bill if it would fly over ODBC. http://dev.mysql.com/downloads/mys...

Ways to provide a framework for DLLs to depend on each other and expose functionality?

Essentially, how to write a plugin system, where each plugin is a DLL. (Or is there a better way of a plugin system where each plugin is written natively?) Suppose that each DLL offers some functionality available to other plugins. If plugin A does provides FuncA and plugin B wants FuncA, how should dependency be managed? How should plu...

How can I use the Windows SDK with Qt Creator

I have been trying to use the Windows SDK v7.1 in Qt Creator without much luck. Specifically, how can I set up Qt Creator so that it will compile the SDK samples in C:\Program Files\Microsoft SDKs\Windows\v7.1\Samples? ...

How to ping XP machine from MacOSX

On my home network, I am able to ping between my XP machines just fine. I can also ping my Mac from the XP machines. However when I attempt to ping my XP machines from the OSX terminal I get 'unknown host' even when I add .local to the machine name. Pinging works if I use the IP address of the XP machine. Some background...I am attem...