?
Solved

windows fax service job id

Posted on 2004-04-12
3
Medium Priority
?
392 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

719 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