Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 6th, 2003, 03:35 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Sparks, NV, USA.
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
Reply With Quote
  #2 (permalink)  
Old November 6th, 2003, 03:38 PM
Registered User
 
Join Date: Jul 2003
Location: Morristown, TN, USA.
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
Reply With Quote
  #3 (permalink)  
Old November 6th, 2003, 03:40 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Sparks, NV, USA.
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
Reply With Quote
  #4 (permalink)  
Old November 6th, 2003, 03:53 PM
Registered User
 
Join Date: Jul 2003
Location: Morristown, TN, USA.
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
Reply With Quote
  #5 (permalink)  
Old November 7th, 2003, 05:11 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Cardiff, , United Kingdom.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:31 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.