windows

What languages to write windows shell extensions

I know how to write shell extesions in python. The drawbacks are it does not work on 64 bit Windows I am unsure how creating a python process everytime something “happens” reduces performance. I know how to write shell extensions using .Net (C#) The drawbacks are discouraged by MS I am unsure how this reduces performance. (does it?...

How to get mouse cursor icon VS c++

Hi, I use this code to get mouse position on screen and it's working. I also get cursor width and height. What I need is cursor icon in the moment I call function GetIconInfo. In ii iI have ii.hbmColor and ii.hbmMask. Value of hbmColor is 0x0, hbmMask is 0x2f0517f1. Can I extract mouse cursor from that two pointer and how? CURSORINFO ...

vim: visual block select mode does not select the entire line

I have lines as below. I am not able to select the all the lines in full. How do i do it? I don't want to use visual line selection mode, because if i copy and paste in line selection maode, they won't start from the the same column ...

How to get date in vb.net

I want to display my date like so in VB.NET 2008/01/22 14:23:15 How is this done in code? This does not give me enough: lblDate.Text = Today.Date ...

How to convert from LPCTSTR to LPSTR?

I have the following line of code: LPSTR address = T2A((LPTSTR)hostAddress); Can I convert LPCTSTR hostAddress to LPSTR without using T2A macros from "afxpriv.h"? ...

Git : ignore symbolic links

Is it possible to tell Git to ignore symlinks ? I'm working with a mixed Linux / Windows environment and, as you know, symlinks are handled very differently between the two. ...

File open problem with many process in C

Hi Everyone , Iam working in c++ .i have an problem while run an application ,which have my dll within it ,My dll code is suitable to application (needed process).i wrote a log file (xml file) throughout application using fopen within all function(dll source) ,here i receive exception like "cannot access the file ,due to using by anot...

What's the point of this kind of macros?

#define NAME(x) TEXT(x) #define TEXT(quote) __TEXT(quote) // r_winnt #define __TEXT(quote) quote // r_winnt The above is from winNT.h, isn't NAME("Virtual Cam") the same as "Virtual Cam",what's the point to use this macro? ...

How can change font size on dot matrix report?

I want to design a double layer payslip and print on dot matrix printer. How can change font size on dot matrix report? If dor matrix report can't be change font size, and I change to standard report, but the printing speed is very slow, how can I solved?I want to design a double layer payslip and print on dot matrix printer. How can ...

.NET Windows Service management and logging

Hi Guys, I have application that runs non stop in the background on a dedicated remote server. The application is build in .NET 4 using log4net for logging and SQL Server. I i think it would be best to use Windows Service for the main background application. I want to build a second application to manage and view the status and logs of...

Are environmental variables language specific?

I need to setup a script in group policy that we be used in different regions of the world. Are environmental variables such as %ProgramFiles% language specific? I'm hoping that a script of %ProgramFiles% can be used both in spain and france even though their language is setup for the specific regions. Thanks ...

Storing the ID in State in .net Windows Service

Hello, I have a .net Windows Service developed in C#. OnStart of the service I am calling a function that stores the serviceName,DateTime in a ServiceLog sql Table and returns the ServiceID(ID number from the table). OnStop I want to update the same record with the StopDateTime. I don't know how to store the ID number that is returned ...

Erlang application launch on a Windows server

I have an Erlang application that is deployed on a server with Windows Server 2008. The way I do this: Copy application folder in Erlang lib directory. Open command line (cmd). Execute erl. Execute application:start(app_name) in Erlang shell. Are there any better approaches to launch the application? How to make the application to l...

Help me build this tool in windows envoirnment.

I made a desktop music application in adobe air. I want to update the status of some IM clients running EG: Yahoo messenger,Gtalk,AIM,MSN etc. with the current playing song. I am not desktop developer.This is first time i am making something for desktop. SO is there any way in any Programming language that i can make something which wi...

How to work with a new Python installation while having an old one installed?

After a fresh installation of my Windows dev machine, I installed Python 2.7. Quickly I learnt that this was a mistake as many of the packages I use only work on Python 2.6. So I installed 2.6 also and now I have both installations. How can I make everything work with Python 2.6 instead of Python 2.7? Every time I install a package it ...

opening a rar file by c

I have to write code in C to extract a password protected rar file in windows. I don't have any clue about how to do this. can anybody suggest me something or provide a sample piece of code? I will be very thankful. EDIT: This is the code I am using to open the rar file.In the system command ranjit is the password. It's giving the erro...

Tomcat can't be restarted in Eclipse (RSA)

Basically, I work in RSA(7.0 on Windows 7) and when I need to restart the Tomcat (5.5) server, I get this: 2010.08.18 17:35:27 org.apache.catalina.startup.Catalina start INFO: Server startup in 1541 ms 2010.08.18 17:37:33 org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 2010.08.18 17:37:34 org...

Python PyDev, Prevent carriage returns from input()

EDIT-4 I've gotten my sitecustomize.py to execute, but it tosses up an error. Here's the code for it. The error is: Error in sitecustomize; set PYTHONVERBOSE for traceback: RuntimeError: maximum recursion depth exceeded while calling a Python object I'm not terribly advanced with Python yet, so I figured I'd comment out only the l...

What will report an account's permissions?

My service program executes another instance of itself with, essentially, CreateProcess(GetCommandLine()). The child process then uses OpenProcess to get a handle to its parent process (so it can detect when the parent has stopped running). For some customers, OpenProcess fails with ERROR_ACCESS_DENIED. I'm trying to determine the reason...

How to list Windows users and groups in ASP.NET?

Hi there! I have a ASP.NET Website project and I need to list all the users and their groups on my Windows system. I have set the identity impersonation to true and provided the username and password of the admin in the web.config. Where do I start? Thanks in advance. Update: I have the following code at the moment - var machin...