Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Where is the file read by GetPrivateProfilestring located?

Status
Not open for further replies.

weberm

Programmer
Dec 23, 2002
240
US
I have a VB3 program which uses GetPrivateProfileString to read an INI file containing the paths to data files it uses. The compiled version, which runs with the INI file in the same directory, has no problem finding the INI file but when I run it from within VB3 in debug mode, it complains about not being able to find it. I looked up the documentation and it seems to indicate it defaults to the Windows directory, so why does it work when compiled? [ponder]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top