FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to make 32-bit pure C-code DLLs?
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
How to make 32-bit pure C-code DLLs?
Posted: Sun Oct 28, 2007 03: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to make 32-bit pure C-code DLLs?
Posted: Sun Oct 28, 2007 06:27 AM

Please review samples\dlls\c_lang\32BITS\

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
How to make 32-bit pure C-code DLLs?
Posted: Sun Oct 28, 2007 08: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
How to make 32-bit pure C-code DLLs?
Posted: Sun Oct 28, 2007 08: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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
How to make 32-bit pure C-code DLLs?
Posted: Sun Oct 28, 2007 11:53 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
How to make 32-bit pure C-code DLLs?
Posted: Sun Oct 28, 2007 02: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

Continue the discussion