Thanks Viktor and sorry,
I read your help but I don't know why not worked. Too many new things for my!
Now is Ok and I've solved my print problem. ;)
Thanks a lot to all and tomorrow more. :)
Xavi
Viktor Szakáts escribió:
Hi Xavi,
On Wed, Apr 1, 2009 at 10:59 AM, Xavi <[email protected]
<mailto:[email protected]>> wrote:
Sorry for newbie questions.
How do I add another directory to search Libs hbmk2 for gcc?
gcc ... -LD:/Qt/harbour/lib and -LD:/Qt/2009.01/qt/lib ...
Same way:
hbmk2 ... -LD:/Qt/harbour/lib -LD:/Qt/2009.01/qt/lib
Another topic
In contrib/hbwin/wapi_commctrl.c line 784 .-
hwnd = ( HWND ) hb_parnint( 1 );
It should be .-
hwnd = wapi_par_HWND( 1 );
to avoid gcc warning.
I'll commit a fix for this plus some more minor issues in this file.
Brgds,
Viktor
------------------------------------------------------------------------
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour
Procedure Main( cFileHtml )
QT_qapplication()
PrintHTML( MemoRead( cFileHtml ) )
return
#include "QPrinter"
#include "QTextDocument"
#include "hbapi.h"
HB_FUNC( PRINTHTML )
{
QPrinter printer;
QTextDocument textDocument;
textDocument.setHtml( hb_parc(1) );
textDocument.print(&printer);
}
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour