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

Post Reply
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

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

Post 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?
Regards

G. N. Rao.
Hyderabad, India
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Please review samples\dlls\c_lang\32BITS\
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post 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 ?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post by nageswaragunupudi »

in fact there is not file with extention .c in sample folder or any of its subfolders
Regards

G. N. Rao.
Hyderabad, India
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Post 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.
Regards

G. N. Rao.
Hyderabad, India
Post Reply