comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
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
  finding out application dependencies;         


Author: krish
Date: May 15, 2008 19:47

How can I find out the dependencies of an application inside my
program/driver? Say e.g If I want to find out the dependencies of
iexplorer.exe inside my program? What are the APIs? I knwo there is a
program something called dependency walker so I assume there must be
some way of doing this.

I want to provide a GUI which lists all the programs installed on the
computer and when user cselects one of them I lists all the files
(.dlls etc) on which it is dependent.
1 Comment
  C crash on free/malloc and sometimes printf         


Author: Nuno Magalhaes
Date: May 15, 2008 10:47

Hello,

I've done a small application that sometimes crashes on the free,
sometimes doesn't allocate memory correctly (malloc) and sometimes
crashes on printf flush procedure. What can I do to correct this
library?

The code follows below.

Thanks in advance.

/*! \file timerthread_win32.c
*/
#include
#include
#include
#include "timerthread.h"

/* Debug related definitions. */
#ifdef DEBUG_TIMERTHREAD
#define dprintf printf
#else
#define dprintf
#endif
Show full article (5.01Kb)
12 Comments
  using variable arguments         


Author: TheOne
Date: May 15, 2008 05:10

I read on a webpage ( http://wiki.kldp.org/wiki.php/CLanguageVariableArgumentsList
) that something like

#define debug(s, ...) fprintf(stderr, s, __VA_ARGS__)

void
foo(void)
{
debug("Entered the function, %%s\n", __func__);
/* ... */
}

is possible. However my VC6.0 compiler errors that he doesn't
understand ... in macro. Is it impossible? Or would there be other way
to do this?

I want to add header in my debug message for each module. Something
like,

#define App1DebugWrapper(s, ...) DebugOutput( "app1", s, __VA_ARGS__)

DebugOutput is an OutputDebugString wrapper, which makes a long string
starting "app1 :" and hand the string to OutputDebugString.

TIA.
Show full article (0.70Kb)
1 Comment