Click to See Complete Forum and Search --> : Compile problem : urgent


Johan M
May 20th, 1999, 08:55 AM
In my program I ty to utilize the ReadDirectoryChanges() method.
The program imports:

#import <winbase.h>
...
BOOL result = ReadDirectoryChanges(...);



When compiling using "make" and a Makefile, the compiler complains:
error 2065: 'ReadDirectoryChangesW' : undeclared identifier
According to MSDN, ReadDirectoryChanges uses the kernel32.lib.
How do I use kernel32.lib from my sourcecode?

/ Johan M

Franky Braem
May 20th, 1999, 09:19 AM
Is your environment WIN NT 3.5 or later ?

This function does not work on Win95 or Win98

Johan M
May 20th, 1999, 10:03 AM
According to the "System Properties"-"General", I'm using Win NT 4.00.1381.
The folder where "kernel32.lib" is situated is included in the lib system variable.

/Johan M