porting

Books about C(C++) with the idea of porting apps from C to Java

Could you recommend me some books on C and C++, that would be suitable for a Java developer? In JAVA most things look simple enough, and the Specification helps a lot but both C and C++ are full of features that make me dizzy. Not that I have absolutely no experience with C++, but it's far from enough. I am especially interested in C bo...

porting ostream::opfx / osfx from Unix to Linux

I am porting some C++ code from Unix to Linux (Red Hat). I have run into the following pattern: ostream& myfunction(ostream& os) { if (os.opfx()) { os << mydata; os.osfx(); } return os; } The functions opfx and osfx are not available under Red Hat 4.5. I saw a suggestion here to use the ostream::sentry functionality:...

Problem with customized android build

I'm trying to make a customized build (as described in the porting guide - http://source.android.com/porting/build_new_device.html) and always end up with the error message make: * No rule to make target vendor/company/emh-board/kernel', needed byout/target/product/emh-board/kernel'. Stop. Does anyone know why this is happening. I start...

what are the alternative for win32 to alarm,bzero,bcopy when porting c code

Hello all im porting c code to windows 32 bit using visual studio express now i have 3 functions that i can't find any alternatives in windows they are: alarm bzero bcopy what are the equivalent methods in C win32 ? ...

Porting Android

Hi guys i want to have some knowledge on porting android on linux devices. I am a web and android developer but now i want to port android on some hardware which you could suggest is easy for the beginners to start with. I don't feel like buying a mobile phone this time i want to make a mobile phone :) Please help me achieve this goal. ...

Converting c++ project to clr safe project

Hi, I need to work on converting a very huge c++ project to clr safe. The current c++ project has a lot of stuff from c++ like templates, generics, pointers, storage/stream, ole apis, zlib compression apis, inlines etc. Where can I find the datiled document for this type of conversion? Can you suggest some good book to refer to? If anyo...

OS X Vs Linux - Serial port handling

Hello, I am trying to port (or rather customize) a pure Linux application to OS X Snow Leopard (10.6.4). It is an application that sends a binary to a target hardware over the serial port. The app is almost running but i am hit with an interesting problem with the serial port writes. With all the same settings as Linux (115.2k is the b...

How to port in.mpathd from Solaris to Linux?

How to use in.mpathd command in solaris(by using which options)?? ...

How to replace existing Swing UI module with Griffon based one in a legacy Java application?

The application that I would like to revamp is pretty well organized. UI is separated into a module. UI controllers implement the interface PropertyChangeListener. When other modules want to have something happened in the UI they just fire PropertyChangeEvents on UI controllers not being aware what is behind them. Current implementations...

Port unmanaged C++ project to C#

Hi SO, for several reasons I need to port a C/C++ unmanaged project (VS 2008) to C# (preferably .net 3.5). I'd need to know: whether, by any chance, exist some conversion-helping tools; let's say something translating the code syntax and asking you verifications/modifications for each problematic point (I guess I'm dreaming...) where...

Compilation issues for Migration from VC6 to VC9

I am porting a legacy C++ system from VC6 to VC9. The application (<APP A>) statically links to an internal application <APP B> ( developed in house but by a separate team). A local copy of header files from <APP B> are included in CPP files and compiled in <APP A>. Currently we are not planning to migrate <APP B> to VC9. Though both ...

Whats the best way to create an iPhone and an iPad application simultaneously?

I have an iPhone app that I would like to port over to the iPad, but I would like to have as little duplication as possible. How do people usually go about doing this? In xcode can you have different targets for iPhone and iPad and perhaps do some pre-processor checks? Or is it best to simply have two separate projects altogether? Not...

Building legacy Turbo C++ Code

I am looking to revive some old C++ code, developed in Turbo C++ for DOS. It's a console-based text game. This app makes heavy use of conio.h - the Turbo C-specific functions (I think) gotoxy(), window() and the like. I find that Turbo C++ compiler is no longer available for download. Embarcardero/CodeGear/Borland seem to have removed...

error C3861: 'strcasecmp': identifier not found in visual studio 2008?

im trying to port application from cygwin to visual studio 2008 express but im getting this error : error C3861: 'strcasecmp': identifier not found in this type of code: if (!strcasecmp("A0", s)) .... what is the replacement in vs? i can't find any thing in the net ...

Universal App won't run on iPad Simulator

I have an existing iPhone app that I'm trying to convert into a universal app for both iPhone and iPad. Everything seems to work fine when I run it on an iPad device, but I get the following runtime error when I try to run in the iPad simulator: dyld: Symbol not found: _CFXMLNodeGetInfoPtr Referenced from: /System/Library/Frameworks/S...

gcc compiled code on visual studio

Hi, Assume I have source code for a lib/tool that works on gcc compiler. Can I use the same code and compile it in visual studio. will that be possible at all? If it is possible, how do I do it? ...

Linux 64 bit porting issue

Hi, I am working on Linux 64 bit porting and we used a lots of long variable in our code. Now on Linux 64 long is 64 bit. We are facing problem in the bits manipulation code. I heard there are options LLP64(long as 32) and ILP64(long as 64). But I don’t know the compiler option for it(g++). I have few more doubts, If I compile with o...

Porting Rails 2 application to new server

I've posted a couple other questions during this process, but I have a better idea of what I'm trying to do so I thought I'd ask about that. I've inherited a Rails 2.2.2 application, which is currently running in production form on a server I have access to. I'm trying to port that application over to my server, version control, etc. I ...

Porting Issue: Pointer with offset in VC++

Ok, this compiles fine in GCC under Linux. char * _v3_get_msg_string(void *offset, uint16_t *len) {/*{{{*/ char *s; memcpy(len, offset, 2); *len = ntohs(*len); s = malloc(*len+1); memset(s, 0, *len+1); memcpy(s, offset+2, *len); s[*len] = '\0'; *len+=2; return s; }/*}}}*/ However, I'm having a prob...

How to port a project?

Hi, I want to port a simple game someone else has written in Java to GWT. He organized it mainly into two packages: One for the user interface and one for the game logic. Hopefully, I can reuse his game logic and just rewrite the user interface, but I might need to change some things in order to make it compile with GWT. I'm wondering ...