Max Samuha wrote: > > Anyway, even if you include the file, the definition of WinMain will > not be found because of mangling. I attached the code that uses a > function pointer (i called it delegate mistakingly). you might try: extern(C) WinMain But that's just a wild guess