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...
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 ...
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.
...
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?
...
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");...
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...
Is it possible to switch input language for another application? Having application's process ID, thread ID, window handle etc.
...
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...
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...
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?
...
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)?
...
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...
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...
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 ...
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...
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...
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.
...
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 (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?
...