comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
January 2008
motuwethfrsasuw
 123456 1
78910111213 2
14151617181920 3
21222324252627 4
28293031    5
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
  Re: retrieving file sizes on WinXP+         


Author: mrdarrett
Date: Jan 15, 2008 17:10

On Jan 10, 11:14 pm, alynis hyllis.com> wrote:
> Jeffrey Adler wrote:
>
>> Attached is a library that I use to walk a directory structure.
>
> A lot of useless code.
> Done in 10 lines.
> See MSDN

What function names? MSDN is a big pool to wade through.

Thanks,

Michael
no comments
  how do I get process information while running as a windows service?         


Author: troyboy
Date: Jan 15, 2008 15:20

Hi, I wrote this program(with much help from this forum) to display
process names and titles just like the task manager does. However when
I run this same program as a service the results are not the same. I
should mention that I am running in vista if it matters. What am I
doing wrong?

Here is the program:

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include // PSAPI for EnumProcesses
Show full article (7.96Kb)
1 Comment
  Stripping Page File across Multiple Hard drives         


Author: 456
Date: Jan 15, 2008 13:33

This is an incredible tweak that has improved the performance of my
system by leaps and bounds.
There have been lots of articles and tweaks concerning the Page File.
I have tried them all, however... http://online-windows-xp.blogspot.com/
4 Comments
  Runtime type information, typeid() and template functions         


Author: Andrew Falanga
Date: Jan 15, 2008 12:29

HI,

I'm having some problems getting this to work. Now, I have a logging
class for my program. This class has a couple of enum type flags that
I use to know whether or not to flush the log file contents and
whether to log to both stdout and the log file or not.

Basically, the class looks like this (the log modules header file):

#include
#include
#include
#include

enum modes { stdoutonly, fileonly, both };
enum directives { flush }; // currently, only this one is implemented

class Log {
std::fstream logFile;
std::string logFileName;

modes currMode;

public:

// c-tors, d-tors and some other things here
Show full article (2.32Kb)
1 Comment
  Proper techniques for a threaded issue         


Author: Andrew Falanga
Date: Jan 15, 2008 08:54

Hi,

I'm working through a problem that I've just stumbled across with a
multi-threaded program I'm writing. This program has a logging
facility which is maintained through a Log class/object. This object
gets instantiated in main() and is passed, by reference, to other
objects created during the duration of the program.

I think I've finally isolated why my program is "bombing out" when I
execute the multi-threaded version. In the destructor for this Log
class, I close the log file object. Well, multiple threads are
writing to this object and the first thread that exits will, because
in that thread other objects are created that take a reference to this
log object, close the log file. Thus the program exits with with
complaints from the Runtime and a prompt to debug in VS.

I'm hoping for guidance in evaluation of the solutions I've determined
thus far. From what I can see, I have two main solutions, the second
of which has some further code implementation issues.
Show full article (2.67Kb)
2 Comments