windows

How to make Shell to allways be on top at runtime in SWT?

I'd like to implement "Always on top" configuration option in my application that takes effect immediately. I know that I can call Shell constructor with ON_TOP style. Is there a way to do that at runtime, that is after Shell instance has already been created? ...

How could get scsi HDD serial number?

I wanna get the serial number of a scsi harddisk, but it makes an error! I work with VC++ on Microsoft Windows XP. What must i do for that? ...

MSG::time is later than timeGetTime

After noticing some timing descrepencies with events in my code, I boiled the problem all the way down to my Windows Message Loop. Basically, unless I'm doing something strange, I'm experiencing this behaviour:- MSG message; while (PeekMessage(&message, _applicationWindow.Handle, 0, 0, PM_REMOVE)) { int timestamp = timeGetTime(); ...

Mobile Device emulator cannot access localhost

I am using Windows Mobile 6 Professional Emulator and Windows Mobile Device Center. I connected and cradled the emulator to my computer. I am trying to connect from the browser of the emulator to a webservice that is deployed in the IIS of my computer (same machine where the emulator is installed). If I connect my computer to the intern...

DirectX capabilities on different graphics cards

I'm writing a Direct3D application, using DirectX 9. Although it works on my PC, I need to make it work on a wide range of systems. I need to know what capabilities I can expect to see on other systems. Is there a list of the DirectX capabilities that graphics cards support? I've found one site, which I'll post as an answer, but it's...

WMI Access is denied, find permissions problem

Hello, I am trying to run process(console executable) on remote PC from asp.net application using WMI and get "Access is denied" problem. I have checked all event viewer logs on remote PC, no information related this. Where do I start searching for problem? Does Windows has some kind of permission monitor tool? Also I have tried to use...

handling ImageList with windows hooks

Hi, I am programming an application that can catching the information about the screen items by Hooks Now I am trying to get the information of the ImageList when I pass them by mouse, "I want to know the name of the item" how can i do this? Thank you. ...

In GridView drop down does only have one value

I am using vb.net and populating dropdownlist in GridView1. I get the values and fill it in drop down. When I click on the drop down it is not doing anything. Seems it has only one value at the index 0. not at 1 and 2. Please help here is my code Private Sub GetCustomerBaseLine() Dim CustomerDS As New DataSet Custome...

VS 2005 Install Problem

All I have a VS 2005 install set, which when executed seems to run OK however right at the end of the process it responds with the error message: The source '' is not registered on machine '.' or you do not have write access to the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\EventLog registry key. At which point it backs out ...

CouchDB: how to configure database folder on windows

Databases are stored in the relative folder ../var/lib/couchdb/ by default: [couchdb] database_dir = ../var/lib/couchdb view_index_dir = ../var/lib/couchdb I can't find a way of moving this to an absolute path. What should I type to store databases on a different disk? Edit: Can it be a rights problem? I first changed it to c:/temp ...

Engine for use with PC and Iphone?

Are there any engines that allow me to develop for pc and iphone at the same time? My preferred language would be c#, but that probably won't happen, so I probably will learn c++ or java. I want a 2d engine, by the way. ...

C++ Win/Linux thread syncronization Event

Hello I have some code that is cross-platform by unsing #ifdef OS, I have a Queue protected by a CriticalSection on Windows, and by a pthread_mutex_t on Linux. I would like to implement a Wait(timeout) call that would block a thread until something has been enqueued. I though about using WaitForSingleObject on windows but it don't seem...

TCP and UDP are using different OS Buffer?

HI all. Here is the scenario. I have port 8888 for my program to use. I build a TCP and a UDP listener on that port. (This can do, c# allows, because they are two different protocols) My question is If the network traffic is very busy, TCP sockets may refuse or signalling the other end to stop sending things, it is called congestion...

GUI style question: Icons in context menus?

Hi, It seems like not so long ago that it was standard to have icons/images in context menus and Microsoft seems to keep this up. But nowadays it seems to have disappeared in other apps: Chrome, iTunes etc. Anyone have an opinion / idea why this has happened or is it just completely personal taste (I for one like the images). A. ...

Java Connections netstat -ano

I am new to java and I have been testing my application all day long. I just did netstat -ano and it gave me a huge listing of active connections (listening, established) does this mean when i close my appliation these connections are not being shutdown (close())? here is a screenshot: any advise on how to go about closing th...

Uploading a file using post() method of QNetworkAccessManager

I'm having some trouble with a Qt application; specifically with the QNetworkAccessManager class. I'm attempting to perform a simple HTTP upload of a binary file using the post() method of the QNetworkAccessManager. The documentation states that I can give a pointer to a QIODevice to post(), and that the class will transmit the data fo...

nmake.exe: is there a way to exclude a file from a set of files specified in a macro?

I'm looking for something like the Exclude filter for msbuild, but I Want it in a makefile processed by nmake. Is that possible? Suppose I have a makefile that defines this macro: SOURCES=xxx.c yyy.c zzz.c and I invoke it with nmake OLD=xxx.c NEW=bbb.c ...can I produce, within the makefile, a macro with a value like: yyy.c zz...

insufficient buffer when call DocumentProperties, also, global unlock wouldn't unlock...

please see comments inline bool res = false; DWORD dwNeeded = DocumentPropertiesW(NULL, m_currPrinterHandle, (LPWSTR) m_currPrinterName.c_str(), NULL, NULL, 0); if (m_devmode_buf) { GlobalFree(m_devmode_buf); } m_devmode_buf = GlobalAlloc(GPTR, dwNeeded); GetLastError(); // = 0; if (m_devmode_buf) { LPDEVMODEW devmode_buf...

On Windows, how does console window ownership work?

When a console application is started from another console application, how does console ownership work? I see four possibilities: The second application inherits the console from the first application for its lifetime, with the console returning to the original owner on exit. Each application has its own console. Windows then someho...

Generic Text Only printer driver mangles control codes

If an escape character (or most other characters < 0x20) is sent to the generic / text only printer it gets printed as a period. Using the code in the WinDDK is it possible to 'correct' this behaviour so that it passes it through unmodified? The general scenario for this is that some application ('user app') outputs a document to a win...