comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
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
  recursive directory walk         


Author: jmichae3
Date: Jul 2, 2008 22:41

I need some working code that walks a directory tree and (at least)
prints out the full path of every file. it must work on windows 2000/
xp/vista, and (hopefully) windows 9x.

Is there a possibility of getting both dirent.h code for Borland C++
5.5 and (at the least) win32 code using FindFirstFile/FindNextFile/
FindClose?

I have not been able to find any working good examples.

Here's what I have:
Show full article (4.34Kb)
4 Comments
  A problem with a small error         


Author: laserbeak43
Date: Jul 2, 2008 10:45

Hi,
I'm learning windows programming by reading Petzold's old book and I
have some code that gives me an error saying: "IDM_BKGND_WHITE
undeclared identifier" I can't argue with it cause i don't know where
this identifier came from and it's not in the MSDN help. does anyone
have any idea?

// "MenuDemo.c" Line 56 of this file(in the body of the WndProc
function)says: "IDM_BKGND_WHITE undeclared identifier"

#include
#include "resource.h"

#define ID_TIMER 1

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;

TCHAR szAppName[] = TEXT ("MenuDemo") ;

int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
HWND hwnd ;
MSG msg ;
WNDCLASS wndclass ;
Show full article (5.27Kb)
13 Comments