comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
February 2008
motuwethfrsasuw
    123 5
45678910 6
11121314151617 7
18192021222324 8
2526272829   9
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
  stdin/stdout/stderr Redirection and Pipe Deadlock Problem / Issue         


Author: David T. Ashley
Date: Feb 21, 2008 22:15

I have read two helpful articles about spawning a console application and
using anonymous pipes to provide the standard input and capture the standard
output and standard error.

These articles were:

http://msdn2.microsoft.com/en-us/library/ms682499(VS.85).aspx

http://support.microsoft.com/kb/190351

I really don't use standard input, but when capturing the standard output
and standard error, I used a loop in the parent program like:

stdout_pipe_exhausted = FALSE;
stderr_pipe_exhausted = FALSE;
while (!stdout_pipe_exhausted || !stderr_pipe_exhausted)
{
Use ReadFile(stdout) to get the stdout data, and if no data or pipe
broken stdout_pipe_exhausted = TRUE;
Use ReadFIle(stderr) to get the stderr data, and if no data or pipe
broken stderr_pipe_exhausted = TRUE;
}
Show full article (2.61Kb)
1 Comment
  SetSystemPowerState() failed on 64 Bit Machine         


Author: james
Date: Feb 21, 2008 21:48

I'm developing an application and using SetSystemPowerState() to send
system in to Suspend and Hibernate state. And I wake up system by
setting Waitable timer.
This application works fine on Intel 32 bit machine. But on x64 (AMD
or Intel) machine, SetSystemPowerState() API fails with error code
0x00000032 (Description: The network request is not supported.). I'm
not involved in network operation in application even though why
return value says network request is not supported.
Can anybody tell me why API fails on x64 machine?
3 Comments
  System Idle Monitoring         


Author: Zarir.Karbhari
Date: Feb 21, 2008 21:17

Hello

How do I monitor how long the system has been idle ?

Thank you in advance

Regards
Karbhari
1 Comment
  Flashing text         


Author: gw7rib
Date: Feb 21, 2008 14:44

Just a quick question. I'm converting one of my DOS programs to
Windows. In DOS, it is easy to have text on the screen flashing
(simply set the correct bit of the attributes, and Bob's your uncle)
and so a (fairly minor) feature of my program was that the user could
choose to have text flashing or not. My question is, is there an easy
way of doing this in Windows? I would suspect not, and that it would
need a window to be repainted in different ways, driven by a timer.
But is there an easier way?

Thanks in advance .
Paul.
2 Comments
  Code won't compile in VS 2008         


Author: Andrew Falanga
Date: Feb 21, 2008 13:38

Hi,

My box was just re-imaged (by IT, I didn't have a choice). The new
image has only VS 2008 on it. In my code, I have a class, NameRes,
that handles for my program all of the name resolution operations such
as getaddrinfo( ), etc. On VS 2005, this code compiled fine.
However, not so with VS 2008.

The class looks like this (stripped down to illustrate):

class NameRes {
char* hostAddr;
char* servAddr;

protected:
addrinfo hints;
addrinfo* lAddrList;

public:
// c-tor d-tor, etc.

int GetAddrInfo( ); // options for getaddrinfo( ) are handled by
the class

};
Show full article (1.89Kb)
5 Comments
  What would cause popup not to work?         


Author: JoeC
Date: Feb 21, 2008 13:36

I am writing a windows program and in my winproc loop none the popups
will work. I can get message boxes to work after the main statement.
The only thing I am doing different is my windows setup is in the form
of an object.
2 Comments