Solved

windows fax service job id

Posted on 2004-04-12
3
391 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 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

617 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