comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
April 2008
motuwethfrsasuw
 123456 14
78910111213 15
14151617181920 16
21222324252627 17
282930     18
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
  Marking Location in Code With VS 2008?         


Author: Larry Lindstrom
Date: Apr 18, 2008 22:28

Hi Folks:

I'm pleased with my new development system, VS 2008.

There are a couple of things I used to be able to do
with VC6, but can't figure out how to do with VS 2008.

How do I mark a location, so I can return to it later?
This is done with in VC6.

Thanks
Larry
2 Comments
  CreateFontIndirect() sometimes creates tiny font         


Author: Charlie Gibbs
Date: Apr 18, 2008 17:22

I've written a number of report programs that are running perfectly
at many customer sites. However, at one site, the print lines
are squashed to about 30 lines per inch, although the character
widths seem to be OK. I use CreateFontIndirect() to try to find
something as close as possible to an Arial font that will be scaled
to fit my report lines across the page. I don't care too much about
the height of the characters, since I can calculate how many lines
will fit on a page. But at this one site, the character height
is ridiculously small, while the width, being properly set, yields
an equally ridiculous aspect ratio.

Here's a sample code snippet; it assumes that "printerdc" already
contains the handle of a valid printer device context:

HDC printerdc;
HFONT fontpd;
LOGFONT logfont;
TEXTMETRIC tm;
Show full article (3.05Kb)
6 Comments
  problems with CreateProcess() and anonymous pipes         


Author: mity
Date: Apr 18, 2008 10:38

Hi to all.

I'm working on code which needs sometimes to call some helper 3rd
party command line tools so I need to redirect child's std. input/
output streams.

I found this demo code on MSDN: http://msdn2.microsoft.com/en-us/library/ms682499.aspx

I extended it so the parent process can post some data to stdin of the
the child process as well. However I have still problems with that:

-- How the parent process can check if there is something in the pipe
buffer to read of if there is enough room to write (in case of child's
stdin)?
-- How to keep order of childs request on stdout/stderr/stdin?
-- How to prevent parent to block in ReadFile() if there is just few
bytes? Of course I don't want to read byte by byte..

In other words, I would need something similar to select() or poll()
syscall on Unix, which waits until any file descriptor in set is ready
to read and/or write.

Unfortunately I could not find any reasonable solution on MSDN nor
Google...
Show full article (1.25Kb)
3 Comments
  Open a child process window within a (child) frame         


Author: Uwe Kotyczka
Date: Apr 18, 2008 04:40

Hallo!

I am to write a kind of meta-application, i.e. an application
which provides it's own funcionality and is able to "open" a
bunch of external applications.
I could imagine that the meta-application is a MFC MDI app, say
meta.exe,
which, when it opens an external exe, say a.exe, shows the
main window of a.exe not as a popup window, but as a child of some
MDI child frame instead. (Hope I could make it clear what I wish to
do.)

Simple means like CreateProcess or ShellExecuteEx cannot achieve
such a behaviour. So what would be the best way to implement it?
no comments
  How to Deal With XP's "Block Program" Dialog?         


Author: Larry Lindstrom
Date: Apr 18, 2008 04:22

Hi Folks:

My app, and my favorite game, have been having problems
on PCs running XP.

I'm wondering what happens if XP decides to ask if the
application is to be blocked when the application is in
full screen mode.

I don't knot that this is my problem, but I'd like to
make sure it isn't a problem.

Is there a way to tell XP that I don't want the app, or
any processes it spins off, blocked before running the
program?

If not, how do I handle this?

Thanks
Larry
11 Comments