August 18, 2019, 03:45:00 pm

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


HardLinks on NTFS drive

Started by sapero, July 10, 2008, 03:28:27 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sapero

July 10, 2008, 03:28:27 pm Last Edit: July 11, 2008, 02:56:34 am by sapero
I'm developing a set of mini appications with one runtime dll. The dll and its project is located in a subfolder.
Because the root folder has about 20 projects and exe's, I needed additional folder for my dll.

Instead copying the dll one folder up anytime it gets updated, I've created a hardlink to my dll in parent folder:
Code Select
CreateHardLink("runtime.dll", "core\\runtime.dll", NULL);
But there is a problem - after recompiling core\runtime.dll, every exe from root folder sees the previous dll version, so the CreateHardLink api is working like CopyFile.
I need to delete and create the hardlink again.

What's going on?


EDIT: I have copied the dll one folder up, and created the hardlink in subfolder with dll project, so the compiler modifies the dll via hardlink.
I could also compile my dll directly to parent folder.