Solved

windows fax service job id

Posted on 2004-04-12
3
387 Views
Last Modified: 2006-11-17
hi expert,

l'm using .Net 1.1 and C#. l'm writing fax client that using Windows XP Fax Service Extended COM API.i do Faxdocument.submit and return job id with 144612306415010325. but when register server event OnJobChanged, job id pass as parameter is 201c420668231ee. why its differ from above ? when i go to fax console and open the properties of that job. it's job id also 201c420668231ee. then what is job id return from Faxdocument.submit ?

regards
eddie
0
Comment
Question by:Explorer060599
  • 2
3 Comments
 
LVL 3

Expert Comment

by:int_20h
ID: 10808940
One is hex and the other is in Decimal notation.  However, I did the convertion and it's still wrong!
144612306415010325  == 201C42062044215
144612306490372590  == 201C420668231EE

Are you sure about the job id you get from Faxdocument.submit ?
0
 

Author Comment

by:Explorer060599
ID: 10810286
i think the number is wrong, but nevermind as long as you know the format. can you please guilde me how to convert from hex to decimal or vice versa in C# ?
0
 
LVL 3

Accepted Solution

by:
int_20h earned 125 total points
ID: 10810426
I don't know how to convert decimal string to hex string in one shot, but here are the way to convert them to number and then to string.  Note I use Int64 since you the job id you get is pretty big!

To Convert from decimal to hex:
-------------------------------------
string strdecimal = "2434522";
Int64 number = Int64.Parse(strdecimal);
string hex = number.ToString('x');

or

string str = System.Convert.ToString(number, 16);

To Convert from hex to decimal:
-------------------------------------
Int64 number = Convert.ToInt64(hexString.Trim(), 16);
string strdecimal = number.ToString();
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now