Print Page | Close Window

Repairing TCP client file from corrupted install

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2024
Printed Date: 06 May 25 at 7:19AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Repairing TCP client file from corrupted install
Posted By: Dan
Subject: Repairing TCP client file from corrupted install
Date Posted: 01 Nov 11 at 9:06PM
I'm trying to get the TCP service running and the C# client code appears to be corrupted from the install package

The file is:
C:\Program Files (x86)\Quick PDF Library\TCP\Client\CSharp\QuickPDFTCP0812.cs

All of the void return values are litterally "Error". For example starting on line 815 it says:

ErrorDAExtractPageText(int FileHandle, int PageRef, int Options)
        {
            byte[] P = EI(FileHandle);
            P = E(P, EI(PageRef));
            P = E(P, EI(Options));
        }

There are dozens of these Errors.

I want to get this working asap. Should I change these to:
Public void?

Thanks,
Dan



Replies:
Posted By: Dan
Date Posted: 01 Nov 11 at 9:38PM
I'm also getting errors with type IntPtr being passed into BitConverter.GetBytes. The error is: The best overloaded method match for 'System.BitConverter.GetBytes(double)' has some invalid arguments.

For example starting on ln 50:
        private byte[] EC(IntPtr Value)
        {
            ParmCount++;
            ParmTypes += "C";
            return BitConverter.GetBytes(Value);
        }

I have to change the return to:
return BitConverter.GetBytes((long)Value);

Is this a correct fix? I don't understand this code well enough to know all the implications.

Btw, I'm using VS 2010 in windows 7 64 bit with .Net 4.0.

Thanks,
Dan


Posted By: Dan
Date Posted: 01 Nov 11 at 9:48PM
I also found the need to change return on ln 170 from:

return 0;

to:

return (IntPtr)0;

Is this a correct fix?




Posted By: AndrewC
Date Posted: 02 Nov 11 at 8:40AM
Thanks for the feedback.  We are fixing and testing the import file. 


Posted By: Dan
Date Posted: 02 Nov 11 at 1:55PM
Do you have any timeframe when this will be ready?

Thanks,
Dan


Posted By: AndrewC
Date Posted: 03 Nov 11 at 9:18AM
We are looking into the problem.  It seems that there is a bit of work required to get it working.  It probably hasn't been working since the 8.11 release and no one has noticed.

The need for the TCP/IP has been considerably reduced now that we have released the full 64bit version of QPL.

Do you have a particular need or requirement for the TCP/IP version ?  We are wondering how many people are actually using the TCP/IP version these days ?

Andrew.


Posted By: Dan
Date Posted: 03 Nov 11 at 2:11PM
I would actually prefer to get the dll version working but am having problems so since I already had the TCP version working I tried to upgrade that.

I'm going to start a new thread with my issues trying to get the dll version working.

Thanks,
Dan

Edit: Here's the new thread: http://www.quickpdf.org/forum/topic2028_post8626.html#8626 - http://www.quickpdf.org/forum/topic2028_post8626.html#8626



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk