Page 1 of 1

How to make 32-bit pure C-code DLLs?

Posted: Sun Oct 28, 2007 3:12 am
by nageswaragunupudi
I am using FWH 7.10 with xHarbour (provided by fw) and bcc55.

I write some computational intensive code in C and link with my xharbour applications.

But I have a need for creating pure C-code DLLs which can be either statically linked or dynamically loaded in my harbour applications as well as applications written in other languages.

Can any knowledgeable friend guide me how to create a 32 bit DLL with bcc55 that can be linked or dynamically loaded by a harbour program or any other 32-bit program, with a brief sample code, compilation and link switches please?

Posted: Sun Oct 28, 2007 6:27 am
by Antonio Linares
Please review samples\dlls\c_lang\32BITS\

Posted: Sun Oct 28, 2007 8:40 am
by nageswaragunupudi
Mr Antonio

Thanks. I see DLL32.DLL there, but I can not find Dllcode.c source file anywhere in FWH. Can you pls provide me the source file dllcode.c ?

Posted: Sun Oct 28, 2007 8:42 am
by nageswaragunupudi
in fact there is not file with extention .c in sample folder or any of its subfolders

Posted: Sun Oct 28, 2007 11:53 am
by Antonio Linares

Posted: Sun Oct 28, 2007 2:03 pm
by nageswaragunupudi
Mr Antonio

Thanks. With your help I am now making and using small DLLs.

I had to move the '#pragma argsused' from the first line to the line next to '#include <windows.h>' to avoid the warnings.

Thanks again.