Results 1 to 4 of 4

Thread: API declaration??

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    API declaration??

    What is the syntax for API function declarations in C#?

    Can't find anything in MSDN (online or offline) that even mentions it.

    I don't live here any more.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

  3. #3

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: API declaration??

    mendthanks in advancehak

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Smile Re: API declaration??

    You can use the DllImportAttribute class in VB.NET as well, of course. It is more flexible than the Declare statement, and I believe the VB.NET compiler actually replaces Declare statements with DllImports in the IL code. "Declare" seems to be a holdover from VB6. Hmmm...
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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