Search found 90 matches

by Patrizio
Wed Feb 17, 2010 11:46 am
Forum: FiveWin for Harbour/xHarbour
Topic: Calculation from Font-Size (pt) to Pixel ?
Replies: 4
Views: 1526

Re: Calculation from Font-Size (pt) to Pixel ?

With

Code: Select all

oFont := TFont():New( "Arial",21,-47,.F.,.T.,0,0,0,.T..T.)
oSay:SetColor( 16777215, 128 )
The preview say Size: 33 x 92
by Patrizio
Wed Feb 17, 2010 11:33 am
Forum: FiveWin for Harbour/xHarbour
Topic: Calculation from Font-Size (pt) to Pixel ?
Replies: 4
Views: 1526

Re: Calculation from Font-Size (pt) to Pixel ?

It's more complicated.

You need to know DPI (x or y) of the device (screen in this case) for convert the two values.

Example
FontSize px = ?
FontSize pt = 14
DPI = 96 (standard screen dpi resolution)
Point in a inch = 72

FontSize (in px) = FontSize(in pt) * DpiX / 72 = 14 * 96 / 72 = 18.667 px
by Patrizio
Wed Feb 10, 2010 8:14 am
Forum: FiveWin for Harbour/xHarbour
Topic: Timers and loops
Replies: 52
Views: 10190

Re: Timers and loops

Anserkk, sorry i use xHarbour commercial.

Try to link vmmt.lib.

If you download Explorer Lib http://codigo-base.blogspot.com/search/ ... orer%20Lib you can see all the function provide by a lib and seek the lib to link for undefined function like this :wink:
by Patrizio
Tue Feb 09, 2010 4:28 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Timers and loops
Replies: 52
Views: 10190

Re: Timers and loops

Hi, xHarbour VmMt.Lib contains all the missing MultiThread related functions HB_MUTEXCREATE STARTTHREAD WAITFORTHREADS MUTEXLOCK GETTHREADID GETSYSTEMTHREADID MUTEXUNLOCK Unfortunately when I compile, I am still getting Unresolved Externals calls from VmMt.Lib to the following functions __endthread...
by Patrizio
Tue Feb 09, 2010 10:30 am
Forum: FiveWin for Harbour/xHarbour
Topic: Timers and loops
Replies: 52
Views: 10190

Re: Timers and loops

Dear Mr.Patrizio, Thanks for the sample. Which xHarbour lib is to be added. I am getting unresolved external You must use the lib with the sufix "MT" when they are present... i see on my linker log this: "OptGMT.lib" "xhbmt.lib" "dbfmt.lib" "nsxmt.lib&qu...
by Patrizio
Tue Feb 09, 2010 8:07 am
Forum: FiveWin for Harbour/xHarbour
Topic: Timers and loops
Replies: 52
Views: 10190

Re: Timers and loops

Patrizio, Have you tried to use mt with FiveWin ? :-) mt should work fine except for some GUI components (modal dialog boxes) Antonio, i just read your first post in this thread: http://forums.fivetechsupport.com/viewtopic.php?f=3&t=10439&hilit=multithread Once there is a good support for t...
by Patrizio
Mon Feb 08, 2010 10:31 am
Forum: FiveWin for Harbour/xHarbour
Topic: Timers and loops
Replies: 52
Views: 10190

Re: Timers and loops

Enrico Maria Giordano wrote:No, other apps don't stop. Maybe I can use threads but I'm not familiar with them.

EMG
You can't use mt with FiveWin :(
by Patrizio
Mon Feb 08, 2010 10:27 am
Forum: FiveWin for Harbour/xHarbour
Topic: Urgent : ZIP - some more questions
Replies: 14
Views: 3338

Re: Urgent : ZIP

