conversion

XAML - Convert Value to Specific String?

Hey all, This should seem to be a fairly straightforward question, but I'm struggling a bit. I have a collection of objects that's I've bound to a Grid aling with a Series of GridViewColumns for each property of the object I'd like to display. One of the columns, however, is currently displaying as an int and I'd like to convert it ove...

MS SQL server - convert HEX string to integer

This answer to what looks like the same question: http://stackoverflow.com/questions/703019/sql-query-convert-integer-to-hex-and-hex-to-integer ..does not work for me. I am not able to go to a HEX string to an integer using MS SQL server 2005 CAST or CONVERT. Am I missing something trivial? I have searched extensively, and the best I ...

Unit Conversions! Ghz - ns - MHz - cycles

I am preparing for a units quiz and there are two kinds of conversions that have me stumped. Type one: What is length (in ns) of one cycle on a XXX computer? - In this case, XXX can be some MHz or Ghz, randomly. I am having trouble converting the cyles times. Example: What is length (in ns) of one cycle on a 50 MegaHertz (MHz) comput...

Is there a standard way to convert from container<Type1> to container<Type2> ?

I have two classes A and B, and an implicit conversion operator exists to go from one to the other, so that: A a; B b; b = a; // Works Is there a standard way to convert a std::list<A> to a std::list<B> ? (Or even from std::vector<A> to a std::list<B>). I know I can iterate trough to the list and build the second list item by item, b...

php array conversion help needed

Hi, $cnt[0]=>Array( [0] => 0 [1] => 0 [2] => 0 ), $cnt[1] => Array ( [0] => 1 [1] => 0 [2] => 0 ) i want convert this array to below result, $cnt[0]=(0,0); $cnt[1]=(0,0); $cnt[2]=(0,1); any php function there to convert like this format, Thanks, Nithish. ...

Get ECEF XYZ given starting coordinates, range, azimuth, and elevation

I'm having a problem locating anything on converting RAE to XYZ. If I am on a WGS84 spheroid, at say position -742507, -5462738, 3196706 and I detect an object at a range of 30km, azimuth of 310, and elevation angle of 18 degrees how can I convert that to ECEF XYZ coordinates? Thanks. ...

Code not working after conversion from Vs2003 to 2005

Hi, I inherited a VS2003 solution which works fine but on conversion to 2005 this particular line does not give values. I am trying to get the field names of opp object. protected FieldInfo[] oppFields; oppFields = opp.GetType().GetFields(BindingFlags.Instance | BindingFlags.Public); Read from a few posts in 2005 one needs to use pr...

API/Service for currency conversion of a specific date

Hi, I need an API or Service to convert a currency to Euro with the values of a specific date. Example: I have 12USD and the date 2010-08-01. This webpage offers exactly what I need: http://de.finance.yahoo.com/waehrungen/waehrungsrechner/#from=USD;to=EUR;amt=12 But I need it as an API to get the values from inside a Java-program. I fo...

Silverlight 4 and WPF Compatibility

Hello, So if I created a silverlight app, can I take the markup + code and put it in a WPF app? I was just curious if we decide to use silverlight, whether I could also take advantage of WPF windows clients too. Thanks. ...

Syntax error converting datetime from character string.

Getting this error when updating a row via a gridview with a sqldatasource in Vb.net/SQL Server 2000. No matter what input (1/1/2010, blank, etc) I give it I can't seem to get it right. Code before the input is passed to the sp: Dim sqldatenull As DateTime Dim DateVerify As DateTime sqldatenull = DateTime.MaxValue ...

Convert varchar 114 on datetime equals what?

I have trouble in setting the equal condition on a datetime field after converting it to hh:mm:ss.mmm: select top 1 convert(varchar, timestamp, 114) from TEST_TABLE /* returns a single entry of 11:33:35:000 */ Then I want to find all entries with that timestamp: select * from TEST_TABLE where convert(varchar, timestamp, 114) = '11:3...

Split and convert Microsoft PowerPoint presentations on a Linux server

Hi I have to implement a web service, which takes a Microsoft PowerPoint presentation as an input, and outputs: every slide as a standalone ppt file text for indexing optionally a preview picture It should also be able to combine ppt files together. Is openoffice headless can solve this task on a server, or should I go with .NET? ...

Topics I should learn for converting this Classic-ASP code into ASP.NET? Mainly SQL Server Database Access..

Hey guys, So, I have a very simple bit of ASP on my website currently, which you can check out here: http://www.marioplanet.com/catalog.asp Just ignore the CSS issue for now! :) Anyway, so, I have a SQL Server table in a database, and I'm pulling some information from it to make a shopping catalog of all my products. I was wondering...

C# int byte conversion

Why is byte someVar; someVar -= 3; valid but byte someVar; someVar = someVar - 3; isnt? ...

.NET: Inheritance Modify Base Class (C++ Conversion)

I have two classes. The base class is A. The inherited class is B. I would like copy a base class from one object into the base class of another object without affecting the original class. However, .NET seems to ignore the copying. Is this not possible in .NET. I know this is possible in C++. I have included C++ code to illustrate what ...

conversion from 'std::string' to non-scalar type requested

I have trouble implementing my class. It should be able to initialize from std::string. So I wrote a copy (?) constructor: CVariable (std::string&, const int p_flags = 0); I'm trying to make an object of CVariable: MCXJS::CVariable s_var = (string)"good job"; I'm getting the following error: F:\Projekty\MCXJS\src\main.cpp|8|error:...

convert byte to binary

I have FLY file I stored it to byte array and I can read it byte by byte. I want to convert each byte to binary 0s and 1s I want to convert variable b to binary 1s 0s. for example if b = 70 how to convert it to binary what function I can use in C# to do this?? here is my code to read FLY file and store it byte array. byte[] myArray ...

c# String to datetime

DateTime frm_datestart = DateTime.Parse(dateStart.Text); This line throws the error: Exception Details: System.FormatException: String was not recognized as a valid DateTime. Where the entered string is from Jquery-UI, examples: 09/29/2010 09/30/2010 Anyone know what the correct format should be? I'm suprised this isn't...

How can I convert a MySQL database into an older version?

How can I convert a MySQL database into an older version MySQL 5.1.48 - > 5.1.46? ...

Classic ASP Function equivalent to PHP's

Uusing PHP and ASP on a project. A form in PHP captures the day, month and year of a birth date. Then it's inserted into a database as the variable currentSeconds. I can get the years from variable $currentSeconds in PHP no problem using the 2nd code snippet 1st Code Snippet $day=$_POST[day]; if ($day<10){ $day="0".$day; } $currentSec...