Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GetPrivateProfileString
Message
From
20/03/2000 06:29:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
GetPrivateProfileString
Miscellaneous
Thread ID:
00347792
Message ID:
00347792
Views:
38
I'm having a few problems with the GetPrivateProfileString function - yes, I know we should be using the registry.....

Declare Integer GetPrivateProfileString In Win32Api String, String, String, String @, Integer, String

and I'm calling it like this

x = Space(100)

? GetPrivateProfileString( "TestSection", "TestKey", "Default", @x, 100, "MyIni.Ini")

All it ever returns though is the default value. If I create the correct section and key value it never returns the contents of it.

Any Ideas?
regards

Ian
Next
Reply
Map
View

Click here to load this message in the networking platform