Hello everybody, I did some test with linking the libraries xhbzîp.lib and xhbzipdll.lib. Now I got no errors anymore while compiling and linking. This is the test I tried : ZipFiles := hb_GetFilesInZip("C:\TEST.ZIP") hb_UnZipFile("C:\Test.Zip",,,,"C:\UNZIP\",ZipFiles,...
by Patrizio
Wed Feb 03, 2010 8:16 am
Forum: FiveWin for Harbour/xHarbour
Topic: How to identify WindowState
Replies: 11
Views: 2250

Re: How to identify WindowState

According to me the disadvantage of using aMinMaxInfo is that it requires me to calculate the height and width in pixels. In future, every time I need to alter the window size, I will have to recalculate the height and width again. Whereas using the STYLE, I need not bother about it. I don't use re...
by Patrizio
Tue Jan 26, 2010 10:12 am
Forum: FiveWin for Harbour/xHarbour
Topic: Memory error with FiveWin + xHarbour.com
Replies: 14
Views: 5652

Re: Memory error with FiveWin + xHarbour.com

Antonio, I found the problem :D The linker command line generated by xBuilderW for a console application is different by the command line generated for a GUI application with FiveWin. xlink.exe <omissis> MyPrg.obj "xhb.lib"  ... <omissis> xlink.exe <omissis> MyPrg.obj "FiveHCM.lib&quo...
by Patrizio
Fri Jan 22, 2010 8:04 am
Forum: FiveWin for Harbour/xHarbour
Topic: Memory error with FiveWin + xHarbour.com
Replies: 14
Views: 5652

Re: Memory error with FiveWin + xHarbour.com

No Antonio, VC9: Microsoft Visual C++ 2008 Express Edition. Errors i'm getting: LINK : fatal error LNK1104: impossibile aprire il file 'LIBC.lib' I read on msdn that this library is the single-thread version and VC9 use only LIBCMT.LIB. I'm getting the LIBC.lib from an older version of Visual C++. F...
by Patrizio
Thu Jan 21, 2010 5:05 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Memory error with FiveWin + xHarbour.com
Replies: 14
Views: 5652

Re: Memory error with FiveWin + xHarbour.com

Antonio With xHarbour-v1.21.6658-for-BorlandC_v5.5.exe download from free.xharbour.com and BCC55 and FiveWin the program it's ok, crash at 2 giga. With xHarbour-v1.21.6658-for-Microsoft_VisualC_v9.exe and VC9 and FiveWin the program it's ok, crash at 2 giga. VC9 doesn't have LIBC.LIB, I use a old li...
by Patrizio
Thu Jan 21, 2010 3:54 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Memory error with FiveWin + xHarbour.com
Replies: 14
Views: 5652

Re: Memory error with FiveWin + xHarbour.com

You should be able to use Microsoft C with xHarbour commercial. It is the one we use here for xHarbour commercial users :-) Antonio, what version of Microsoft C do you use? I try with VC9 and have some errors in linking. Fafi, do you know the difference between the xHarbour commercial version and f...
by Patrizio
Thu Jan 21, 2010 10:03 am
Forum: FiveWin for Harbour/xHarbour
Topic: Memory error with FiveWin + xHarbour.com
Replies: 14
Views: 5652

Re: Memory error with FiveWin + xHarbour.com

Thansk Antonio e Fafi, i'll try in this way. Regarding the difference between console mode and FWH mode, keep in mind that a simple sentence like @ ..., ... SAY ... builds a complete Windows control in FWH, and in console mode just paints a text. So the FWH version will always consume more memory. A...
by Patrizio
Thu Jan 21, 2010 8:41 am
Forum: FiveWin for Harbour/xHarbour
Topic: Memory error with FiveWin + xHarbour.com
Replies: 14
Views: 5652

Re: Memory error with FiveWin + xHarbour.com

Antonio, I tried to compile with another c compiler and xHarbour.com but I had a lot of problems. Trying to get a solution for my trouble, I found this note in xharbour.com documentation: You can NOT use any C Compiler other than xCC if you use xHarbour.com’s xHarbour Builder. If you want to use ano...