Wrox Programmer Forums
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 6th, 2003, 03:35 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default INI file access

There used to be simple commands for reading/writing data from/to .INI files. Can anyone remind me what they are, and if they still exist. I can't find anything in MSDN.

Thanks,


John R Lick
JohnRLick@hotmail.com
__________________
John R Lick
JohnRLick@hotmail.com
 
Old November 6th, 2003, 03:38 PM
Registered User
 
Join Date: Jul 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ozymandias Send a message via Yahoo to Ozymandias
Default

I have a simple INI Class Module that does this, if you'd like to look at it. It has the API functions in it.



Andrew Cooper
aecooper@earthlink.net
 
Old November 6th, 2003, 03:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 101
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jlick
Default

That would be great!!! Thank you Andrew.


John R Lick
JohnRLick@hotmail.com
 
Old November 6th, 2003, 03:53 PM
Registered User
 
Join Date: Jul 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ozymandias Send a message via Yahoo to Ozymandias
Default

Sent the file to your hotmail addy.



Andrew Cooper
aecooper@earthlink.net
 
Old November 7th, 2003, 05:11 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 231
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The actual API call's you need are GetPrivateProfileSection, GetPrivateProfileInt and GetPrivateProfileString for reading from an INI file and WritePrivateProfileSection and WritePrivateProfileString to write to an INI file.

Regards
Owain Williams





Similar Threads
Thread Thread Starter Forum Replies Last Post
Read data from ini file nbryson VB How-To 5 April 2nd, 2015 05:14 AM
Reading an INI file in C# @shish C# 1 April 1st, 2015 04:00 AM
Reading ini file in XSL ROCXY XSLT 3 January 9th, 2007 04:37 AM
ini file ptop C++ Programming 0 January 30th, 2006 06:29 AM
How to Read from INI file alen Pro VB 6 2 September 3rd, 2004 06:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.