windows

Sending Fax through .NET/C#

How do I go about sending fax in .NET? We have a fax server through which we need to fax documents to clients. Since we have a fax server, I don't imagine that I have to configure a fax modem on my machine, right? It would just go through the fax server? Are there any good free (or cheap) Fax APIs out there? IN my research I've come a...

Remove older versions of Ruby (on Windows)

I just downloaded Ruby 1.9.2, and I want it to completely replace the older version of Ruby (1.8.7) that I also have installed. (Mostly because I get confused when installing things with different versions floating around.) What's the best way to do this? Do I uninstall the older version? (If so, how?) Can I just replace the old ruby1.8...

Slowdown when copying huge (120+GB) files

I have a C# application and am using the FileStream class to read a 120GB file from an *EDIT * isilon storage unit (mapped to z drive) over gigabit LAN. I start by getting 45 megabytes / second read speeds, but at about the 20GB range my read speeds drop dramatically and settles to about 9 megabytes / second. Does anyone have any ideas o...

IronRuby vs. regular Ruby, to develop Rails apps on Windows

For non-Rails work, regular Ruby works fine on my Windows 7 machine. But I'm about to start some Rails work that will use SQL Server as a database, and trying to get Rails set up has been a total pain so far. (I still can't get sqlite3 or SQL Server to work correctly with Rails yet.) So I'm wondering: will using IronRuby (which I haven...

GLE 997:Overlapped I/O operation is in progress.

This post is related to my Previous Post. There I was creating the PipeServer and Client as two separate programme and was trying to write to the server and getting a response back.And the programme was going to an infinite loop. So for the sake of simplicity I combined both the Client and Server into a Single programme and run. Now I a...

How to display a Message on windows xp lock screen?

Im basically a Java Programmer , i faced a situation where i need display the alert message when the user locks the system(windows+L) . could nyone tell how to achiev this? ...

Preprocessing on the sources file of device driver

C_DEFINES=$(C_DEFINES) -D_PRODUCT_A //C_DEFINES=$(C_DEFINES) -D_PRODUCT_B #ifdef PRODUCT_A // <- I want to do doing like this in a sources file. MOST_SOURCES= a.c b.c productA.c #elif PRODUCT_B MOST_SOURCES= a.c b.c productB.c #endif Is there a proper syntax? ...

How can I use an Image List to draw C# dragging outside of my own windows

I am using C#'s inbuilt drag and drop via Control.DoDragDrop(). I use an Image List and ImageList_DragMove and friends to move a semi-transparent image around, tracking with the mouse. (See my reply in this thread for more information). How can I make the ImageList track the mouse when it is outside my windows? I only receive mouse p...

How to get disk usage statistics for remote network share?

If I have a network share say \\myfileserver\documents, can I find out programmatically how much disk space it is using (used/free space) using any API of some sort? Please note it could be hosted by samba or it could be on a san storage device which means I won't be able to install anything on that machine to check the local disk usage...

Windows SIP softphone controllable from another application

We would like to integrate a SIP softphone into our product, and because it is proprietary we will use and external application ad control it from our software (something how other programs use Skype). I would like to know if there is such a program available which has a good interface. The second option would be to take an open source ...

Modify COM Port device name at runtime (Windows)

I'm not sure if this is possible but my requirement is this. On startup, my application swaps COM1 to COMV1, listens to the output interprets the data and passes it through to COM1. On shutdown, my applications swaps COMV1 back to COM1 so applications can continue to use it as normal. Thanks for any help, Richard ...

Upgrading from Windows 2003 x64 to Windows 2008 R2 x64 Runtimes missing

Hi I have a windows 2003 x64 system with the c++ 2005 and 2008 redistributables install on it. When i upgrade from windows 2003 x64 to windows 2008 R2 x64 the c++ 2005 and 2008 redistributables files are removed from the system but their add remove entries are left behind. Am i doing something wrong? Or is there a work around to fix thi...

Why does appcmd.exe behave differently when executed inside a batch file?

I have the following appcmd to add an exception to IIS7's ISAPI and CGI restrictions. The exception I am adding should look like: c:\perl\bin\perl.exe "%s" %s Here is the command line: appcmd set config -section:isapiCgiRestriction "-+[path='c:\perl\bin\perl.exe \"%s\" %s', allowed='true', description='Perl CGI']" If execute this fr...

Getting Access Denied While Accessing the Named Pipe from Another System

I have a Named Pipe and It Works Fine While I access it using a Client which runs on My System The Client tries to open the File using following code: LPTSTR lpszPipename = TEXT("\\\\smyServerName\\pipe\\iPipe01"); hPipe = CreateFile( lpszPipename, // pipe name GENERIC_READ | // read and write access ...

How can I install ActivePerl in Windows?

I am new to perl scripting. I have a Perl program I would like to run in Windows XP. I heard that ActivePerl tool is used to run Perl scrips in Windows. I tried to install ActivePerl but the installation failed. Please help me to install and to run some sample application. ...

Cost much memory when creating serveral vertex and index buffer

Hi, guys, I met a very weird issue. When I create some very simple VertexBuffer and IndexBuffer in D3D, the memory comsuption reported from TaskManager is huge. I created 60000 index buffer via D3D CreateIndexBuffer method. Each index buffer contains 6 index (int) which represents two triangles. So, one index buffer will occupy 24 bytes...

DragonFireSDK and iPhone development on Windows

So in previous questions about iPhone development on Windows, the basic/easy answer has been "just get a mac." However, I noticed a comment that mentioned DragonFireSDK. But no one else said anything about it? Has anyone tried this? It look pretty legit to me, but I'm new to the iPhone world. I just find it weird that no one has discu...

How can I find my application's icon?

I am trying to load the icon associated with the application that called my function. The way I am solving the problem for GUI applications is this: AfxGetApp()->LoadIcon(128); // 128 is the IDR_MAINFRAME icon However, the Afx functions, upon looking up the resource, fail for some non-gui applications, since afxCurrentResourceHandl...

DotNetZip Operating System Hooks

I would like to be able to read / write files to a WinZip file, WinRAR file, Compressed folder, etc. without Windows knowing the difference. Basically want these to be treated as folders where anything running in Windows would have transparent access. Is there a way to do this using DotNetZip and hooking into the operating system? Also ...

The bizarre case of the file that both is and isn’t there.

In .Net 3.5, I have the following code. If File.Exists(sFilePath & IndexFileName & ".NX") Then Kill(sFilePath & IndexFileName & ".NX") End If At runtime, on one client's machine, I get the following exception, over and over, when this code executes Source: Microsoft.VisualBasic TargetSite: Microsoft.VisualBasic.FileSystem.Kill Mess...