windows

How to Compile Flash .fla into .swf via command line?

How to compile Flash .fla files into .swf via command line on a Windows based operating system. Command line tools that need to be installed are ok. Can anyone suggest me what to do? (in a straight forward way). :-) Thanks. ...

How does CreateRemoteThread work behind the scenes?

What does CreateRemoteThread do to actually create the remote thread? ...

General Protection Fault

How to detect the process that caused a GPF? ...

Are there special key events in Windows I can't handle?

Are there any key events I cannot handle in my C# program? For example, can I implement differently Windows's events: Ctrl+Alt+Del, Alt+Tab, WindowsKey+D, etc. ...

(Free) Text editor on Windows with a folder view?

I have to stay away from my MacBook and will use Windows for a while. I missed Textmate's folder view when editing my rails projects. Is there an editor on Windows with the folder view? I know there is the E text editor. But I'll save a few bucks if there is a free (cheaper) alternative, as I won't stay in Windows for long ... ...

How to tell the MinGW linker not to export all symbols?

Hello, I'm building a Windows dynamic library using the MinGW toolchain. To build this library I'm statically linking to other 2 which offer an API and I have a .def file where I wrote the only symbol I want to be exported in my library. The problem is that GCC is exporting all of the symbols including the ones from the libraries I'm l...

Disable everything in windows except program c#

Hello, I've got the following question: Is it possible te disable everything in windows except the program it's running? I need to program an application on a touchscreen (fullscreen), where people can fill in a survey. The only thing they should use is this program. (for protection of the survey anwsers and other secret stuff :p ) And...

Gethostname and IPv6

Microsoft recommends not to use 'gethostname' on IPv6 and instead use 'getaddrinfo' or 'getnameinfo'. http://msdn.microsoft.com/en-us/library/ms899604.aspx But 'gethostname' doesn't seem to have any problem working on IPv6. Does anyone know any reason why 'gethostname' is not recommended on IPv6? ...

Dragging Controls on Form at runtime

Hi All I've just started using WPF. But I'm trying to add my code that (from Winforms) enables the user to drag any control whereever they wish at runtime. But I can't seem to get the current Location of the mouse... Eh? There is no Location for Mouse? :( ...

How can I use Perl to get a SHA1 hash of a file from the Windows command line?

I have a file called secure.txt in c:\temp. I want to run a Perl command from the command line to print the SHA1 hash of secure.txt. I'm using ActivePerl 5.8.2. I have not used Perl before, but it's the most convenient option available right now. ...

Issue running 32-bit executable on 64-bit Windows

I'll add 500 of my own rep as a bounty when SO lets me. I'm using wkhtmltopdf to convert HTML web pages to PDFs. This works perfectly on my 32-bit dev server [unfortunately, I can't ship my machine :-p ]. However, when I deploy to the web application's 64-bit server the following errors are displayed: (running from cmd.exe) C:\>...

WiX, how to prevent files from uninstalling though we forgot to set Permanent="yes"

We have a product installer created with Wix, containing a program package ("V1") and some configuration files. Now, we are going to make a major upgrade with a new product code, where the old version of the product is uninstalled and "V2" is installed. What we want is to save one of the configuration files from uninstalling, since it is...

My Windows Service cannot write to the Application Event Log

I have 2 Windows services installed. They both have the same configuration for enterprise logging. 1 Windows Service successfully logs to the Application Event Log while the other one does not. The one that does successfully post to the log I see errors being generated. For the service that does not log successfully we see Service St...

Windows Workflow Foundation 4 (WF4) Arguments

I am working on a WF4 project for manager's to approve requests made to them for resources needed. I and am passing in an argument of a custom type, a class called "Request". The Request class contains a List of type Player where "Player" is another class I've created to represent the approving manager. I'm using the DataContract Seri...

Get Login Id and Domain Name of the Currently Logged In User

Hello All Was working with some login stuff today morning found there is no good way to get details about user login id and the domain he logged in ex:- standalone application and web application. Let me give brief idea about the application I am working, this application exists in two flavors as think client- standalone app and think ...

Need details about applications that are running on Windows Azure

I have an application which requires large amount of data storage (say some PB) and computing resources. Instead of going for clusters, I am planning to propose to use Windows Azure Cloud for this application. I have gone through white papers of Windows Azure and have collected some details about Azure. But I feel that is not substantial...

Reading Windows ACLs from Java

From within a Java program, I want to be able to list out the Windows users and groups who have permission to read a given file. Java has no built-in ability to read the Windows ACL information out (at least until Java 7), so I'm looking for other solutions. Are there any third party libraries available which can provide direct access t...

operator "new" returning a non-local heap pointer for only one class ?

Language : C++ Platform : Windows Server 2003 I have an exe calling a DLL. EDIT : (exe is not doing anything, it calls few global function which does everything related to DLL within DLL. It does not explicitly new any of DLL classes) I allocate (new) the memory for class A within the DLL, it returns me a non-local heap pointer. I...

What is Problem in Runtime.getruntime which does not open notepad.exe

when try to execute the servlet containing following code Runtime rt = Runtime.getRuntime(); Process p = rt.exec("notepad.exe"); It doesn't launch the application in the environment windows server 2003 and Tomcat 5 but a process is being created as notepad.exe in the windows task manager. In windows xp and tomcat 6 environment launc...

GetIpAddrTable() leaks memory. How to resolve that?

On my Windows 7 box, this simple program causes the memory use of the application to creep up continuously, with no upper bound. I've stripped out everything non-essential, and it seems clear that the culprit is the Microsoft Iphlpapi function "GetIpAddrTable()". On each call, it leaks some memory. In a loop (e.g. checking for chang...