Declaring & Calling Win32 API


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Declaring & Calling Win32 API

  1. #1
    Gerry Guest

    Declaring & Calling Win32 API


    Hi,

    How do I declare the two following functions in Win32 API?

    WritePrivateProfileString
    GetPrivateProfileString

    and How could I call these functions?

    Thanks



  2. #2
    Keith Roe Guest

    Re: Declaring & Calling Win32 API


    I performed a search at www.codehound.com and found the following article
    (http://www.vbwm.com/art_1997/art_ini.htm) which seems to be pretty good
    for what you might need. It is written in VB4, but you should have little
    problem converting.

    "Gerry " <xvoyager@hotmail.com> wrote:
    >
    >Hi,
    >
    >How do I declare the two following functions in Win32 API?
    >
    >WritePrivateProfileString
    >GetPrivateProfileString
    >
    >and How could I call these functions?
    >
    >Thanks
    >
    >



  3. #3
    Keith Roe Guest

    Re: Declaring & Calling Win32 API


    I performed a search at www.codehound.com and found the following article
    (http://www.vbwm.com/art_1997/art_ini.htm) which seems to be pretty good
    for what you might need. It is written in VB4, but you should have little
    problem converting.

    "Gerry " <xvoyager@hotmail.com> wrote:
    >
    >Hi,
    >
    >How do I declare the two following functions in Win32 API?
    >
    >WritePrivateProfileString
    >GetPrivateProfileString
    >
    >and How could I call these functions?
    >
    >Thanks
    >
    >



  4. #4
    Larry Rebich Guest

    Re: Declaring & Calling Win32 API

    Gerry,

    It appears that you are planning to read and write to an Ini file. You may
    want to look at:

    ' Name: CINIFile (CINIFILE.CLS)
    ' Type: Utility API wrapper class
    ' Description: An "object-oriented" approach to using Windows INI
    files, with some
    ' useful additions.
    '
    ' Author: Klaus H. Probst [kprobst@vbbox.com]
    ' URL: http://www.vbbox.com/

    Karl has encapsulated reading and writing to an Ini file in a class
    module...

    Cheers,
    Larry Rebich

    More tips link to:
    http://www.buygold.net/tips.html

    Please:
    No personal e-mail questions :-)


    "Gerry " <xvoyager@hotmail.com> wrote in message
    news:3a91aeca$2@news.devx.com...
    >
    > Hi,
    >
    > How do I declare the two following functions in Win32 API?
    >
    > WritePrivateProfileString
    > GetPrivateProfileString
    >
    > and How could I call these functions?
    >
    > Thanks
    >
    >




  5. #5
    Larry Rebich Guest

    Re: Declaring & Calling Win32 API

    Gerry,

    It appears that you are planning to read and write to an Ini file. You may
    want to look at:

    ' Name: CINIFile (CINIFILE.CLS)
    ' Type: Utility API wrapper class
    ' Description: An "object-oriented" approach to using Windows INI
    files, with some
    ' useful additions.
    '
    ' Author: Klaus H. Probst [kprobst@vbbox.com]
    ' URL: http://www.vbbox.com/

    Karl has encapsulated reading and writing to an Ini file in a class
    module...

    Cheers,
    Larry Rebich

    More tips link to:
    http://www.buygold.net/tips.html

    Please:
    No personal e-mail questions :-)


    "Gerry " <xvoyager@hotmail.com> wrote in message
    news:3a91aeca$2@news.devx.com...
    >
    > Hi,
    >
    > How do I declare the two following functions in Win32 API?
    >
    > WritePrivateProfileString
    > GetPrivateProfileString
    >
    > and How could I call these functions?
    >
    > Thanks
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center