windows-programming

Difference between WinMain,main and DllMain in C++

What is the difference between the three functions and when to use them?? ...

How can I accurately program an automated "click" on Windows?

I wrote a program to click on an application automatically at scheduled time using Win32, using MOUSE_DOWN and MOUSE_UP. It usually works well, except I found that I need to put in a sleep 0.1 between the MOUSE_DOWN and MOUSE_UP. (using Ruby, which allows sleeping a fraction of a second). Without the sleep, sometimes the click doe...

Is there a non-named pipes in windows api?

Posix provided both named and non-named pipes... Can you have a non-named pipes and windows and how to use them? ...

How to use anonymous pipes in windows api (and pass to gtk function)?

I need to be able to pass int value representing fd (pipe fd) to gtk function as a first parameter gint gdk_input_add gint source, GdkInputCondition condition, GdkInputFunction function, gpointer data); How do I do that, as CreatePipe returns HANDLE which is NOT int? Thanks ...

Windows programming application and writing temporary files

I am writing an app that may have in its memory quite a bit of data. I dont want to write the data to disk ad hoc because there may be more data to write, I could append the data, but I dont want to run into any file corruption issues. Are there any good tutorials or trusted methods describing how a windows program typically makes use ...

Error converting a pipe (Handler) to fd on vs 2003

Hello! I am trying to use notify a main gtk thread ( from a separate thread) that some even occurred using pipes. I get the following warning when I am trying to setup pipes. What is a good workaround? when I can this g_io_channel_win32_new_fd, I see this warning, and thus pipe isn't created at all :( GLib-WARNING **: giowin32.c:1564:...

What is the meaning and usage of __stdcall ?

I come across _stdcall a lot these days. And in my opinion msdn doesn't explain very clearly what it really means, when and why should it be used, if at all. I would appreciate if someone would provide an explanation, preferably, with an example, or 2. Thanks ...

Windows Scripting: What and How to do this? Batch Files or Something else?

Hello all, What I am trying to do is have some sort of script run in windows (ideally .cmd file/batch file) when double clicked it should create a short-cut menu in the start menu and set a path in the windows registry (i think thats what it is called) so that next time, for example, all I have to is get the variable JAVA_HOME to get th...

Autocomplete text not trigger enter press event after adding the autocomplete data source

Hello, I have a windows application written on visual studio 2008. I have a textbox that has autocompleteMode set to suggest, autocompleteSource set to CustomSource. So I triiger the textchanged event on the textbox to add the autocomplete datasource for the textbox like this: private void txtSearch_TextChanged(object sender, EventArgs ...

Learning Windows Services with C++

Hi, Can you suggest a good book for learning Windows Services programming using C++? Thanks, ...

Compiling Visual c++ programs from the command line and msvcr90.dll

Hi, When I compile my Visual c++ 2008 express program from inside the IDE and redistribute it on another computer, It starts up fine without any dll dependencies that I haven't accounted for. When I compile the same program from the visual c++ 2008 command line under the start menu and redistribute it to the other computer, it looks fo...

Cocoa Programming on Windows

Is there a way to develop windows applications using cocoa and objective-c in general ...

Does DeferWindowPos work well with the VCL?

I'm considering to increase my usage of DeferWindowPos. Up to now I used it in some simple circumstances and didn't notice any problems. Do you know of any pitfalls, where e.g. the FLeft/FTop/... fields aren't updated correctly or similar things? ...

"Nobody should be using MFC any more" Why?

Is it true that "Nobody should be using MFC any more" And why is that? ...

Getting the dimensions of the bounding rectangle of the specified Windows XP window in screen coordinates in MATLAB

I'm trying to write a MATLAB function to find the position in screen coordinates of an arbitrary window (not just a MATLAB window). The code only needs to work in the current version of MATLAB and on Windows XP. I know I could write a MEX-file or shell out to another program, but I want to do this all with MATLAB code. It should be po...

Is key 'chord' functionality provided by Win32/.net?

Several MS apps support the concept of chords, like "CTRL+X,Y" which means "holding down CTRL, press X, then Y". Is this a bespoke thing they (and other companies) implement, or is it built into any APIs? It would be nice to be able to set up event handlers or accelerators based on chords rather than write code to do it. ...

Dialog usage analysis/heatmap tools

Are there any tools out there, for MFC apps in particular, which can be used to gather data on how users use dialogs... of primary interest is which controls are accessed most often. I'd guess one could write something that would plug into an existing dialog without too much fuss, but perhaps something (preferably free) already exists t...

psapi.dll proccess status api

Could someone provide c++ tutorials/reference/books about PSAPI ? also Did someone know if there are a wrapper to this library on perl? ...

Windows Programming in C++

Being a C#/Java programmer, I really need to know a fact: Has Windows Programming with Win32SDK/MFC/wxWidget become antiquated? What is the status of popularity of these technologies in software industry now? Being a C#/Java programmer, do I need to learn Win32SDK/MFC/wxWidget now? ...

Where does Windows drag'n'drop store dragged item data?

It's not (visibly) using the clipboard because it doesn't trash the clipboard contents... where does it go? ...