CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    59

    How do I create an API?

    I need to develop some functionilty for my usercontrol that I am building. My boss wants it in an API call. I never used API calls before, but know a little about them. Can someone point me to a good referernces or show my some sample code.


    Thank you
    Raistlin


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: How do I create an API?

    Go to
    http://www.allapi.net/

    You'' find there all available API that you can use in VB

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: How do I create an API?

    You want your control to respond to custom messages?

    This requires subclassing, to intercept the message and - for your own custom messages, use of the RegisterWindowsMessage() API.

    Your best bet is to download the source code for the MCI Hotkey control from http://www.merrioncomputing.com/Download/index.htm as this example registers a new windows message and then shows how to intercept it in the VB_WindowProc() subroutine.

    HTH,
    Duncan

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

  4. #4
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    59

    Re: How do I create an API?

    Thank you for the heads up!!
    Raistlin


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured