Author Topic: Getting Points (Percentage) From TridLib.DLL  (Read 14544 times)

revdrmarsh

  • Newbie
  • *
  • Posts: 11
Getting Points (Percentage) From TridLib.DLL
« on: June 30, 2008, 06:54:03 PM »
I am using yet another scripting language with TridLib - Winbatch.  I have most everything working well.  The one thing I can't get to work is the TRID_GET_RES_POINTS(4) in TrID_GetInfo.  Both TRID_GET_RES_FILETYPE(2) and TRID_GET_RES_FILEEXT(3) both return nice string values in the buffer.  I get no string value in the buffer when I run TRID_GET_RES_POINTS(4).  Is this a standard string?  What should I expect it to look like?

Thanks

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: Getting Points (Percentage) From TridLib.DLL
« Reply #1 on: June 30, 2008, 06:59:28 PM »
Hi!

Numeric results are returned directly as the function return value.

revdrmarsh

  • Newbie
  • *
  • Posts: 11
Re: Getting Points (Percentage) From TridLib.DLL
« Reply #2 on: June 30, 2008, 07:18:51 PM »
I was just going to reply that in looking at the samples, I noticed points were returned in the return code.  So, next question is this: When I run an XLS file through the command line version, I get 3 return lines with percentages of 45.3%, 43.1% and 11.5%  When I run the dll, I get return codes of 31500, 30000 and 8000.  What conversion would I use to convert these integers to a floating point number to get the percentages?

Thanks

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: Getting Points (Percentage) From TridLib.DLL
« Reply #3 on: June 30, 2008, 07:22:57 PM »
That's just each points percentage in the total points sums of all results.
Ie: 8000 = 11.5% of (31500+30000+8000)

revdrmarsh

  • Newbie
  • *
  • Posts: 11
Re: Getting Points (Percentage) From TridLib.DLL
« Reply #4 on: June 30, 2008, 07:25:18 PM »
I was sitting here screwing around with the calculator and realized the simplicity of the system.

Thanks again!

Love the DLL!!