windows

realloc crashing in previously stable function

Apparently this function in SDL_Mixer keeps dying, and I'm not sure why. Does anyone have any ideas? According to visual studio, the crash is caused by Windows triggering a breakpoint somewhere in the realloc() line. The code in question is from the SVN version of SDL_Mixer specifically, if that makes a difference. static void add_musi...

Using Silverlight 3 to make a WPF Application cross platform (Windows + OS X)

Im writing a Twitter Client in C#/WPF/WCF. I(Windows) showed some of my friends(OS X) and they would also like to use it. Would it be worthwhile to convert the application into Silverlight 3 so that they would be able to run/install it on OS X? Will the full features of Silverlight 3 be supported on OS X (like the install feature), li...

Getting into Source Control

So I've decided it's probably best if I get some Source Control solution going to keep my hard work safe, and to help eradicate bugs between versions. I'm familiar with SVN as far as checking stuff out, but I have NFI about the committing side of things. What is a good Source Control solution, keeping in mind that I develop in Visual S...

Overlapped I/O: How to wake a thread on a completion port event or a normal event?

I want to use a thread pool to both initiate/cancel overlapped read operations -- using ReadFile() and CancelIo() respectively -- as well as handling any completion port events when read operations complete. Any thread can initiate a read operation Any thread can handle a read-complete event Only the thread that initiated a read may ca...

Deny application network access in windows shell

I'm going to write a script to disable/enable network access for applications in windows. My idea was to write a script that runs a windows shell command that do this. The scripting is the easy path, but i don't know how to do the "denying" part. Any ideas? ...

Time Zone code translation from Windows to Linux in FreePascal

I have this code that works in FreePascal under Windows and need to translate it to Linux but I'm completely lost on the Time Zone Bias value: function DateTimeToInternetTime(const aDateTime: TDateTime): String; {$IFDEF WIN32} var LocalTimeZone: TTimeZoneInformation; {$ENDIF ~WIN32} begin {$IFDEF WIN32} // eg. Sun, 06 Nov 1994 08:49...

Create wiki pages on SharePoint with web services

Hi, the title says it all: With which methods do I create wiki content on SharePoint, using the provided web services? I've searched the MSDN docs up and down - with no result. Regards.. ...

how to get file information / search directories

Hi! I'm wondering how do you do stuff like gettling file information, searching through directories/subdirectories in c++? Is there a particular library that I should be looking at? I'm seeing stuff like this in some examples: #include <sys/types.h> #include <sys/stat.h> Not sure where they came from.. Thanks! EDIT: I'm programming...

C#: Using Directory.GetFiles to get files with fixed length

The directory 'C:\temp' has two files named 'GZ96A7005.tif' and 'GZ96A7005001.tif'. They have different length with the same extension. Now I run below code: string[] resultFileNames = Directory.GetFiles(@"C:\temp", "????????????.tif"); The 'resultFileNames' return two items 'c:\temp\GZ96A7005.tif' and 'c:\temp\GZ96A7005001.tif'. But ...

Creating executable for windows using QT program in Linux

hello, Is it possible to create an executable for Linux and windows using the same QT code in Linux with Eclipse integration or is it necessary to install QT Creator in my Linux machine? Waiting for reply Thanks in advance vincat. ...

Is there any way to start process in suspended state?

I want to launch a process in suspended state. Is there any way to do this by using only standard tools coming with Windows XP? Is there any lightweight third party tools? Problem I'm trying to solve: I have a application which I want to debug it by using Visual Studio 2005. I have debug build with necessary *.pdb files and I have all s...

Repeat windows messages in Winforms

I want repeat sent windows messages to my winforms application. Now, I have class implementing "IMessageFilter" which saves the selected messages (WM _KEYDOWN, WM _LBUTTONDOWN, etc...) to the list. On key "Pause/Break" I copy the list of messages, clear original list, and resend the messages. In my test project is only one form with on...

Client-Server application for Windows CE

Does anyone know where I can find simple Client-Server application for Windows Mobile? If anybody has code or something like that, that would be very useful for me. Thanks Marko ...

How to get walking or driving distance via google maps with php

I've worked with google maps before, but when implementing it, I've never found any documentation on how to get the exact distance between 2 given locations via Javascript or PHP. 1) It has to be the exact same distance shown on maps, not that formula that gives you the distance in a straight line from one geopoint to the other. 2) It ...

How to edit the "log on as" user in a .Net Windows Service

I plan to write a windows service to initiate all the business processing, and a Windows Forms app to do all its configuration. Can the windows user under which the service runs be edited in code as part of the configuration? ...

Is it possible to reasonably workaround an antivirus scanning the working directory?

My Win32 application performs numerous disk operations in a designated temporary folder while functioning, and seriously redesigning it is out of the question. Some clients have antivirus software that scans the same temporary directory (it simply scans everything). We tried to talk them into disabling it - it doesn't work, so it's out ...

Layered window still receiving WM_PAINT message after UpdateLayeredWindow call

I've got a few layered windows in my app that use UpdateLayeredWindow() to handle their visual representation. According to the MSDN article on layered windows, "when using UpdateLayeredWindow() the application doesn't need to respond to WM_PAINT or other painting messages." They shared some of the same message handlers as non-layered ...

What to copy when moving cygwin from one machine to the other ?

I'm reinstalling everything on my machine, ..., and amongst those is cygwin. I'm trying to avoid reinstallation, partly because, I don't even know what is it that I installed last time in it. So my question is, can I just move the cygwin directory from one machine to another, and expect everything to work, or are there some other importa...

schtasks /create escape character?

Alright. So. None of these create the scheduled task correctly with %DATE% and %TIME%: SCHTASKS /Create /TN MyTask /TR "echo %DATE% %TIME% >> C:\SchtaskLog.txt" /SC MINUTE SCHTASKS /Create /TN MyTask /TR "echo ^%DATE^% ^%TIME^% >> C:\SchtaskLog.txt" /SC MINUTE SCHTASKS /Create /TN MyTask /TR "echo \%DATE\% \%TIME\% >> C:\SchtaskLog.txt"...

Easy-to-use GUI that is zoomable and pannable?

Hello: I am looking for a GUI toolkit that is easy to use and cross-platform. Another major requirement of the GUI is that it should support zoom and pan. For example, I should be able to zoom in on a picture and enlarge buttons. Something like this: http://eaglemode.sourceforge.net/video.html But it should have Windows support also...