How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
turtle_2
User
Posts: 8
Joined: Fri Feb 11, 2011 2:41 am

How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by turtle_2 » Fri Feb 11, 2011 3:31 am

Hi
First, your products is good to use.
Last year I used Windows Messag(just like EXT_MSG_START, EXT_MSG_END in TXC_Const.pas)in your product TIFF-XChange(our company buy it). Now I want to use Windows Messag of PDF-XChange. I don't know if there is Windows Messag in PDF-XChange too.
Bellow, it's my Delphi code to use Windows Messag of TIFF-XChange to implement what function I want.
//-------------------------------------
procedure TForm1.FormCreate(Sender: TObject);
begin
MsgDocStartID := RegisterWindowMessage(EXT_MSG_START);
MsgDocEndID := RegisterWindowMessage(EXT_MSG_END);
end;

procedure TForm1.WndProc(var Message: TMessage);
var
AReg:TRegistry;
BuffID:string;
begin
inherited;
if Message.Msg = MsgDocStartID then
begin
BuffID := IntToHex(Message.LParam,8);
Memo1.Lines.Add(Format('Print Process[%s] Start...',[BuffID]));
AReg:= TRegistry.Create;
AReg.RootKey := HKEY_CURRENT_USER;
try
if AReg.OpenKey(EXT_REG_KEY+'\'+BuffID, False) then
begin
AReg.WriteString(EXT_FILENAME,'c:\1.tif');
AReg.WriteString(EXT_PROTECTION_KEY,'TXS32-*****-*****');
AReg.WriteString(EXT_PROTECTION_DEVCODE,'*****-*****');
end
else
Memo1.Lines.Add('Read Error');
finally
AReg.Free;
end;
end
else if Message.Msg = MsgDocEndID then
begin
Memo1.Lines.Add(Format('Print Process[%d] End',[Message.LParam]));
end
end;
//-------------------------------------

Please reply me soon, thank u.

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14154
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by Tracker Supp-Stefan » Fri Feb 11, 2011 1:11 pm

Hello turtle_2,

I have passed your question to the developer that is best able to answer, and he will post his comments in this topic a bit later today.

As this is a Driver API SDK question, lets keep all communication in this topic, and close the duplicate one in the TIFF XChange forums.

Best,
Stefan

turtle_2
User
Posts: 8
Joined: Fri Feb 11, 2011 2:41 am

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by turtle_2 » Sat Feb 12, 2011 1:26 am

Thank U :D

turtle_2
User
Posts: 8
Joined: Fri Feb 11, 2011 2:41 am

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by turtle_2 » Mon Feb 14, 2011 1:21 am

Hi Tracker Supp-Stefan, :roll:
I'm waiting for your reply online during this week.

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14154
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by Tracker Supp-Stefan » Mon Feb 14, 2011 1:15 pm

Hello turtle_2,

Apologies for the delay.
Our devs are really busy, but I have requested once again assistance with this one, and we should reply to it promptly.

Regards,
Stefan

Ivan - Tracker Software
Site Admin
Posts: 3630
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by Ivan - Tracker Software » Mon Feb 14, 2011 7:45 pm

PDF-XChange driver API doesn't use Windows messages anymore. Instead it is based on COM objects. Please download and check documentation/samples.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

turtle_2
User
Posts: 8
Joined: Fri Feb 11, 2011 2:41 am

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by turtle_2 » Tue Feb 15, 2011 1:14 am

I see.
Before I posted this question, I checked the documentation/samples very carefully, but can't find what I need about this qustion.
But why the product TIFF-XChange SDK provided the the function which used Windows messages ? In my mind, the two products are similar.

Regards
Turtle_2

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14154
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by Tracker Supp-Stefan » Tue Feb 15, 2011 1:31 pm

Hello Turtle_2,

They are similar but not the same :)
And as we are now working on a new version for the printing drivers - we are introducing some changes to better accommodate the extended set of features we are providing.

Also TIFF XChange was developed some time ago, and the latest product in the filed of "printing" to image we have is the Raster XChange SDK, so you could expect more improvements there than in TIFF XChange.

Best,
Stefan

turtle_2
User
Posts: 8
Joined: Fri Feb 11, 2011 2:41 am

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by turtle_2 » Wed Feb 16, 2011 1:33 am

Thank U, Stefan. :roll:

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14154
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by Tracker Supp-Stefan » Wed Feb 16, 2011 12:16 pm

Pleasure to help Turtle_2 :)

Regards,
Stefan

turtle_2
User
Posts: 8
Joined: Fri Feb 11, 2011 2:41 am

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by turtle_2 » Thu Feb 17, 2011 1:22 am

Later I will report my boss, and he will decide if buy your product.
Thanks a lot. I wish u a happy work day. :D

And I want to make friends with u, I'm Chinese, boy, delphi Programmer, my email: chenxiaohui1015@126.com, if u agree, please mail to me.
I like make friends worldwide.

Regards
Turtle_2

John - Tracker Supp
Site Admin
Posts: 8205
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Re: How can I use Windows Messag of PDF-XChange(TIFF, WndProc)?

Post by John - Tracker Supp » Thu Feb 17, 2011 8:20 pm

:)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply