How to use GetPrivateProfileString function ?

This is a discussion on How to use GetPrivateProfileString function ? within the C++ Programming forums, part of the General Programming Boards category; >> That's odd... I've noticed a couple of anomalies like that between Oct 2001 and the current stuff - all ...

  1. #16
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,702
    >>That's odd...
    I've noticed a couple of anomalies like that between Oct 2001 and the current stuff - all they have to do is maintain backwards compatibility

    The Core SDK download includes a current MSDN of the Win32 API. If your Oct 2001 MSDN came from a VC++ install, you'll still have to use it for help on CRT, MFC, ATL, the IDE, etc...
    If you already knew that, shame on you for using Oct 2001 docs

    So I'm not totally off-topic, here's the online reference bithub mentioned: GetPrivateProfileString()

    And post your actual code skywind so we can inspect it.

    gg
    Last edited by Codeplug; 10-07-2004 at 10:01 PM.

  2. #17
    Registered User
    Join Date
    Apr 2004
    Posts
    20
    Yeah, I've read the MSDN January 2004. If only they had a small example
    There is only one funtion in my program to response the WM_BNCLICKED event
    Code:
    UpdateData(true);
    MessageBox(.....);//It shows the input values
    char* pResult;
    GetPrivateProfileString(...........................);
    m_strResult=pResult;
    UpdateData(false);
    That's it.
    Last edited by skywing; 10-07-2004 at 10:09 PM.

  3. #18
    Registered User
    Join Date
    Apr 2004
    Posts
    20
    My God ! It works , it works !

    I don't know why but it works. What a day !

    Thanks a lot guys !

  4. #19
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,088
    I actually don't use MSDN all that much, and since we still program on VC++ 6.0, I'm not too worried about missing out on the new stuff.

    But you all are correct, the current version says it can be NULL, and you should definitely prefer the latest version to one that is three years old!

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 04:06 PM
  3. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 02:01 AM
  4. Replies: 28
    Last Post: 07-17-2006, 12:35 AM
  5. const at the end of a sub routine?
    By Kleid-0 in forum C++ Programming
    Replies: 14
    Last Post: 10-23-2005, 07:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21