April 19, 2024, 01:13:13 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


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:
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.