windows - where to store .properties file for use in c++ dll -
I have created a .properties file that contains some simple key = value pairs. Attempted to exit a sample C ++ console application using imported Java classes, and I was able to access it, no problem
Now, I am trying to use it in C ++ with DLL, which is being called by another (unmanaged) C ++ project.
For some reason, the file is not being used.
Maybe my file location is incorrect
TIA
As you are mentioning "DLL", I think you are using MS Windows. Finding a file from a DLL, and logged by the user is independently restricted items. The best way is to store the file in the path that is collected from the environmental variable ALLUSERSPROFILE
, this is the only place that is equal to all users and where all users are usually used to write. Your application data should remain in the private subdirectory, such as & lt; MyCompany> or & lt; MyApplicationsName>
Type% ALLUSERSPROFILE%
at the Windows Command-Line prompt to know the actual location on a machine.
Store either in your data:
% alusalerSPROFILE% \ MyApp \
Location of ALLUSERSPROFILE using your DLL getenv Can query:
four * All user data = ("Ellesarprography");
Comments
Post a Comment