Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Location of SDT Meta data
I’m using Stonefield Database Toolkit with the Mere Mortals framework, my problem right now is that users have a different drive letter mapping the path to the common database.
Meta data files should be found by means of the path established into property cMetaDataDir. Since this property is already set when the .exe is built, the StoneField class can’t be instantiated and properly added to the framework for those users which have a different drive letter mapped to the database destination.
Right now I’m using the framework's GetSetting function in order to retrieve the value of the "DBC Locations - Local" key from the windows registry to set the cMetaDataDir property on the Init event of Stonefield Class:
this.cMetaDataDir = This.Parent.GetSetting( "dbc locations - local" ,"MyDBC" , "" )
dodefault()
This seems to solve the problem. However, I’d like to read someone else’s opinion/advise or any other way around to solve this.
I'm probably missing something.
Thanks and Regards
Oscar Corte
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement