Video courtesy of FoundryMusic.
Author: Alvin A.
Code snippet to convert JobID from MS Fax API
Here’s a quick little code snippet which will convert a job ID into the correct format when you’re using the MS faxcomexlib.dll. This is needed because you’ll get different formats back from a ConnectedSubmit depending on whether your application is running on Windows XP or Windows 2003 Server. However, the format does not vary when you get status change events.
private string ConvertJobID(string jobID)
{
string hexJobId = string.Empty;
try
{
Int64 i = Convert.ToInt64(jobID);
//Match event handler format:
// hex number; lowercase;
// no leading zeroes;
// no "0x" or other prefix
hexJobId = i.ToString("x");
}
catch // If there's an exception,
// then the Job ID is already correct
{
hexJobId = jobID;
}
return hexJobId;
}
Pop vs. Soda vs. Coke
Here’s a site with a map showing the most popular name for a carbonated beverage by region of the U.S. Being from the Philadelphia area, I say ‘soda’, and really I’m surprised how many people use the term ‘coke’. I’m guessing that’s the popular term in the south because Coca Cola is out of Atlanta.