VB6, WINAPI and .INI files - Please help if you can 
Author Message
 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



Sat, 11 May 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

2. Reading and Writing to .ini files - help please.

3. ini file help please

4. please help me with .ini files

5. Please, please help - VB6 opening and reading a project mpp file

6. Newbie: Help Using WINAPI Get/SetScrollPos function in VB6

7. << -- WinAPI : FINDREPLACE - please help

8. WinAPI help, please!

9. << -- WinAPI : FINDREPLACE - please help

10. Internet via WINAPI: PLEASE HELP!

11. << -- WinAPI : FINDREPLACE - please help

12. Please help with WinAPI

 

 
Powered by phpBB® Forum Software