windows

What do people think of Gupta Team Developer?

Has anybody any experience in using Gupta (formerly Centura) Team Developer? If so, what do you think of it in terms of its capability to support the development of mature, scalable, maintainable applications? Thanks ...

Does .NET support Windows Eventing 6.0 ?

I want to use the Windows Eventing 6 API from a C# application to log messages to a specific channel in Windows Server 2008 event log. There is a good example on how to use it but it's only C++. In the example it's mentioned that .NET doesn't support Windows Eventing 6. There are 2 examples in http://msdn.microsoft.com/en-us/magazine/cc1...

Reading interlocked variables

Assume: A. C++ under WIN32. B. A properly aligned volatile integer incremented and decremented using InterlockedIncrement() and InterlockedDecrement(). __declspec (align(8)) volatile LONG _ServerState = 0; If I want to simply read _ServerState, do I need to read the variable via an InterlockedXXX function? For instance, I have seen...

Is there a standard directory browser dialogue that I can call in MFC that doesn't involve the user having to create directories to specify ones that don't yet exist?

I am working on the bootstrap application of an installer, and I have a dialogue that the user can open to select a different target directory from the given default. Currently, I'm using the CFolderDialog for that, but for the user to select a folder that doesn't yet exist, he has to create the folder first. Once the user has specified ...

winapi: CreateProcess but hide the process' window?

I am using CreateProcess to create a cmd.exe process that is passed a parameter that it executes and quits, this makes command prompt flash up on the screen. I tried to avoid this by setting STARTUPINFO struct wShowWindow to SW_HIDE but this parameter seems to affect the calling window, not the window for the process that gets executed...

simulating iphone on windows?

Is there any way to test my objective-c code on windows.. is there any ide like xcode for windows to develop iphone applications. ...

How to get the uuid of the mainboard with c.

I need a code snippet for reading the mainboard uuid in c (in Windows XP and Windows Vista if there is a difference, else just for Windows). ...

Wrapping a 3rd party DLL

Hi, I have a 3rd party DLL that needs to be loaded dynamically using LoadLibrary() and which uses the __cdecl calling convention. I need to be able to use the dll from VB6 so I've created a wrapper DLL of my own that uses the __stdcall calling convention and exports the functions that are needed. An additional requirement has now arri...

Page faults monitor for Windows.

Is there any tool which displays at runtime, Page Faults delta on a per thread basis? Basically I have an application that is causing lots of page faults and I want to nail down the thread which is causing the maximum. ...

How to implement a multi-platform multimedia application?

On which technological basis would you implement a multimedia app, which has to meet the following requirements: Platforms: Windows XP/Vista, Mac OS X, Linux (nice to have) Should play audio (mp3) and video (H.264 would be great) from local disk I looked into things like Cocotron which is a cross-platform Objective-C API similar to C...

Robust Event Logging

This seems, to me, a slightly more specific question that those already asked, so: How reliable is the Windows Event Log service if I'm looking for a 'fire and forget' logging service, so that even an error in calling the service does not impact the caller, and is noted somewhere, somehow, by the OS? ...

Windows Messages Minimize App on Minimize Child

Hi all, I have a delphi application where the main form is a login form - this contains various database and user objects necessary for the program. Once the user logs in, I hide this form and open another. My issue is, how do I cause the application to minimize when the child form is minimized? I figured out how to restore the chi...

Draw array of bits(rgb) in windows

I have an array of raw rgb data. I would like to know how can I draw this pixels on the screen in Windows OS? Now I use API function DrawDIBits, but I must turn up my image data. ...

Upload Data from .net Windows Form Application

Sorry, if this sounds ignorant. Is it possible to SECURELY upload data from a Windows Forms app using an asp.net web service or some other method? If so, what is the general way of doing it? I have never used web services before. I have an IIS 6 server with .net 3.5 installed. I need to build this windows forms program, which will hold...

Processing messages is too slow, resulting in a jerky, unresponsive UI - how can I use multiple threads to alleviate this?

I'm having trouble keeping my app responsive to user actions. Therefore, I'd like to split message processing between multiple threads. Can I simply create several threads, reading from the same message queue in all of them, and letting which ever one is able process each message? If so, how can this be accomplished? If not, can you...

Windows XP Indexing Service: escape #, ! or @ ?

Open the search side bar in Windows explorer (Ctrl + F). In the field labeled, "A word or phrase in the file:" enter a query starting with #, ! or @ that you expect to return some results. I get the following error: The Indexing Service query cannot be completed successfully because the volumes you have specified are not indexed Is the...

Find QWidget of single instance Qt application

I'm trying to create a single instance Qt application and I'm at the point this works, but now I want to focus the already started instance when a second is started. QWidget::find(g_hWnd) should return the widget but it fails and crashes on w->show(); Any thoughts? #pragma data_seg("Shared") HWND g_hWnd = NULL; #pragma data_seg() #prag...

Why Windows 7 isn't written in C#?

I saw a similar question about the reason Google Chrome wasn't written in C#. But with the upcoming version of Windows and Microsoft's flagship language, I am having a hard time understanding why Microsoft isn't pushing C# to its fullest potential to give it more exposure via their market share? In addition can be interpreted as "Is C# ...

How to tell what account my webservice is running under in Visual Studio 2005

I'm going a little nuts trying to understand the doc on impersonation and delegation and the question has come up what account my webservice is running under. I am logged as myDomainName\johna on my development workstation called JOHNXP. From Vstudio2005 I start my webservice via Debug and the wsdl page comes up in my browser. From T...

how to run a python script in the background ?

Hi, I have a script which checking something on my pc every 5 min and I dont want python to show on my tasktray is there any way to make python run in the background and force him not to show in my task tray ? thanks im using windows by the way ...