convert

How to convert OWL/BP7 application to Delphi?

Which tool/approach would you suggest to convert of a large 16bit Windows GUI application, written in old Borland Pascal 7 / OWL, to Delphi? Understanding the pretty heavy differences between OWL and VCL, as well as the differences between the pointer manipulations in 16bit pascal and the state-of-art using of strings and objects in De...

Help Convert C# code to Vb 8.0

. private void Form1_Load(object sender, EventArgs e) { List<CaclulatedData> tests = new List<CaclulatedData> { new CaclulatedData() { Bonds = "First Bond", ...

Converting Relative links to Absolute?

I am programming a small script using PHP and regular expressions The aim of this script is to extract all links in a page and convert these links to absolute- when it is relative - I figured how does relative links works but their are some questions also lets say we have this page http://www.example.com/xxx1/xxx2/xxx3.html if this pag...

Matrix Market into CRS conversion (sparse matrices)

When dealing with sparse matrices, how do I convert Matrix Market format into CRS (Compressed Row Storage)? ...

SQL Convert float to comma varchar with decimals

I have a couple floats that are kinda big. They're around a 100 million. I would like this number to show like the following 123,456,789.01234 I've found that I can use CONVERT if its a money datatype but this doesn't do the full trick (it leaves off some decimal places). I have to have commas on the left and five decimal places on th...

Generic List to DataTable

Hi, I have few methods that returns different Generic Lists. Exists in .net any class static method or whatever to convert any list into a datatable? The only thing that i can imagine is use Reflection to do this. IF i have this: List<Whatever> whatever=new List<Whatever>(); (This next code doesnt work of course, but i would like...

How to correctly convert filesize in bytes into mega or gigabytes?

I'm using the DriveInfo class in my C# project to retrieve the available bytes on given drives. How to I correctly convert this number into Mega- or Gigabytes? Dividing by 1024 will not do the job I guess. The results always differ from those shown in the Windows-Explorer. ...

Upgrading Reporting Services RLD 2005 --> 2008

I ran the solution conversion for a bunch of reports I maintain, but a handful (about half a dozen) failed to convert. I managed to convert some by hand, but some are different enough that changing the RDL by hand is difficult. Is there a better way to fix these reports? ...

Convert .3G2 files

Greetings - My cell phone records videos into a strange (to me) format, .3G2. I would like to convert it to a more common format, like WMV or AVI. Does anyone know of a simple and free tool that can do this? Thanks - Jordan ...

How do I convert from MFC's COleDateTime to C# DateTime?

Hi all, I have an older library that uses COleDateTime as a return type in a C++ MFC Dll. When I do a PInvoke, can I marshal that with confidence to a DateTime object? Or should I do something wacky, like convert the COleDateTime into the number of ticks since 1970, and then convert those ticks back to a DateTime object in the C# call...

Problem with generating images from unicode strings using imagemagick

i'm generating text images with following command sequence convert -background "rgb(233, 231, 218)" -fill black \ -font media/fonts/FuturaStd-Medium.otf \ -pointsize 13 label:"ğüşıöçĞÜŞİÖÇ" -size 88x18 \ media/images/category_images/food-drink/category-top-row/tr_food-drink.png which generates the following image. ğşĞİŞ are proble...

converting from prototype to jquery

I'm trying to do a simple ajax update of a div from a php file that gets data from a mysql database. One function populates the div, the other adds messages to the database and is called on click of a submit button. I was wondering if someone could give me their equivalents in jquery. Below are the prototype versions. <script> function...

How to get a date from MySql database to C# DateTime object?

I have a MySql database with a certain feild that contains a date. How can I convert it to a C# DateTime object? And how do I convert a C# DateTime object so I can insert it to the database? ...

Call C++ library in C#

I'm a newbie for C#, i have a lot of libraries are wrote with C++, when I want to call these libraries in C#, i met many problems. I want to know if there is a book or guideline to tell me how to do that. ...

Ruby/Rails Audio Conversion Plugins?

I am looking for a good gem/plugin to convert user-uploaded audio files to different formats. One format in particular that I am interested in is converting to Apple .caf with ima4 compression for inclusion in an iPhone app. I have been using afconvert on my mac for this so far, but I need to do it on my linux box, server-side. Ideall...

Using strings to access custom methods dynamically

I am creating a two-dimensional list that has consecutive numbers at the end of "day", for use as dataProvider for a DataGrid i have been accessing them via the command dg1.selectedItem.day1 dg1.selectedItem.day2 dg1.selectedItem.day3 etc... is there any way to take the string ("day"+i) and convert it into a (what is it? variable name?)...

Android Convert Video To MP4

I have a Android app. It recieves videos in .flv format which is unplayable by the Android phone. I was wondering how to convert the file to MP4. I could use FFMPEG, but I do not know how I would get it onto the phone, and how it would work on multiple phones if it was compiled for a single one. ...

Double.TryParse or Double.Convert - what is faster and more safe?

My application reads an Excel file using VSTO and adds read data to a StringDictionary. It adds only data that is a number with few digits (1000 1000,2 1000,34 - comma is a delimiter in Russian standards). What is better to check current string being appropriate number? object data, string key; // data had read try { Convert.ToDoubl...

How to convert NSMutableData to NSString on iPhone?

I received an NSMutableData from a server and now I want to convert it to an NSString. Any ideas about how to do this? ...

Java (J2ME) Convert Image to byte[], then back to Image

Hey, I'm trying to convert an Image object to a byte array then back to an Image (so that I can store the image in a blob object in an Apache Derby Database). I can convert an Image to a byte array (code below) but I cann't convert the bytes back to an image. As a further complication I'm using J2ME, so I can't use javax.image.*. Can y...