EXAMPLE CODE - XHARBOUR SELF CONTAINED DLL

Post Reply
LeeOsvald
Posts: 4
Joined: Sat Jan 20, 2007 1:14 pm

EXAMPLE CODE - XHARBOUR SELF CONTAINED DLL

Post by LeeOsvald »

Dear Antonio,

I need to create a SELF CONTAINED DLL ... a DLL with
the XHARBOUR ENGINE inside ... to be CALLED for my aplication .EXE.

Could you publish a FULL EXAMPLE about de CREATON...step by step..
of a XHARBOUR - SELF CONTAINED DLL.

I did read some messages throughout this FORUM but links
are broken... very old...

Thanks in advance.
Lee Osvald
osvaldobatalha@terra.com.br
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Lee,

Are you using xharbour with Borland or xHarbour.com (PellesC) ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
LeeOsvald
Posts: 4
Joined: Sat Jan 20, 2007 1:14 pm

thanks ... using both compilers ... and more...

Post by LeeOsvald »

Dear Antonio,

Thanks to reply ... you are the only source about such subject that I know.

I use both ... BORLAND C and PELLES C...
Now I am working with VISUAL XHARBOUR ...XCC = PELLES C.
but ...my main compiler is MS-VISUAL STUDIO C 6.

Such in this case, PELLES C - XCC wold be the best reference.

I would like to point that I tried to contact VXH - TECH SUPPORT but
I had no answer til now... after some e-mails during 3 weeks.

There are several developers with the same problem... also about other
kinds of DLLs..

I just have FRAGMENTS OF CODE ..BATCH FILES... etc...

Nothing really consistent...

FIVETECHSOFT FORUM and your HELP is my main source...

Lee Osvald

osvaldobatalha@terra.com.br
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Lee,

If you plan to use VXH code into the DLL then you should better ask VXH tech support as they will provide you valuable info,

You may also ask at the xharbour users mailing list,
regards, saludos

Antonio Linares
www.fivetechsoft.com
LeeOsvald
Posts: 4
Joined: Sat Jan 20, 2007 1:14 pm

Post by LeeOsvald »

Dear Antonio,

You are quite right ... about support... and I did it all ... course.
but after several e-mails and messages in FORUMS .. without answer
I decided to message you ...

I need other references... other options to solve my problem concern
DLL - SELF CONTAINED DLLs ...

Please ...give me your solution using XHARBOR and PELLES C ..
or even using BORLAND C ...

This will be my starting point to study in deep more about the subject...

If I have an example ... complete.. I will be able to explore
the CODE ...

My intention is to create a DLL ... a GRID ... a TABLE - DBF with INDEX...
...my EXE or DLL will call such DLL ...this way I would have
a DBF MANAGER to work with ...

If you give me some sample about that ... I will study in deep all the
code and I will complete my project here...

Please ... give me some light... cause I am alone in dark ..

Lee Osvald
osvaldobatalha@terra.com.br
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Lee,

FWH provides you the required batch files to build the DLL. Go to samples directory and type:

buildhd.bat tutor01
buildh.bat testdll

The first will create tutor01.dll and testdll.exe will use it. Please review tutor01.prg and testdll.prg source code

(1) fwh\samples\buildhd.bat has to be modified this way:
echo c0d32.obj + %hdir%\obj\b32\maindll.obj + > b32.bc

(2) You need Harbour maindll.obj. You may download it from here:
http://hyperupload.com/download/0208a58 ... l.obj.html
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply