Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to generate a DLL from a C file in Turbo C

Status
Not open for further replies.

carolino

Technical User
May 15, 2009
1
BR
Does someone knows how to generate a DLL from a C file in Turbo C ?
Thank you.

Adriano Carolino.
 
If you meant Turbo C 2.0 it is impossible because
it doesn't support Windows. If you have Windows
supported Turbo C++ series you can generate
DLL for 16 bit Windows. It is very easy because
IDE supports it. Borland C++ and C++ Builder
series support both 16 bit and 32 bit DLL ( win32
or win32s ). It's also very easy if you use IDE.

Hee S. Chung
heesc@netian.com
 
Well... the ONLY thing i know you can do is to use the an Windows API package for Turbo C to compile your program.

You have to use a DLLMain as main function instead the regular C main function and use (e.g) a DEF file to specify the functions exported by the library. This would be the general idea, i am not sure if you are asking about compiler and linking options to generate that DLL...

You can find the best information about DLL's on MSDN page Dynamic-Link Libraries Overview.

Good luck! Nosferatu
We are what we eat...
There's no such thing as free meal...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top