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
  Sending keystrokes to a console (c++)         


Author: AngleWyrm
Date: Feb 1, 2008 23:43

Hi all,

How do you send keystrokes to a console application?
1 Comment
  Error 1224 (ERROR_USER_MAPPED_FILE) - what is it?         


Author: Charlie Gibbs
Date: Feb 1, 2008 18:17

Occasionally, when I try to open a file for writing, I get error code
1224 (ERROR_USER_MAPPED_FILE). The full text corresponding to this
code is "The requested operation cannot be performed on a file with
a user-mapped section open."

This condition only occurs once in a while, at a couple of the 2000
or so installations where this program runs (under Win2K or XP).
There's nothing special about the file; it's a text file containing...
Show full article (1.62Kb)
3 Comments
  Spawning a Compiler, Supplying stdin and Catching stdout and stderr         


Author: David T. Ashley
Date: Feb 1, 2008 17:52

From a compiled C program, I'd like to spawn a compiler, supplying it with
command-line arguments and standard input, and capturing its standard output
and standard error streams. (Without using intermediate files--direct
communication between parent and child processes.)

Where can I find examples or a tutorial about how to set this up and do it?

I know it would have something to do with pipes, but I'm not sure of the
details.

Thanks.
--
David T. Ashley (dta@e3ft.com)
http://www.e3ft.com (Consulting Home Page)
http://www.dtashley.com (Personal Home Page)
http://gpl.e3ft.com (GPL Publications and Projects)
2 Comments
  Re: Why Use Overlapped I/O at all?         


Author: dj3vande
Date: Feb 1, 2008 12:57

In article m34g2000hsf.googlegroups.com>,
christ2008 mailinator.com> wrote:
>So if I understand you correctly, the intended *beneficial* way of
>using overlapped I/O is issuing several such calls in succession
>(because they all return immediately), then wait for _all_ of them
>using WaitForMultipleObjects, then whoever breaks that wait gets
>serviced immediately, then loop back to WaitForMultipleObjects, etc.
>
>Did I get this right?

Correct as far as it goes, but that's not the complete set.
Overlapped I/O is beneficial when there's *anything* other than waiting
for the I/O you just started that you could be doing before it
finishes; that can be running other I/O operations in parallel, but
there are other things you can do as well, like processing data you
already have or waiting for events other than an I/O completion.

dave

--
Dave Vandervies dj3vande at eskimo dot com
Show full article (1.10Kb)
no comments
  CreateFileMapping fails on Vista but passes on XP         


Author: Andrew Falanga
Date: Feb 1, 2008 11:09

Hi,

I'm using the CreateFileMapping( ) function to do the obvious and
everything works as expected on my XP development machine. However,
when I copied the binaries to a Vista machine CreateFileMapping( )
fails and GetLastError( ) returns error 5. I looked on MSDN and see
that system error 5 (0x5) is ERROR_ACCESS_DENIED.

Now, I'm calling this to create a shared memory space in the system
paging file. As far as I know, the user running the process on Vista
has administrator rights but to be honest I'm not fully sure of that.
I can't seem to find any place to make sure that this user is the
Administrator (or equivalent). I'm not able to login as the
Administrator user (not even prompted to, all I can do is click on the
Jedi user I created at install time). To be honest, with exception to
some useful changes to Windows Exploder, I'm not at all impressed with
Vista, but that's another conversation altogether.

If it's not because of the user id, what else causes access rights
violations when attempting to use the system paging file with
CreateFileMapping( )?

Andy
2 Comments
  vs2005 won't write .lib or .exp files when building my .dll         


Author: pete
Date: Feb 1, 2008 02:28

I can't get vs2005 to produce .lib and .exp files when I build my
DLL.
What do I have to do to persuade vs2005 to write these files?

I have seen that the project was set up with:

Import Library $(TargetDir)$(TargetName).lib

And I have tried adding to the linker command line:

/IMPLIB:"c:\TPCAgent\Debug\TPCAgent.lib"

What else must I do to generate .lib and .exp files for this DLL?

I have what I believe is an identical project elsewhere that /does/
produce the .lib and .exp files I want.

Thanks!

I apologize for the cross-posting: I didn't notice that microsoft.­
public.­win32.­programmer had been ruined.
4 Comments