Thanks Mike.
INI seems much easier. I just looked it up and found the following. Is there
such a thing defined for XML as well? A function that would return the
immediate root element and so forth? Would be cool to have an XML because I
could write a DTD to validate it. Also, I hear XML could be made secure. I
am not sure how though.
Public Declare Function GetPrivateProfileString Lib "kernel32" _
Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal _
lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As _
String, ByVal nSize As Long, ByVal lpFileName As String) As Long
Dim LReturn As Long
Dim Suse1 As String
Dim sRetBuf As String
Dim iLenBuf As Integer
sRetBuf$ = String$(256, 0)
iLenBuf% = Len(sRetBuf$)
LReturn = GetPrivateProfileString("Settings", "dude", "", sRetBuf$,
iLenBuf%, "c:\replicator\Settings.ini")
Suse1 = Left$(sRetBuf, LReturn)
msgbox(suse1) ' Prints Ain't it a lovely day
[Settings]
dude=Ain't it a lovely day
> Depending on your needs a simple flat text file that is CSV or TAB
> deliminated should work nicely, or if you don't want to bother with file IO
[quoted text clipped - 28 lines]
> >
> > Vince
Mike Harrington - 07 Jan 2005 04:38 GMT
For XML you would have to use one of the MSXML libraries which would have to
be installed on the client's computer. Almost everyone has at least one
version running, but may not necessarily have the latest and greatest
(depends on the OS and what software they have installed). Generally I have
found use the least possible version (Windows 2000 and above comes with
MSXML 2.0). They're not as easy to work with as INI files, but once you get
used to it, it can be very powerful.
> Thanks Mike.
>
[quoted text clipped - 69 lines]
> > >
> > > Vince
Vince - 07 Jan 2005 04:45 GMT
Thanks for the info Mike. I'll stick with INI for now and read up on the XML
library for a future project. From the trends I observe, I think everything
in the future will be based on XML. I've also heard that the new version of
Windows (think it's 2005) uses XML libraries instead of the usual registry.
Vince
> For XML you would have to use one of the MSXML libraries which would have to
> be installed on the client's computer. Almost everyone has at least one
[quoted text clipped - 87 lines]
> > > >
> > > > Vince
Ralph - 07 Jan 2005 14:34 GMT
> Thanks for the info Mike. I'll stick with INI for now and read up on the XML
> library for a future project. From the trends I observe, I think everything
> in the future will be based on XML. I've also heard that the new version of
> Windows (think it's 2005) uses XML libraries instead of the usual registry.
>
> Vince
I have also heard that XML is going to replace SQLServer, Oracle and DB2. It
is going to be the primary media for all HiDef Wireless services, and will
eventually extend our lifetimes beyond 100+ years.
But then I don't necessary believe everything I hear.
-ralph