VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



PhoneBook stored in XML

by Justin Largey (2 Submissions)
Category: Internet/HTML
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

This code is an ActiveX DLL that encapsulates the functionality of a phone book. It can be used to manage phone book data such as a person's information and the telephone numbers. The data that is stored in the Phonebook component can then be stored to an XML file using the MS XML Parser. This can component can then read the XML file using the MS XML parser into the component's properties. There is an object hierarchy in place that lets any user of this DLL loop through all the phone numbers of a single person and/or loop through all the people in the phonebook.

Assumes
First of all, I have only uploaded the DLL. There is no user interface that comes with this code. I made a sample project using this DLL (look at picture). The reason I haven't uploaded that is because of the use of third party controls in that application. The main exercise in this application was to familiarize myself with the XML parser. This is my first time using it so if anyone has any better suggestions on how to save and load the XML data into the objects please tell me. Please note: I will upload a user interface that will be using this DLL soon. So if you're looking at how this DLL can be used, an example will be provided shortly.
API Declarations
I am using the following API declaration.
Private Declare Function CoCreateGuid Lib "OLE32.DLL" (pGuid As GUID) As Long
This function generates a GUID that can be used as an ID for my objects.

Rate PhoneBook stored in XML

Upload

Download this snippet    Add to My Saved Code

PhoneBook stored in XML Comments

No comments have been posted about PhoneBook stored in XML. Why not be the first to post a comment about PhoneBook stored in XML.

Post your comment

Subject:
Message:
0/1000 characters