www.digitalmars.com         C & C++   DMDScript  

D - declaring DLL functions

reply "Giancarlo Bellido" <vicentico1 hotmail.com> writes:
i hate the way C++, includes dlls into a program, it is just too
complicated.
what about including the declaration in the same source like in pascal,
something like

type name (params..) lib "asd";

or

#library dfsd.dll
extern type name(params..) lib "asd";

so you don't have to include the .lib file into the linker, making it easier
to compile.
May 18 2003
parent "Walter" <walter digitalmars.com> writes:
Yeah, that would be better.

"Giancarlo Bellido" <vicentico1 hotmail.com> wrote in message
news:ba8fg3$pf9$1 digitaldaemon.com...
 i hate the way C++, includes dlls into a program, it is just too
 complicated.
 what about including the declaration in the same source like in pascal,
 something like

 type name (params..) lib "asd";

 or

 #library dfsd.dll
 extern type name(params..) lib "asd";

 so you don't have to include the .lib file into the linker, making it

 to compile.

May 18 2003