windows

How to compile liboauth for windows

Anyone successfully compiled liboauth(http://liboauth.sourceforge.net/) for Windows? Any help here much appreciated. ...

Open pptx in PowerPoint 2010

I try to open pptx file in PowerPoint 2010 programaticaly from Ruby using win32ole @power_point = WIN32OLE.new('PowerPoint.Application') @power_point.Visible = true @power_point.DisplayAlerts = 1 # ppAlertsNone @power_point.FileValidation = 1 # msoFileValidationSkip @doc = @power_point.Presentations.Open(win_path(path), 0, 0, 0) @doc.Up...

Inconsistent behaviour while debugging and executing without debugging

I am writing a small windows service using .net framework 3.5 and its exibiting a wierd behaviour. The code gets stuck on using (OracleConnection con = new OracleConnection("Data Source=abc;Persist Security Info=True;User ID=xyz;Password=xyz;Unicode=True")) { . . . however when I debug it by attaching debugger t...

open a string in notepad at runtime in python

I have a string called 's' and I want to open it in notepad at runtime without saving it in/as a file. Is there any way to achieve this in python? ...

Running Pine/Alpine within a windows powershell

Hi, I am attempting to move most of my daily working life to a terminal shell. I am a .NET dev so I run on WinXP purely for visual studio (just wait until I get better at emacs). I would really much like it if I could use an email client within a terminal (either using Console or powershell within Console). From my uni days I know of ...

How's __RTC_CheckEsp implemented ?

__RTC_CheckEsp is a call that verifies the correctness of the esp, stack, register. It is called to ensure that the value of the esp was saved across a function call. Anyone knows how it's implemented? ...

Missing form after Minimize - Windows form application

I try to minimize my form to system tray but when I do, the form disappears and the notification icon doesnt work :( What am I doing wrong? Private Sub Form1_Resize(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Resize If Me.WindowState = FormWindowState.Minimized Then Me.Visible = False ...

AIR - Launching Native Process In Windows Not Working

i'm attempting to launch a command line executable program as a background process in Windows 7, but it's not working. my AIR application is a native installer application: myAIRApp.exe. i've bundled myApp.exe with my AIR application, so that when it launches for the first time, the application copies myApp.exe to the applicationStorag...

C language, serial port reader.

hi, I want to make a program that reads a serial port (V.24). with the info from the serial port i need to split a string up. and add it to an mysql database. I don't know C very well, so i need some help with what functions should i use. The program has to run under windows xp, and i have to make it an service. thanks, Sebastian ...

What is Unloaded Type in Windbg ?

I am trying to debug a memory dump and I am looking at one type as being labelled as 2c172a8c 1313427 1040234184 <Unloaded Type> Does anyone know what this means exactly? TIA Andrew ...

Cannot access RowSpan property at run time?

when I drop a Listbox in a cell of a TableLayout, it has the properties for ColumnSpan and RowSpan ... but when I go to the code and want to say " listBox1.RowSpan " there is not such a property :( I want to do this because sometimes in my program I want this listbox to take one cell and sometimes I want it to take two cells. so How can ...

Need to select multiple Rows without pressing Control Key

Hi, In Windows form's Grid View i can select multiple rows by pressing control key.Is it possible to select multiple rows without pressing control key. Thanks in advance ...

How many stacks does a windows program use?

Are return address and data mixed/stored in the same stack, or in 2 different stacks, which is the case? ...

Checking whether a server is up or not using batch file?

I need to check whether a server is up or not? If down then i need to send an email And this task should be repeated in every 30mins. I have to do this using batch file. ...

How can I get another application's installation path programmatically?

Hi, I'd like to know where the installation path for an application is. I know it usually is in ...\Program Files... but I guess some people install it in different locations. I do know the name of the application. Thank you. ...

Batch File to Delete Files in Folders

I have many folders in a directory that contain various files. Each filename begins with XXX_ where XXX could be the name of the folder the file is in. What I am needing to do is to go through all those folders and delete any file where XXX is the name of the folder that file is in. ...

SQL query execution - different outcomes on Windows and Linux

The following is generated query from Hibernate (except I replaced the list of fields with *): select * from resource resource0_, resourceOrganization resourceor1_ where resource0_.active=1 and resource0_.published=1 and ( resource0_.resourcePublic=1 or resourceor1_.resource_id=resource0_.id ...

Remote Desktop - Shift+Insert for Paste

I have a keyboard that has keys on it for copy, paste, and cut. These keys are mapped to the following shortcuts: ctrl-insert = copy shift-delete = cut shift-insert = paste With remote desktop all this accomplishes is turning on/off insert. Is there a way to get these shortcuts working with remote desktop? ...

How to move to non-hidden buffer that exists in some window on some tab?

I work in Vim with lots of open buffers in various windows on various tabs. I know it's simple to just load one of the existing buffers into my current window. However, some of my buffers for large files use folding expressions that cause delay of several seconds when loading them into new window. On the other hand, if they are alread...

Question about custom windows authentication package

I'm building a custom authentication subpackage for MSV1_0 for Windows 7. I've used the msvsubauth sample in from the Windows SDK and I have 2 questions regarding some problems I'm facing with that: When I'm trying just to make sure that the routine get's invoked and set the Auth0 property in the registry to my package and add a simple...