
VB6, WINAPI and .INI files - Please help if you can
Hi
I've downloaded an example of how to create an INI file with VB6.0 from
http://www.*-*-*.com/ . I've managed to create a INI file with great success,
but I don't understand how to retrieve the data inside the INI file I've
created:-
Quote:
>>lngResult = GetPrivateProfileString(txtHeading, txtKey, strFileName,
strResult, Len(strResult), strFilename)
where lngResult has been declared as long, strResult as string * 50 and
strFileName is the name of the .INI file, eg. "C:\Test.ini" (strFileName has
been declares as String)
What I don't understand is the "Len(strResult) part, as well as the
strResult part. I've tried VB6 help, BUT was very unsuccesful. There is no
mention whatsoever as how to use the WINAPI for such a purpose (no mention
of the WINAPI actually, if I'm not mistaken).
Sorry if this is a stupid question, but I'm relatively new to the whole VB
programming language :)
Thankyou very much in advance!!!!!
--
Happy Flying!
Tinus Blaauw
Trans Africa Airlines Trainer Captain
http://www.*-*-*.com/
ICQ: 4676979
--
Happy Flying!
Tinus Blaauw
Trans Africa Airlines Trainer Captain
http://www.*-*-*.com/
ICQ: 4676979