help on windows

Jarrett Billingsley kb3ctd2 at yahoo.com
Tue Jun 5 12:53:36 PDT 2007


"newbie" <newbie at dummy.com> wrote in message 
news:f44e81$1pg1$1 at digitalmars.com...
> hi all,
>
> can anybody tell me how to translate a callback and the dialog stuff to D?
> i searched, but could not find a sample code on how to deal with that 
> dialog stuff.

Any callback functions that you send to the Windows API just have to be 
marked as extern(Windows).  Furthermore the "CALLBACK" macro a lot of times 
doesn't mean anything, so for example:

extern(Windows) BOOL OnConnect( PCONNECTION pConnection )
{
...
}

That's about it.  Everything else maps pretty straightforwardly into D. 




More information about the Digitalmars-d-learn mailing list