Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 617101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:23:53+00:00 2026-05-13T18:23:53+00:00

I created a .properties file that contains a few simple key = value pairs.

  • 0

I created a .properties file that contains a few simple key = value pairs.
I tried it out from 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 the same way, from a C++ dll, which is being called by another (unmanaged) c++ project.

For some reason, the file is not being accessed.

Maybe my file location is wrong. Where should I be storing it?

What else might be the issue?

TIA

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:23:54+00:00Added an answer on May 13, 2026 at 6:23 pm

    As you are mentioning “DLL” i guess, that you are using MS Windows. Finding a file there from a DLL, and independently from the logged on user is a restricted item. The best way is to store the file in a path assembled from the environment variable ALLUSERSPROFILE. This is the only location that is equal to all users and where all users usually have write access. Your applications data should reside in a private subdirectory named like < MyCompany > or < MyApplicationsName >. Type

    echo %ALLUSERSPROFILE%
    

    on a windows command line prompt to find out the actual location on a machine.

    Store your data in i.e.:

    %ALLUSERSPROFILE%\MyApp\
    

    Your dll can then query the location of ALLUSERSPROFILE using getenv:

    char *allUsersData = getenv("ALLUSERSPROFILE");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created a Java project that contains three configuration file log4j.XML QueueConfig.xml rabbitmq.properties I
I created an object that contains properties that in the end will manage data
I've got a properties file with two distinct key-value pair patters like the following;
I've created a class that contains all of the movie clips from the stage.
In a chrome extension, I've created tab properties that I'm trying to store with
I've created a custom user control that has several properties. One specifies which database
I have a rectangle that I've created and set its individual properties like so
I'd like to bind my declared properties to controls and views that are created
I have created a manifest file for a VB6 application that is running on
I have differents UIViewController that contains components that appear and disappear from the view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.