EXAMPLE CODE - XHARBOUR SELF CONTAINED DLL

EXAMPLE CODE - XHARBOUR SELF CONTAINED DLL

Postby LeeOsvald » Tue Jan 30, 2007 3:17 pm

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
LeeOsvald
 
Posts: 4
Joined: Sat Jan 20, 2007 1:14 pm

Postby Antonio Linares » Tue Jan 30, 2007 5:00 pm

Lee,

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

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

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

Postby LeeOsvald » Tue Jan 30, 2007 5:40 pm

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
LeeOsvald
 
Posts: 4
Joined: Sat Jan 20, 2007 1:14 pm

Postby Antonio Linares » Tue Jan 30, 2007 6:05 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby LeeOsvald » Tue Jan 30, 2007 7:43 pm

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
LeeOsvald
 
Posts: 4
Joined: Sat Jan 20, 2007 1:14 pm

Postby Antonio Linares » Tue Jan 30, 2007 10:17 pm

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42078
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 41 guests