comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
Your Ad Here
comp.os.mswindows.programmer.win32 only
 
Advanced search
May 2008
motuwethfrsasuw
   1234 18
567891011 19
12131415161718 20
19202122232425 21
262728293031  22
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...


 Up
  Detecting when a process is abruptly terminated...         


Author: Chris Thomasson
Date: May 7, 2008 23:23

I am doing a general-purpose shared memory allocator and need to determine
when a process has been unexpectedly terminated so that it can make a
reclaim adjustment to the allocator state. In other words, if ProcessA
allocates a block of shared memory, and gets terminates, I want to be able
to catch this and reclaim the block. What do you think is the most elegant
solution? I want to avoid creating a "watchdog" process...

--
Chris M. Thomasson
http://appcore.home.comcast.net
4 Comments
  I am now installing google earth on UBUNTU Linux. package name to download codecs/java         


Author: erach27
Date: May 7, 2008 22:47

ubuntu linux is very easy to use.
use
kubuntu --- makes u use your brain.

and has all the packages.

and windows xp runs as a file under virtual box.

Erach
no comments
  WaitForInputIdle         


Author: Tom Udale
Date: May 7, 2008 14:04

Greetings,

Does anyone know what WaitForInputIdle is actually triggering off of? I
know it is typically used to detect when a spawned process is ready to
get messages (i.e. when the queue is created and it has blown through
most of the startup messages and is "waiting for input").

But the docs clearly say that "The WaitForInputIdle function can be used
at any time, not just during application startup" so it obviously has
uses beyond the common idiom.

I am trying to use it to detect when my own applications message queue
is empty from another thread (i.e. a different thread than the one with
the main PeekMessage loop).

My second thread calls WaitForInputIdle and then does some action I want
to happen often, but not so often as to plug up the main message queue
(this action generates lots of messages and WM_PAINTs). It works great
on some machines, but on others, it appears that WaitForInputIdle is
returning too quickly. In particular, it seems to be returning before
all WM_PAINT and such low priority messages have been completed. Thus
the second thread floods the message queue with messages and WM_PAINTs
and so forth never happen.
Show full article (1.33Kb)
5 Comments
  [ANN] Idle Scripting Language 0.3.0 beta         


Author: Thomas Lauer
Date: May 7, 2008 08:57

New beta version released
-------------------------

I've uploaded a new beta (version 0.3.0) of Idle. Changes to the
previous version include:

+ added support for textual macros and source code preprocessing. Module
macro adds facilities to Idle similar to macro handling in the C
preprocessor. It allows the definition and replacement of macros with
or without parameters and supports textually including source files
(also along a path, see package.ipath) as opposed to require() and
dofile() which introduce separate compilation units with, among other
things, a separate scope.

+ function string.reMatch() does regular expression pattern matches.
This function works similar to string.reFind() but it simply returns
the matched strings (or captures, if captures are defined) and not the
positions in the string.

+ function table.invert() inverts a table such that the keys are
swapped with the values.
Show full article (3.31Kb)
no comments
  assigning bitmap to button         


Author: vidishasharma
Date: May 7, 2008 07:43

Hi I am trying the following line of code

ButtonIcon = LoadImage(IntPtr.Zero, @"D:\connectBeam.bmp",
ImageType.Bitmap, LR_DEFAULTSIZE, LR_DEFAULTSIZE,
LoadImageFlags.LoadFromFile);
SendMessage(_childwindow, (uint)BM_SETIMAGE, IMAGE_BITMAP
| IMAGE_ICON, (int)ButtonIcon);

I get the handle after LoadImage() however still the bitmap is not
loaded over button. Can somebody suggest what wrong I am doning
1 Comment
  How to implement a "resident" application         


Author: sasha.sirotkin
Date: May 7, 2008 06:52

What would be the best way to implement an application that is running
all the time, does not have a visible window (maybe an icon on the
system tray), is invoked by pressing special keyboard-mouse sequence
and when invoked, looks at the selected text in a currently active
window and displays a tool tip based on this text. Something similar
to a dictionary I guess, from the UI point of view.

I did not code for Win32 for many years and would greatly appreciate
some tips about what technologies, APIs, etc to use and what should be
the general architecture of such an application. If anybody has
stumbled upon any relevant source code samples - even better.

Thanks.
5 Comments
  IWebBrowser2->Navigate() Failure...         


Author: moonfacell
Date: May 7, 2008 02:22

Hi guys,
I use IWebBrowser2 in a console application WITHOUT MFC, but met a
problem: I can start the IE, but Navigate() always return failure...

My code:
// browser.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "mshtml.h"
#include //for IWebBrowser2
#include
#include
using namespace std;
void TestIEControl()
{
CoInitialize(NULL);

CString progid(L"InternetExplorer.Application.1");
BSTR ole_progid = progid.AllocSysString();
Show full article (1.61Kb)
3 Comments
  DeviceIoControl (Drive serial name OFFSET -> CHAR) [C++ | WINAPI]         


Author: CAHEK
Date: May 7, 2008 01:57

Hi all!
When I'm using DeviceIoControl with IOCTL_STORAGE_QUERY_PROPERTY and
SerialNumberOffset i can't put this serial name(SerialNumberOffset) into
the char buffer for exemple. help me please
1 Comment
  Problem with DialogBox() returning -1         


Author: daxxar
Date: May 7, 2008 01:38

Hi!

I'm having problems where SOME of my users fail to run my program,
because DialogBox() returns -1. I've set up a MessageBox() that shows
the value of GetLastError(), and it returns 0 (The operation completed
successfully.)

Anyone have any suggestions as to what could cause this?

This is the relevant part of my code. (See http://pastebin.ca/1010305
for hilighted version)
Show full article (1.76Kb)
2 Comments
Your Ad Here
  _WIN32_WINNT define WTS function         


Author: TheOne
Date: May 7, 2008 00:42

I should use WTS function in my code.
To use this function, I need to define _WIN32_WINNT as 0x501.

However, my app should also work on win 2k which is older than the
specified minimum version.
On 2k, my code won't call that function.

How should I write my code?
1. Even though the app should work on 2k, specify _WIN32_WINNT as
0x501. Then test intensively.
2. Seperate the WTS part in another dll, and call the dll.
3. Any other clever way?

TIA

--
Daewon YOON
2 Comments