portability

PHP on IIS

Having been a PHP developer on LAMP servers for quite a while, is there anything that I will need to take into consideration while preparing an application for IIS on windows. ...

Does MS-SQL support in-memory tables?

I've grown up as a programmer using MySQL all the way. Recently, I started changing some of our applications to support MS SQL Server as an alternative backend. One of the compatibility issues I ran into is the use of MySQL's CREATE TEMPORARY TABLE to create in-memory tables that hold data for very fast access during a session with no ne...

Having MSDN on a usb key

Is there a way to have msdn documentation on a usb key ? either web or the MSDN Library program. i've been setting up my usbkey with portableapps stuff. ...

Portably handle exceptional errors in C++

I'm working on porting a Visual C++ application to GCC (should build on MingW and Linux). The existing code uses __try { ... } __except(1) { ... } blocks in a few places so that almost nothing (short of maybe out of memory type errors?) would make the program exit without doing some minimal logging. What are the options for doing somet...

What is the best technique for consistent form, function between all web browsers (including Google Chrome)?

Short version: What is the cleanest and most maintainable technique for consistant presentation and AJAX function across all browsers used by both web developers and web developers' end-users? IE 6, 7, 8 Firefox 2, 3 Safari Google Chrome Opera Long version: I wrote a web app aimed at other web developers. I want my app to support the...

making portable code

with all the fuss about opensource projects, how come there is still not a strong standard that enables you to make portable code (i mean in C/C++ not java or c#) everyone is kind of making it's own soup. there are even some third party libs like Apache Portable Runtime. ...

Super Robust as chrome c++ and portable - tips - help - comments.

Hi everyone, We are producing a portable code (win+macOs) and we are looking at how to make the code more rubust as it crashes every so often... (overflows or bad initializations usually) :-( I was reading that Google Chrome uses a process for every tab so if something goes wrong then the program does not crash compleatelly, only that ...

Using Python's ftplib to get a directory listing, portably

You can use ftplib for full FTP support in Python. However the preferred way of getting a directory listing is: # File: ftplib-example-1.py import ftplib ftp = ftplib.FTP("www.python.org") ftp.login("anonymous", "ftplib-example-1") data = [] ftp.dir(data.append) ftp.quit() for line in data: print "-", line Which yields: $ p...

What are some recommendations for porting C++ code to the MacOS?

For a upcoming project, there are plans to port the existing C++ code that compiles on Windows and Linux to the MacOS(leopard). The software is command line application, but a GUI front end might be planned. The MacOS uses the g++ compiler. By having the same compiler as Linux, it does not seem like there would be any issues, but there...

Database independence in Unix/C

We have a system written in C and running under Solaris & Linux that uses the Sybase CT-library to access a Sybase database. We generate the table-definitions, indexes, stored procedures and C-code from an in-house developed DDL to reduce the amount of work and errors. We would like to achieve database independence, so we can add (as a ...

Portability of #warning preprocessor directive

I know that the #warning directive is not standard C/C++, but several compilers support it, including gcc/g++. But for those that don't support it, will they silently ignore it or will it result in a compile failure? In other words, can I safely use it in my project without breaking the build for compilers that don't support it? ...

Is there a portable equivalent to DebugBreak()/__debugbreak?

In MSVC, DebugBreak() or __debugbreak cause a debugger to break. On x86 it is equivalent to writing "_asm int 3", on x64 it is something different. When compiling with gcc (or any other standard compiler) I want to do a break into debugger, too. Is there a platform independent function or intrinsic? I saw the XCode question about that, b...

Best Portable way to connect to SQL server using c++

Hi everyone, I need some help into this problem: Basically i want to connect my program which uses c/c++ to a SQL server database (MS SQL server express or standard edition) , because of our users demands the program needs to be ported to Mac Os too so this connection need to be portable. Any idea of a portable API i can use to do t...

I want to write a desktop OSX or Windows app in Javascript -- any experiences?

I'd like to write some small applications for Windows and OSX. Portable is good. For instance, the simple TclKit solution for TCL would work well if I could stand to look at Tcl for any length of time. I'm considering using Javascript + extensions -- I really like Javascript -- seems to me there should be some way to connect a Javascr...

In **portable C**, how to launch a command connecting the command's stdin to the launcher's stdout?

In a C program (p1), how to launch a dynamically constructed command (and its arguments) that reads its standard input from p1's standard output? Note that: A method other than this stdout --> stdin piping is also OK provided it is PORTABLE across Windows and Linux. I cannot use C++, Java, Perl, Ruby, Python, etc here. Also, will t...

Did anyone try Portable Python ?

I have recently discovered Portable Python as a very interesting tool. I am a linux user, and I am frutstrated when I come to machines that does not come "battery included". This is cool because it's non obtrusive : I don't want to install Python in any windows that passed in my hands... But I don't know if it's reliable. If I make a ...

GCC Fixed Size Integers

On the MSVC++ compiler, one can use the __int8, __int16, __int32 and similar types for integers with specific sizes. This is extremely useful for applications which need to work with low-level data structures like custom file formats, hardware control data structures and the like. Is there a similar equivalent I can use on the GCC compi...

Using windows DLLs in a portable app.

I have built a windows C++ application that I'd like to port to linux. The main reasons to do this is ease of system maintenance for our IT staff. Apart from the one windows machine that runs this application we're a linux only operation. The reason this application was built in-, and runs on- windows is that it uses a windows API (dll ...

file path portability

I have a program that I need to run under *nix and windows. because the program takes file paths from files the issue is what to do about the \ vs / issue. My current thought is to put in a regex that converts the wrong one to the right one depending on what system I'm on. This will have the effect of letting either type work on either...

How to synchronize C & C++ libraries with minimal performance penalty?

I have a C library with numerous math routines for dealing with vectors, matrices, quaternions and so on. It needs to remain in C because I often use it for embedded work and as a Lua extension. In addition, I have C++ class wrappers to allow for more convenient object management and operator overloading for math operations using the C A...