Programming/C Win32 MFC2010.09.27 22:00
머 언젠간 쓸일이 있겠지 -_-


GetPrivateProfileString()

[링크 : http://en.wikipedia.org/wiki/INI_file]
    [링크 : http://msdn.microsoft.com/en-us/library/ms724353%28VS.85%29.aspx]
Posted by 구차니

댓글을 달아 주세요

  1. Function Description
    GetPrivateProfileInt Retrieves an integer associated with a key in the specified section of an initialization file.
    GetPrivateProfileSection Retrieves all the keys and values for the specified section of an initialization file.
    GetPrivateProfileSectionNames Retrieves the names of all sections in an initialization file.
    GetPrivateProfileString Retrieves a string from the specified section in an initialization file.
    GetPrivateProfileStruct Retrieves the data associated with a key in the specified section of an initialization file.
    GetProfileInt Retrieves an integer from a key in the specified section of the Win.ini file.
    GetProfileSection Retrieves all the keys and values for the specified section of the Win.ini file.
    GetProfileString Retrieves the string associated with a key in the specified section of the Win.ini file.
    WritePrivateProfileSection Replaces the keys and values for the specified section in an initialization file.
    WritePrivateProfileString Copies a string into the specified section of an initialization file.
    WritePrivateProfileStruct Copies data into a key in the specified section of an initialization file.
    WriteProfileSection Replaces the contents of the specified section in the Win.ini file with specified keys and values.
    WriteProfileString Copies a string into the specified section of the Win.ini file.

    http://msdn.microsoft.com/en-us/library/ms724875%28v=VS.85%29.aspx

    레지스트리를 다루는 함수들인데... 리눅스에서는 저게 안되는.. -_-;;; 그래서 INI파싱 라이브러리를 사용해요.
    iniparser라고.. 있는데.. INI 파싱라이브러리로 한 6년째 사용중인데 문제 안일으키고 동작 잘하네요. ㅎㅎ

    2010.09.28 10:18 [ ADDR : EDIT/ DEL : REPLY ]
    • 리눅스에서는 readline() 함수로 읽은다음 숫자다음 =를 찾아내곤했는데 라이브러리가 있었군요!
      다음에 쓸기회가 생기면 써보겠지만 음..

      리눅스에서 개발이라면 다국어에서 po(gettext)를 써볼려구요 ㅎ 부디 ini 파싱할일이 안 생기기를 빌어야죠 ㅋ

      2010.09.28 10:58 신고 [ ADDR : EDIT/ DEL ]