location of TurboActivate files in a VSTO (Excel) solution

Hi,

I'm trying to build LimeLM/TurboActivate into a VSTO Add-in for Excel and am not sure where I need to save the TurboActivate.dat/.dll.exe files in order for the solution to pick them up. Looking at the code, it seems like they should be stored in the path returned by 'Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath)' [at least that's where it's looking for the .exe by default] but when I query this it comes up as the location where Excel is installed which I'm not sure I can/should be writing to.

For the .dat and the .exe I can explicity set a path (e.g. I've tried 'Path.GetDirectoryName(Assembly.GetExecutingAssembly().CodeBase.ToString' for this, setting it using PDetsFromPath for the .dat) but it still fails to find the .dll.

Has anyone got any ideas please?

Thanks

Rishi

Extensions are a bit trickier. You should put TurboActivate.dat / .dll / .exe in the same folder as your plugin .dll file. This way your plug will load TurboActivate properly. Also, before you call any other TurboActivate functions you'll need to call the TurboActivate.SetPDetsPath() function to properly load the TurboActivate.dat file.