Results 1 to 5 of 5

Thread: api calls

  1. #1
    Join Date
    Apr 2004
    Posts
    173

    Unanswered: api calls

    can anybody point out a good reference to using api calls in access code.

  2. #2
    Join Date
    Mar 2004
    Location
    www.scirocco.ca
    Posts
    346
    Here is an example of a call to the API. This lets you get the cursor position.

    ----------------------------------------
    Public Type POINTAPI
    X As Long
    Y As Long
    End Type

    Public Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long
    ---------------------------------------
    Function GetCursorPoition() AS POINTAPI

    Dim tPOINT As POINTAPI

    GetCursorPoition = GetCursorPos(tPOINT)

    End Function
    http://www.scirocco.ca/images/banner...occobanner.gif

    Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!

    Or try our Ask An Expert service to answer any of your questions!

  3. #3
    Join Date
    Apr 2004
    Posts
    173

    api calls

    Thanks for the tip. I was wondering if there is a crossreference for what functions can be called from the API. I've seen some neat code that uses the API but it always makes me wonder where they found out what that function does. I.E. I found some code to get the current user name from an API function how can I figure out what API calls there are and their parameter and return types etc. Any help would be great -- thanks.

  4. #4
    Join Date
    Sep 2003
    Location
    Slovenia
    Posts
    18

  5. #5
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    I've found dev ashish's API calls on MVPS site site usefull

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •