porting

Porting from WPF to Silverlight - ItemsControl/ItemCollection

I'm porting an app (which someone else wrote) from WPF to Silverlight. I have a class which inherits from ItemsControl. In part of the code I access the ItemsControl.Items property (of type ItemCollection). However, some of the methods/properties which exist in WPF are missing in Silverlight: MoveCurrentToFirst() CurrentItem CurrentPos...

How to convert OpenGL code to JOGL?

I have an application using OpenGL code. Now I want to convert it into JOGL code. Is it possible to convert OpenGL code to JOGL? What are the changes we have to do? ...

Moving from Windows API to Mac OS

Hi, I'm a Windows (native, not .NET) programmer and I'd like to port an application to the Mac. Actually, I believe it will be more of a rewrite, as the original depends on many activex controls. As I have never used a Mac in my entire life, I'll need some guidance. O:-) a) What book(s) would you recommend to make the move from Wi...

How to get an output console in an Ogre project under MacOSX?

Hello, I'm working on a project using Ogre3D. We recently ported our project to MacOSX but there are some things that were linked to the Windows API. In particular I don't know how this should be translated: #if defined( __WIN32__ ) || defined( _WIN32 ) AllocConsole(); #endif It would be nice to port the project under Linux someda...

Help porting javascript function to jQuery - learning tool

I am just learning jQuery and I wanted to see what I could do with the function below. This function adds or removes css classes to create a pull down menu (it is in fact Stu Nicholl's well known pull down menu). But I'm not getting very far (I've been learning jQuery for approximately an hoour now, so my DOM traversal isn't quite up t...

Porting Wii and/or PSOne Games to OpenGL ES

I have been asked to investigate porting Wii games and some (Sony) PSOne games to OpenGL ES (can you guess what platform?). I have never undertaken a game port like this before (and will be hiring someone to do it) but I'd like to understand the process. Does the Wii use OpenGL? If not what does it use and how easy is it to port to Op...

Java C++ code conversion

I need to convert this code (in C++) into Java code : short i; short j; short k; short result; unsigned short m_table[ 256 ] for ( i = 0 ; i < 256 ; i++ ) { k = i << 8; result = 0; for ( j = 0 ; j < 8 ; j++ ) { if ( ( result^ k ) & 0x8000 ) res...

Porting java apps to Android platform

I know Java apps can be run in Android. But what I want to know is this: I have a perfectly normal Java app and I want to port it to an android platform. What changes would I need to do to my app in terms of GUI and other code to make it usable in Android? I know Android uses XML file to control the look and feel of its app. So would I n...

Are there any benchmarks on J2MEPolish converting a J2ME app to Android?

J2ME Polish claims to support porting of existing J2ME applications to Android. Has anyone tested the quality of such a port. How reliable is it? ...

What are the guidelines for porting a 32-bit program to a 64-bit version

What are the guidelines for porting a 32-bit program to a 64-bit version? ...

Porting a console application to WPF

I have created a small chatting application in C#, and started as a Console Application. However I want to create a GUI for it using WPF. It's a class named DanMessengerClientwith functions such as InitializeConnection(), SendMessage(string msg), etc. I have already designed the UI in Visual Studio, and it created it's Window1 class on ...

Compare similar functions in different files

I have a large complicated function that was ported from C++ to C#. I would like to perform a diff to see exactly what has changed between the two. Other can manually copying each of the functions to 2 temporary files oldFunction.cpp and newFunction.cs and diff-ing those is there another way? ...

How can I get this snippet to work?

I'd like to port a little piece of code from Ruby to Groovy, and I'm stuck at this: def given(array,closure) { closure.delegate = array closure() } given([1,2,3,4]) { findAll { it > 4} } Right now it dies with this message: Exception thrown: Cannot compare ConsoleScript0$_run_closure1 with value 'ConsoleScript0$_run_closu...

Upgrading from Drupal 6 to Drupal 7: best programmer's practices?

Although I am using drupal since the D4 series, I only started developing professionally for it with D6, so - despite I did various site upgrades - I was never faced by the task of having to port my own code to a new version. I know the Drupal community will come up with lot of technical support about changed API's and architectural cha...

Porting linux socket application to windows usins MsDev

Is there openly available headers which can be used to compile linux socket application (using socket/udp/ip headers). they should define structures like sa_family_t,in_port_t Mandatory is to use Msdev and not cygwin/gcc or mingw compiler. ...

Porting application written in C from Solaris to Windows XP

I have an application written in C on Solaris that I have to port to Windows XP. I would like to know that what are the libraries availabe to achieve this task. Also what is the best GUI development tool for the same and what are the steps to follow to achieve this all. ...

What does it take to port a classic game to a new platform?

I'm thinking about starting a crazy enough hobby project that would span across several years and would include disassembling & OpenGL programming. Having almost finished my 3rd Android app, I must say that I love the platform and will program for it. Now, let's take the classic Carmageddon game as a porting candidate. The question bo...

Porting C code; need help with bitwise operation and pointer syntax

I have some C code that I'd like to port to java. I haven't done much C coding, but I was able to follow along up until this one function. If anyone could help me understand what is going on, it would be greatly appreciated. int reverse_integer(int input) { int output = 0, i; for ( i=0, i<sizeof(int); i++ ) { output =...

What should i know about switching from sqlite to SQL Server

Currently i have no way to test my code with SQL Server. I know nothing about it and have been using SQLite. What should i know while switching? My app is programmed in C# .NET ...

Mono XSP ignores <location> directive in Web.Config

I'm porting my ASP.NET application to Mono. I built it from SVN trunk under Debian 5.0. I allow anonymous access to Logout.aspx and styles.css using Web.config directives: <location path="Logout.aspx"> <system.web> <authorization> <allow users="*" /> </authorization> </system.web> </location> <locati...