windows

GetDIBits() is failing with PNG compression

I am trying to get the size of PNG image (Without storing into file). I am using this code as reference. When calling GetDIBits(), size of image would get updated into bi.biSizeImage. Everything works fine when bi.biCompression is BI_RGB. Then I have changed the compression mode from BI_RGB to BI_PNG; GetDIBits() started to fail. Please ...

how to execute a .exe file remotely on a machine in the network and chk the status of the code

how to execute a .exe file remotely on a machine in the network and chk the status of the code,i have tried psexec which is very slow ...

python ctypes.WinDLL error , _dlopen(self._name, mode) cant be found

ctypes.WinDLL("C:\Program Files\AHSDK\bin\ahscript.dll") Traceback (most recent call last): File "", line 1, in File "C:\Python26\lib\ctypes_init_.py", line 353, in init self._handle = _dlopen(self._name, mode) WindowsError: [Error 126] The specified module could not be found how can i solve it ... i found the _dlopen in C:\Py...

Get Visitor's Windows Username in C#

Hi all. Fairly new to ASP.Net and I would appreciate some help. Is there a way to get a website visitor's Windows NT user name without forcing them to log in? The only thing I can seem to be able to get is the username of who is logged in on my web server. For example, John Doe's windows logon name is jdoe and Joe Smith's name is jsm...

Is MsiOpenProduct the correct way to read properties from an installed product?

Given an MSI product code I want to get the upgrade code (among other properties) from an already installed product. I have tried this by calling the MsiOpenProduct method, followed by MsiGetProductProperty(). An (abbreviated) example looks like this: MSIHANDLE handle = NULL; MsiOpenProduct(strProductCode,&handle); CString strUpgradeCod...

How to download file in local machine which is selected in combo box using c# dot net windows application.

I am developing windows application, in which there are 3 buttons, 1 for browse, 1 for upload a file in sql server database and 1 for download the file from the database. there is 1 combobox which shows the uploaded file of database, the user can select that file. I want to download that selected file. Is it possible? if yes then how? pl...

How does one add a secondary verb to a file type in Windows shell?

The basic idea with Windows shell programming is that you can associate a given file type (extension) with what MS is currently calling a progid (e.g. Company.Type.Ver): HKCR\.txt @=Acme.Text.1 HKCR\Acme.Text.1 @=This is the progid for text file associations for Acme And then Acme Corp can put as many shell verbs as they want as s...

How to build IccLib for 64 bit windows

I am trying to build IccLib for x64 bit windows but I am having problems finding any help to do so. Does anyone have experience with it? Thanks ...

PC Cursor (sometimes) stuck at SizeAll caused by Logitech G9

We've noticed some strange Cursor behavior, which we suspect is a result of one of our Cursor canging methods. Just sometimes, our pc keeps showing the SizeAll cursor. Everywhere, in every application. Now, we never use the SizeAll cursor anywhere in our code, but we can "Unstuck" the cursor when following code is executed. We suspect t...

Determine regional business days and weekend days of the week

In some countries weekend days are Friday/Saturday. How can a Windows application find out weekend days of the user? ...

ASP.NET Custom Windows Authentication

Is there any way to have a custom form for Windows authentication so that the device used when authentication doesn't need to support NTLM in order to work? Also, is there a way to keep the automatic login for intranet users so that they do not need to login if they are already on their computer? ...

How to fix ""Windows cannot access the specified device, path, or file.." when rerun the program?

I don't know what I have been done. I am making a program. If I rerun my program, an error occurred : "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item" My program use UAC manifest. I've tried to not use the manifest and got same error. By using "Run as Administ...

Selenium RC fails to setup Internet Explorer to run tests

So I created a test that runs fine in fire fox super.setUp("*chrome");. And now I try to run this on my machine for internet explorer super.setUp("*iexplore"); //not iexplorer!. This works fine on another developers machine, we both use vista and are running Iexplorer 8. However on my machine, the page is blank and the URL is this: C:\Us...

Getting input if the window is not active (Windows)

Hi, Short version: How can I receive input messages in Windows with C++/C when the window is not active? Background information: I'm currently working on an Input System that should not depend on any window, so it can e.g. be used in the console as well. My idea is to create an invisible window only receiving messages, which is poss...

Is there a stoll()/stroll() (string to long long) alternative in Visual Studio 2008

Is there an alternative, either built into windows or apache license compatible, to stoll() for Visual Studio 2008. Even installing the windows 7 platform SDK does not add stoll() to the string header. On unix the same function is be called strtoll(). ...

Phantom folders from Hell (old Vista install) causing Java String.equals() problems...

I'm writing a program that searches directories of a computer. On my own computer I have a drive installed which previously booted Windows Vista. (However, there are drives that do not appear even when "show hidden folders". I can see the folders running cmd, but that doesn't solve my problem.) I don't care so much about the folders...

How to use windows IME in delphi?

I have several keyboards and they type in different TMemos. In english, everything works fine, but in Korean the keystrokes get sent to the IME before it sends it to my onKeypress (which handles/identifies the different keyboards), so I can't exactly tell which keyboard it came from before that. I don't exactly know how to use WinApi, b...

How to show a popup without a browser

I need an "alert" type feature to troubleshoot an error. I am not using a browser and using javascript as windows administaration purposes. So is their a way to view a varibales value if I am not using a browser? ...

making an isolated process via c program in windows xp?

i have an application with 4 threads from which 2 are event based and 2 are not event based. the problem is i have to isolate the 2 non event based threads in which while(1) loop is executing that takes a huge cpu usage and this usage reaches even up to 100%, i think making these threads isolated can reduce the cpu usage, will it be a...

Different behaviour of sockets in Java program running in Ubuntu or Windows

Hello, I am working in the communication between two programs, one in C++ and the other in Java, connected using standard sockets. Both programs run under UNIX (Ubuntu) within the same machine and share information for a period of time in regular basis. At some point of the execution and always at the same point it gets stuck since the ...