windows

Vectored Exception Handling During StackOverflowException

If I've registered my very own vectored exception handler (VEH) and a StackOverflow exception had occurred in my process, when I'll reach to the VEH, will I'll be able to allocate more memory on the stack? will the allocation cause me to override some other memory? what will happen? I know that in .Net this is why the entire stack is com...

In a windows application, how to check and retrieve(if any) selected text/image from any window?

I have a windows application which should constantly keep track of the active application window. I am yet to try it but I searched around and found that this could be done by using the windows API (user32.dll) - GetForegroundWindow() But, my requirement also needs the application to look for any selected text or image in the active w...

[C#,.Net,Windows] Does start the same thread possible? (Thread create=>Thread Start=>Thread Finish computation=>Start the same thread with other data again))

Hi, everybody I have a some computation program. Now, this program is a single-thread, I need to enhance it to do it multi-thread. In general, program computes, dynamic evolution of thermal circuit (Some configured types of different involved elements (Tube, Pump, Active zone, and its connection), for each of it for every time step progr...

Unicode / Non-Unicode / UTF-8 Problems

An application I am working on stores data in an INI file. The application creates the INI file which in turn will be read by another application we also created. The INI file may also be hand edited. It is likely sooner or later that the INI file will contain different languages so we were careful to ensure that all data used in thi...

Which version of the Windows SDK do I need?

I have a 64 bit Core 2 Duo processor but the 32 bit version of Vista. Also, I want to have the 64 bit libs and cross compiler. ...

How do i connect to a remote mysql server in .NET?

I am using ubuntu in VMWare. I installed mysql and have it running. I can login with the user root and a password. I have the IP of the VM box. In my code i wrote using MySql.Data; return new MySql.Data.MySqlClient.MySqlConnection("username=root;data source=192.168.100.129,password=xyz"); instead of data source i also tried server. I g...

Get pContext in Try/Catch handler?

When an exception happens, as you know, it passes pContext to the SEH. Is there anyways to access the pContext in a Try/Catch? I guess I could have the exception class grab it when being initiated but that would only work for that class and not for every exception. ...

HTML link to directory in a Samba share, that works on Internet Explorer 7/8

Hello all, I want my HTML page to link to a directory in a Samba share (protocol SMB/CIFS Windows share). In my HREF I wrote file://server/Share2/folder3 Most browsers handle it fine (mount the share and open a file manager on folder3) except Internet Explorer 7 and Internet Explorer 8, which says Permission denied without even asking ...

Why can't Perl launch telnet under Windows?

I had enabled telnet client feature on Windows 2008, and tried to launch it from a Perl script: perl -e "system('c:\windows\system32\telnet localhost')" Then I got an error like this: 'c:\windows\system32\telnet' is not recognized as an internal or external command, operable program or batch file. I could run it from 'cmd' terminal...

How can I uninstall an application in Windows using Perl?

Is it possible to uninstall an application in windows using a Perl script? ...

Communicating with USB device

I am working on building a USB Video Class camera, which is supposed to work well with various flavours of Windows. The camera needs firmware upgrade support to upload new software images into it. There are two ways to do it, as far as I know. Use DFU. Use control endpoint of the UVC Class device to transfer bytes into the device. T...

Is there a good reason to limit Windows filename extentions to three characters?

I am creating a utility that will store data on flat file in a specific binary format. I want the filename extension to be specific to my application. Is there any reason other than the old 8.3 filename limit for restricting the extension to 3 characters, and if not, what is the limit? Can I have myfilename.MyExtensionSoHandsOffEverybody...

Postgresql WAL on Windows

I'm running Postgres 8.4 on Windows XP and I'm wondering if it is possible to move the WAL to a different disk? I have looked all over the place and can only find documentation on how to do this on Linux. Thanks in advance, Jeff ...

Getting rid of extensions in variables (CMD)

CMD Q: I want to remove the extension of a filename. It is actually a complete path, like C:/Me/My/Path/filename.xxxx i know that the extension has 4 chars, like shown in example above. How can i get rid of the extension? Thanks. ...

Is there a popular tool for crawling web data?

I'm doing work on information extraction, and I need a tool to crawl data from web page , is there a popular one in windows? ...

Where should I put the ack configuration file on Windows?

I'm using ack (the grep replacement) on Windows XP under Strawberry Perl. Where should the .ackrc config file be placed, since ~/.ackrc is not reasonable on Windows? ...

Minimal production Django server on Windows

Hi, I need to deploy a small Django app to be used in a small intranet. Concurrency and speed are non issues because there will be, at most, 10 users (and I bet that there will be almost no concurrency). There is already a MySQL server. The problem is with the Django app. What is the most lightwieght server I can install under a WinXP ...

Why not call FreeLibrary from entry point function?

I'm writing a DLL that needs to call a separated DLL dynamically multiple times. I would like to keep the callee loaded and then just unload it when my DLL is unloaded. But according to Microsoft, that's a bad idea. The entry point function should only perform simple initialization tasks and should not call any other DLL loadin...

How to implement icmp packet handler using winsock version 1.1?

I am working on an very old application right now. I need to make change in this application to listen for coming icmp request and decide to reply or drop the packet (kind of access control on ICMP). The application is Winsock version 1.1 based. I tried different ways to create a socket and capture icmp packet using the socket. But none ...

VBSCipt LOGON Script - Evaluate two items and map shares accordingly

I have a logon script mapping user drives Windows Network. Some users are now logging into a terminal server these days and I'd like to map a different drive, based on computer name they are logging in to. I am looking at which user AD group they are in (departmental group so I know which shares to map). If IsAMemberOf(objNetwork.UserD...