Storing memory address as hex in an xml file
-
Basically what I want to do is store a memory address in hex format instead of decimal in an XmlAttribute value. Can I do that? This is how I want the xml to look:
<address name="type" value="0x16694E64" />
instead of:
<address name="type" value="376000100" />
Then in C# I have this:
int myAddress = Convert.ToInt32 (address.Attributes["value"].Value);
-
Basically what I want to do is store a memory address in hex format instead of decimal in an XmlAttribute value. Can I do that? This is how I want the xml to look:
<address name="type" value="0x16694E64" />
instead of:
<address name="type" value="376000100" />
Then in C# I have this:
int myAddress = Convert.ToInt32 (address.Attributes["value"].Value);
That's an int. An int has no format at all, decimal is just assumed. Use the overloaded ToString method to specify a hex format, or whatever else you like
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
That's an int. An int has no format at all, decimal is just assumed. Use the overloaded ToString method to specify a hex format, or whatever else you like
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Basically what I want to do is store a memory address in hex format instead of decimal in an XmlAttribute value. Can I do that? This is how I want the xml to look:
<address name="type" value="0x16694E64" />
instead of:
<address name="type" value="376000100" />
Then in C# I have this:
int myAddress = Convert.ToInt32 (address.Attributes["value"].Value);
-
riving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method
-
riving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method
what are you doing man? X|
-
riving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method
Just because someone helped a person who asked a specific question, doesn't mean he'll do your homework. Imagine what this forum would look like if every person with a question started to hijack threads ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
riving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method
-
riving license (class) +number: string (constructor) +renewelperiod: int (constructor) + GetLicenseInfo():void (mrthod) + CalculateLicensePrice(): double (method) + DisplayLicenseInfo() : void (method) Based on the above, create a program with the following requirement • GetLicenseInfo() method that input license number and renewal period from user. Display an information to the user either to renew the license for 1,2,3 or 5 years. • CalculateLicensePrice() method that will calculate price for driving license depends on the renewal period of 1,2,3 or 5 years. The renewal fee is RM30 per year • A method DisplayLicenseInfo() that will display each details including license number,renewal period and license price. Create an object and invoke necessary method
Ignore the others - I'll help you. Of course, you'll have to pay the daily rates my company charges, but what the hell - we'll throw in a years support contract for a very reasonable fee. We will expect an initial payment before work commences, but once we have the contract in place, we'll be good to go.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.