Using ini-files with VB 6.0

2020-03-30 01:44发布

问题:

I must be getting daft, but I can't seem to find how to read old-fashioned ini files with VB 6.0. All I can seem to find is about reading from and writing to the registry. Can someone push me in the right direction? Mind you, I am not a programmer, just a hobbyist trying to have some harmless fun with his computer, so please don't be to harsh when you point out the bleedin' obvious.

回答1:

See the top answer on this thread. Nope, it's no different in VB! :-)



回答2:

Use the GetPrivateProfile* functions. Some examples of how to do this with a Declare statement are here:

  • codeguru
  • vbforums


标签: vb6