Window API

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nafly

    Window API

    Dear bro........

    I am creating DLL for Convert HTML to PDF.
    I need WIN32 API for some needs..
    Can any one help me ?

    Thanks...


  • =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?=

    #2
    RE: Window API


    "Nafly" wrote:
    Dear bro........
    >
    I am creating DLL for Convert HTML to PDF.
    I need WIN32 API for some needs..
    Can any one help me ?
    >
    Thanks...
    >
    Well, what do you want to know?

    To call a win32 method you typicall use something like

    [DllImport("user 32.dll")]
    public static extern <returntypeSome Method(<paramet ers>);

    and call the win32-method by calling SomeMethod(). SomeMethod must be the
    same methodname as found in the dll, or you need to set EntryPoint in
    DllImport. The tricky bit may be to find out what to put as parameters.
    http://www.pinvoke.net may help you out with signatures





    --
    Happy Coding!
    Morten Wennevik [C# MVP]

    Comment

    Working...