Solved

windows fax service job id

Posted on 2004-04-12
3
386 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

8 Experts available now in Live!

Get 1:1 Help Now