I've been somewhat confused about what the "proper" place is to store
data files (like file based databases) for my applications.
With all the different "special" folders available, which is the correct
one for databases that get updated every time a user runs the
application? I need to make sure that Windows 98 users can use my
software as well, but I also need make sure that the data file is always
accessible at a consistent location in my software.
Any tips appreciated!
--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com 13 1575
Mitchel,
Although not correct is the application.sta rtuppath as well not a bad place.
We see it Microsoft do with Visual Studio Net.
I hope this helps,
Cor
"Mitchell Vincent" <mv******@newsg roup.nospam> schrieb: You should be able to write to the Application.Use rAppDataPath folder safely.
Is that accessible to "all users"? I always install my software so that any user on the system can access it.
Use
'Environment.Ge tFolderPath(Env ironment.Specia lFolder.CommonA pplicationData) '
instead.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
You should be able to write to the Application.Use rAppDataPath folder
safely.
"Mitchell Vincent" <mv******@newsg roup.nospam> wrote in message
news:eS******** *****@TK2MSFTNG P10.phx.gbl... I've been somewhat confused about what the "proper" place is to store data files (like file based databases) for my applications.
With all the different "special" folders available, which is the correct one for databases that get updated every time a user runs the application? I need to make sure that Windows 98 users can use my software as well, but I also need make sure that the data file is always accessible at a consistent location in my software.
Any tips appreciated!
-- - Mitchell Vincent - kBilling - Invoices Made Easy! - http://www.k-billing.com
Marina wrote: You should be able to write to the Application.Use rAppDataPath folder safely.
Is that accessible to "all users"? I always install my software so that
any user on the system can access it.
--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Yes, this will be stored in each users's data directory. Try it out and run
some quick test to see if it meets your needs.
"Mitchell Vincent" <mv******@newsg roup.nospam> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. .. Marina wrote: You should be able to write to the Application.Use rAppDataPath folder safely.
Is that accessible to "all users"? I always install my software so that any user on the system can access it.
-- - Mitchell Vincent - kBilling - Invoices Made Easy! - http://www.k-billing.com
Herfried K. Wagner [MVP] wrote: Use 'Environment.Ge tFolderPath(Env ironment.Specia lFolder.CommonA pplicationData) ' instead.
I assume it works with Windows 98, but where is the actual directory on
a 98 box? I don't have one to test, or I would.
Thanks!
--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
Mitchel,
Although not correct is the application.sta rtuppath as well not a bad place.
We see it Microsoft do with Visual Studio Net.
I hope this helps,
Cor
Cor Ligthert [MVP] wrote: Mitchel,
Although not correct is the application.sta rtuppath as well not a bad place. We see it Microsoft do with Visual Studio Net.
I hope this helps,
Cor
That's what I do now, but I was thinking that in some multi-user setups
the user might not be able to write to the Program Files directory, so
all the writes to the database *could* fail in theory.
--
- Mitchell Vincent
- kBilling - Invoices Made Easy!
- http://www.k-billing.com
"Mitchell Vincent" <mv******@newsg roup.nospam> schrieb: You should be able to write to the Application.Use rAppDataPath folder safely.
Is that accessible to "all users"? I always install my software so that any user on the system can access it.
Use
'Environment.Ge tFolderPath(Env ironment.Specia lFolder.CommonA pplicationData) '
instead.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CLEAR-RCIC |
last post by:
Hello All,
I wrote a .dll that programatically maps two network drives and copies files
from one drive to the other. The .dll works fine when using an .exe to call
the .dll. When I call the .dll with a Windows Service I get the following
error - "The specified network password is not correct". This makes no sense
as both the .exe and the Windows Service are both run from my machine. I
also specify my domain account/password in the...
|
by: Alf P. Steinbach |
last post by:
Thanks to a new version of OpenOffice that produces acceptable (although
not yet perfect) PDF, and numerous requests for PDF format, I've now
made chapter 2.1 available in PDF format -- e.g., use Acrobat Reader:
<url: http://home.no.net/dubjai/win32cpptut/html/w32cpptut_02.html>
I've also changed the numbering format for this chapter.
Hopefully this is better?
|
by: Alf P. Steinbach |
last post by:
So, I got the itch to write something more...
I apologize for not doing more on the attempted "Correct C++ Tutorial"
earlier, but there were reasons.
This is an UNFINISHED and RAW document, and at the end there is even pure
mindstorming text left in, but already I think it can be very useful.
<url: http://home.no.net/dubjai/win32cpptut/special/pointers/preview/pointers_01__alpha.doc.pdf>.
|
by: Mitchell Vincent |
last post by:
I've been somewhat confused about what the "proper" place is to store
data files (like file based databases) for my applications.
With all the different "special" folders available, which is the correct
one for databases that get updated every time a user runs the
application? I need to make sure that Windows 98 users can use my
software as well, but I also need make sure that the data file is always
accessible at a consistent location...
|
by: Shadow Lynx |
last post by:
Consider this simple HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 STRICT//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Strict kills my widths!</title>
</head>
<body>
<table style="width:400px; table-layout:fixed;">
| |
by: metaperl |
last post by:
I work at a place which is currently running SQL 2000, but they are
planning to migrate to 2k5. I was thinking that this is the perfect
opportunity to fix all the weaknesses we have had in our data model for
the longest: primary keys and foreign keys with different names, use of
character columns for boolean fields, use of integer columns for
toggles, no referential integrity, etc.
So, even if I create my Utopian perfect data model and...
|
by: chaitu |
last post by:
Hi guys,
I've written a parallel build program (in Perl) that takes a
pre-computed dependency tree of many projects in 2 visual studio .net
2003 solution (.sln) files here at my company, and builds projects at a
same level of dependency parallelly.
While doing this, sometimes I get "Microsoft Visual Studio experienced
some errors and needs to close" pop-up (which was gone after I disabled
error-reporting for programs from Control...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |