• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 776
  • Last Modified:

GetPrivateProfileInt

How to use API GetPrivateProfileInt for INI files ? Canyou give any sample?
0
devayani
Asked:
devayani
1 Solution
 
jkrCommented:
If you have e.g.

c:\myapp\test.ini

[test1]
value1=2


you can retrieve it using

int nVal;
        nVal   =     GetPrivateProfileInt("test1",
                                    "value1",
                                  0,
                                    "c:\\myapp\\test.ini");


Feel free to ask if you need more information!


0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now