Here's how to use ReadDirectoryChangesW without knowing all of this and without using this overkill C++ class library (remove the &o parameter in the call to make it blocking instead of async. Note: This only returns one change, you have to step trough a buffer of FILE_NOTIFY_INFORMATIONs if you need to get more): HANDLE hDirectory ; OVERLAPPED o = { 0 }; union { FILE_NOTIFY_INFORMATION i ; char d [ sizeof ( FILE_NOTIFY_INFORMATION )+ MAX_PATH ]; } fni ; int checkAutoCompile () { DWORD b ; if (! hDirectory ) { hDirectory = CreateFile ( "." , FILE_LIST_DIRECTORY | GENERIC_READ , FILE_SHARE_READ | FILE_SHARE_WRITE , 0 , OPEN_EXISTING , FILE_FLAG_BACKUP_SEMANTICS | FILE_FLAG_OVERLAPPED , 0 ); o . hEvent = CreateEvent ( 0 , 0 , 0 , 0 ); } ReadDirectoryChangesW ( hDirectory , & fni , sizeof ( fni ), TR...
This is a 3D Terrain Editor I created back in 2007 with Dark BASIC Pro (free now, anybody should be able to compile this). Along with standard heightmap terrain editor features, it also allows shifting the vertices to create simple overhangs and caves. Videos Download Extended Terrain XYZ - Open Source - fix-dlls.zip (7.8 MB) - compiled executable and instructions for compiling included (ReadMe.txt) ExtendedTerrainXYZDemoMaps.zip (26.5 MB) ExtendedTerrainXYZRequiredPlugins.zip (2.1 MB) - you need these if you want to build from source Old Information: link
Comments
Post a Comment