Hi Petr,

> Maybe  I  wrong, but it is not work properly


> hbmk2 -dyn something.prg

*************

hbmk2 -nohbp something.prg  - generate error

hbmk: Processing configuration: D:\harbour-bin\harbour-msvc8\bin\hbmk.cfg

Error F0034  Bad command line option 'no'


It's a small bug in -nohbp handling which I'll fix ASAP, but -dyn doesn't
exist
please try with -hbdyn.

Another question

hbmk2 -hbdyn something.prg generate DLL,

but how I can use a functions from DLL


> =========

something.prg

=========

FUNCTION Hello()

RETURN "Hello From Dll!!"

=========


> =========

test1.prg

=========

PROCEDURE main()

LOCAL dyn

       dyn := hb_libLoad("test.dll")

       IF ! Hb_IsNil( dyn )

                ? hb_libDo( "HELLO" )

       ENDIF

=========

Result is NIL


> Possibly I  missed out something?


I'm afraid I don't know... I've added this feature in the hope
that those who need/understand/use it will help fixing the
remaining details. I've never seen such .dll work in the life
of Harbour, at least on my machine.

You can use -trace or -traceonly to get the exact commands
and tweak them until it works. Probably hbmaindllp lib is needed
somewhere in the process.

Brgds,
Viktor
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to