stand alone desktop application with database integrated? xml?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • confused1234
    New Member
    • Sep 2007
    • 23

    stand alone desktop application with database integrated? xml?

    hi i want to make a stand alone exe that has database functionality.

    I have thought about using an xml file as the database, but is their a way that i can bundle the xml file into the exe somehow????

    or does the xml file have to be seperate?
    if so how can i stop people editing it?

    Thanks for your help
  • balame2004
    New Member
    • Mar 2008
    • 142

    #2
    Originally posted by confused1234
    hi i want to make a stand alone exe that has database functionality.

    I have thought about using an xml file as the database, but is their a way that i can bundle the xml file into the exe somehow????

    or does the xml file have to be seperate?
    if so how can i stop people editing it?

    Thanks for your help

    Hi,

    I am able to understand your problem.

    You can add your xml file as embeded resource in .net project. So you no need to bundle the xml file with you project.

    1.Add you xml file by using project solution explorer.
    Right click on project -> Add Existing item - > Add xml file.
    2.Make it as Embeded Resource
    Right click on the xml file,select properties and set Build Action as embeded resource.

    3.Accessing embeded xml file.


    Cheers,
    Balaji U

    Comment

    • Shashi Sadasivan
      Recognized Expert Top Contributor
      • Aug 2007
      • 1435

      #3
      Read about Isolated storage.
      This specific section allows the file to be stored in a location accessible by the application only.
      When the application starts check for the file in the Isolated storage and create it if it dosent exist.

      Only the application has rights to its own Isolated storage (not sure if a user can physically browse and edit the file, which I presume shouldnt be a problem)
      But an external application by no means can access that file.

      Comment

      Working...