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

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

Postby nageswaragunupudi » Sun Oct 28, 2007 3:12 am

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
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Antonio Linares » Sun Oct 28, 2007 6:27 am

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42105
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby nageswaragunupudi » Sun Oct 28, 2007 8:40 am

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: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby nageswaragunupudi » Sun Oct 28, 2007 8:42 am

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
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby Antonio Linares » Sun Oct 28, 2007 11:53 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42105
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby nageswaragunupudi » Sun Oct 28, 2007 2:03 pm

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
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: asesormix and 68 guests