windows

Outlook 2007 TreeView in Windows Forms (C#)

Hello out there, im trying to build my first application on Windows forms with C#. Im fighting against the treeview control and MS outlook 2007... I need a treeview like the Explorer in Outlook 2007, the exchange public folders preselected. I have created the parent node, but i have problems to get all child nodes. Now, Im getting o...

HTTP 401 Unauthorized System.Web.Services

I am trying to access a Project Server 2007 web service. I am working on a Windows 2003 server with IIS 6.0 installed. When I try to connect to the webservice after adding a web reference to my VS2005 code I get HTTP 401 Unauthorized error. I have tried the following things and yet am unable to connect. Please let me know if you can ...

Restrict a directory that can be used only through a .net Application

I have a windows Application that stores certain files in a directory. I would like to know if there is a way in .net that I can restrict users not to have access to that directly (by just going to that directory in windows, and grab files) so only my application can add/verify/delete a file in that directory. ...

How to open file in Windows while not blocking its renaming

Is there a way to keep a file open, while not blocking its renaming by another application? Keeping the file open does not block its renaming in Unix. Can I achieve the same behavior in Windows? ...

What does the /TSAWARE linker flag do to the PE executable?

After adding the /TSAWARE linker flag to one of my projects (Visual Studio 6), I was surprised to find a new section in the PE file (.idata). If I don't set the flag, the imports are merged into .rdata. To illustrate the "problem" we start out with a simple console program: #include <stdio.h> int main() { printf("hello world\n");...

Stop ASP.Net from recycling app pool due to "changes to the bin"

Greetings, I have a large .Net web app which runs on a farm of blades with the code base on a NAS. Every once in a while slight fluctuations in the response time of the nas cause .NET to think that something in the bin has changed and kick off a recycle of the app pool. No change has actually occurred. Is there a way to disable .Net's m...

Switch input language on remote application

Is it possible to switch input language for another application? Having application's process ID, thread ID, window handle etc. ...

DataGridView performance - does it depend on the video card?

I have a C#/.Net application which seems to use most of it's CPU time doing updates to a DataGridView. I manually update the data about every 1.5 seconds, updating only the data that has changed. This ends up being about 250 updates every 1.5 seconds. I'd like to reduce that 1.5 seconds to a much smaller number (0.5 seconds maybe). I...

MySQL Case Sensitive Tables Conversion

I have a PHP codebase that was written to address our MySQL tables in mixed case. For example, xar_intakeformgenerator_ChangeLog. Our code also runs on windows, and before we knew any better, we imported several databases on to a Windows server. This resulted in Windows MySQL changing all the table names to lower case. (xar_intakeform...

Are libfoo.a and foo.lib compatabile formats?

Some build scripts (such as the one in numpy) simply does the following to make a gcc-compiled library archive work with the Visual Studio linker: copy libfoo.a foo.lib Surprisingly it seems to work. Does anyone know why? ...

How to find the compiled extensions modules in numpy

I am compiling numpy myself on Windows. The build and install runs fine; but how do I list the currently enabled modules .. and modules that are not made available (due to maybe compilation failure or missing libraries)? ...

Lock Windows workstation programmatically in C#

I ran into this example for locking Windows workstation: using System.Runtime.InteropServices; ... [DllImport("user32.dll", SetLastError = true)] static extern bool LockWorkStation(); ... if (!LockWorkStation()) throw new Win32Exception(Marshal.GetLastWin32Error()); // or any other thing Is there a pure managed alternative to thi...

cronjob/trigger which can update the database everyday

Hi, I am using MYSQL as my database and PHP as my programming language.I wanted to run a cron job which would run until the current system date matches the "deadline(date)" column in my database table called "PROJECT".Once the dates are same an update query has to run which would change the status(field of project table) from "open" to...

What can I do to speed up Rails development mode?

Rails, on development mode is SLOW. Very, very slow. I run Vista, and I set config.cache_classes = true in development.rb... But, it's still slow and I have to restart the server after I change my code. My coworker develops Rails on a Mac and sees similar slowness. My development time slows down significantly because it takes minutes ...

DirectoryEntry.Invoke("groups",null) not retrieving all groups?

I created a WCF web service to return user and group information from Active Directory. It works fine for most groups and users, but not all. I use directoryEntry.Invoke("groups",null) to return the groups a specified user is member of. This returns MOST groups. The odd thing is that I can find any group and enumerate its members, ev...

How to copy string to clipboard in C?

The SetClipboardData function requires a HANDLE reference; I'm having trouble converting my string for use in the function. Here is my code: char* output = "Test"; HLOCAL hMem = LocalAlloc( LHND,1024); char* cptr = (char*) LocalLock(hMem); memcpy( cptr, output, 500 ); SetClipboardData(CF_TEXT, hMem); LocalUnlock( hMem ); LocalFree( hM...

Ho to read data through Serial Communication?

I am sending data through serial port on Windows.But when i am going to read that data the system goes in infinite loop.System also hangs.Please give me the solution if anyone finds it. ...

How widespread are fonts with non-zero escapement or orientation?

I had serious problems with using GetTextExtentPoint32() and TextOut() in my Win32 GDI program when ClearType antialiasing was on. The problem seems to be solved by using DrawText(). The problem is MSDN states that DrawText() only supports fonts with zero escapement and orientation. What are the chances that I encounter a font violating...

How do I install Windows Service on remote server

How do I install Windows Service (msi package) on a remote windows server and configure its Logon options. Thanks and Regards, Selwyn ...

What Windows API function should I use to mark/unmark files/folders as protected operating system file?

What Windows API function should I use to mark/unmark files/folders as protected operating system file? ...