porting

Porting Symbian C++ to Android NDK

I've been given some Symbian C++ code to port over for use with the Android NDK. The code has lots of Symbian specific code in it and I have very little experience of C++ so its not going very well. The main thing that is slowing me down is trying to figure out the alternatives to use in normal C++ for the Symbian specific code. At th...

How to know if an enumerator has reached the end of the collection in C#?

Hello, I am porting a library from C++ to C#. The old library uses vectors from C++ and in the C# I am using generic Dictionaries because they're actually a good data structure for what I'm doing (each element has an ID, then I just use using TypeDictionary = Dictionary<String, Type>;). Now, in the C# code I use a loop like this one Typ...

Porting some PHP to ColdFusion

OK, I'm working with converting some very basic PHP to port to a dev server where the client only has CF. Ive never worked with it, and I just need to know how to port a couple things: <?php $pageTitle = 'The City That Works'; $mainCSSURL = 'header_url=../images/banner-home.jpg&amp;second_color=484848&amp;primary_color=333&a...

WaitForSingleObject and WaitForMultipleObjects equivalent in linux

Hi, I am migrating an applciation from windows to linux. I am facing problem w.r.t WaitForSingleObject and WaitForMultipleObjects interfaces In my application I spawn multiple threads where all threads wait for events from parent process or periodically run for every t seconds. How can I implement this in Unix. I have checked pthread...

Getting the System tick count with basic C++?

I essentially want to reconstruct the getTickCount() windows function so I can use it in basic C++ without any non standard libraries or even the STL. (So it complies with the libraries supplied with the Android NDK) I have looked at clock() localtime time But I'm still unsure whether it is possible to replicate the get...

Porting Windows C++ to Standard (Linux) C++ - WSAGetLastError()

I am currently porting some Windows mobile C++ code to standard C++. So I am trying to find alternatives for windows specific functions. I have had very little luck in finding a standard C++ function that can help me replace the WSAGetLastError() windows specific function. WSAGetLastError() returns error numbers for errors that occur ...

using win32 api in linux ?

I have heard of WINE but I don't like it because it's slow on the computers I have tested and almost always crashes. It also has some unpleasant looking gui. I am wondering if there is a "win32" library in c/c++ for linux that produces native linux code so that if I have my source code for windows, I can just recompile and produce a work...

Good LDAP library for BlackBerry?

I am looking for nice Java LDAP library suitable for using on BlackBerry. There is some basic support for LDAP in BlackBerry Java SDK, however it is too basic and I would like to use direct TCP connections instead of MDS (MDS is the only transport option when using LDAP classes from standard BB SDK). Regarding features I basically want ...

How can I port a closed-source application based on OS X to Linux?

How can I port an application based on OS X to Linux? It is closed source and working in Windows either. It is not wrriten in Objective C and doesn't use Cocoa. Thank you. ...

"Ambiguous template specialization" problem

I'm currently porting a heap of code that has previously only been compiled with Visual Studio 2008. In this code, there's an arrangement like this: template <typename T> T convert( const char * s ) { // slow catch-all std::istringstream is( s ); T ret; is >> ret; return ret; } template <typename T, typename T2> T...

Using C++ classes in .NET

I have a set of classes that I've written in C++ for a code base that will run in Linux commandline. They primarily use the STL and no fancy features of the language. They've been tested, and work. I need to write a GUI app for the .NET framework that does things using logic I've written in those classes, but run on Windows. A critic...

Put MFC CDialog in a WPF form

Hi, We are porting an MFC application to WPF, and will probably won't have time to port the entire application. The MFC app has many CDialog-based windows, and we are thinking of leaving some of these windows in MFC, and show them inside a WPF window, so we can control their modality from WPF. Is there an easy way to accomplish that? If...

Proper way to handle issue when porting 32 to 64 bit. Conversion from DT1 to DT2 of greater size

So I am trying to port 32 bit to 64 bit. I have turned on the VS2008 flag for detecting problems with 64 bit. I am trying following: char * pList = (char *)uiTmp); warning C4312: 'type cast' : conversion from 'unsigned int' to 'char *' of greater size Disregard the code itself. This is also true for any pointer, because 64 bit poin...

How to approach porting a game engine to another platform?

I've run into this problem several times before and wanted to hear what other's experience and advice is. Assume you have a working and stable but relatively small game engine that works on only one platform, and you want to port it to another platform. The first step is obvious: you take the code, link it to the platforms libraries ins...

Is there any way to make gcc print offending lines when it emits an error?

I have a large codebase that I've been tasked with porting to 64 bits. The code compiles, but it prints a very large amount of incompatible pointer warnings (as is to be expected.) Is there any way I can have gcc print the line on which the error occurs? At this point I'm just using gcc's error messages to try to track down assumptions t...

VB to c++ or c#?

I am trying to translate this code but I don't understand how to use the GET / PUT part of the code in another language like c++ or c#. This is the code : Private Sub cmd_Click() Dim i As Integer, a As Integer a = 10 For i = 1 To a Dim file As String Open "txt" For Binary As #1 file = Space(LOF(1)) Get #1, , file Cl...

UIpopover is presenting user with a 'done' button that I can't get rid of

I'm not sure why this is coming up I am porting my app into an ipad version and moving one of my views which happens to be a navigation controller into a uipopover. I did have a uibarbutton item on the view im porting with a "done" button to dismiss the navcontroller but I commented out that code and its still appearing, not sure why. I...

Porting iPhone app to iPad fails to sign?

I am able to create a new application profile targeted for my iPad, however, when I convert from iPhone to "Universal" device, I am getting an error in signing. [BEROR]Code Sign error: a valid provisioning profile matching the application's Identifier 'rfc1034identifier' could not be found Also note: I am able to run it in the simulat...

Is there STDCALL in Linux?

hello, I'm trying to port a Windows app to Linux. This appplication marks some functions with the __stdcall attribute. However, i was told by a friend that stdcall is used only on windows and has no meaning in linux (but DOES exist in Windows GCC). I tried to search Google about that, and got some results state that there IS stdacll in L...

.NET 3.5 Web Application - Porting to 64Bit - Potential issues

Hi, I have an existing ASP.net 3.5 web application. This is tested and working in a 32 bit environment. There is a plan to move this application to a 64 bit environment. As a first step, the plan is to compile the entire application in "Any CPU" Is anyone aware of any plan / checklists that can be used in porting from 32-bit to 64-bit...