portability

c++ Initializing a struct with an array as a member

Edited again because it originally wasn't clear that I'm trying to initialize the arrays at compile time, not at run time... I've got the following reduced testcase: typedef struct TestStruct { int length; int values[]; }; TestStruct t = {3, {0, 1, 2}}; TestStruct t2 = {4, {0, 1, 2, 3}}; int main() { return(0); } This...

Linux Browsers And VBScript

I've already done some little things using Visual Basic and some nice things with eMbedded Visual Basic, but now I want to go on the scripting way, then I want to know if Linux, BeOS and other OSes browsers will support VBScript pages. ...

Multiple sendto() using UDP socket

Hi, I have a network software which uses UDP to communicate with other instances of the same program. For different reasons, I must use UDP here. I recently had problems sending huge ammounts of data over UDP and had to implement a fragmentation system to split my messages into small data chunks. So far, it worked well but I now encoun...

A step-up from TiddlyWiki that is still 100% portable?

TiddlyWiki is a great idea, brilliantly implemented. I'm using it as a portable personal "knowledge manager," and these are the prize virtues: It travels on my USB flash memory stick and runs on any computer, regardless of operating system No software installation is needed on the computer (TiddlyWiki merely uses the Internet browser)...

Portable C++ IDE

I want a portable C++ IDE for general development, and too to develop basic Windows GUI applications. In my research, I've found this (with latest version date): CodeLite IDE (2010-04-02) Ultimate++ (2010-03-16) Qt Creator (2010-02-01) NetBeans (2009-12-10) Code::Blocks (2008-02-28) Bloodshed Dev-C++ (2005-02-22) But I don't know if...

RTTI and Portability in C++

If a compiler doesn't "support" RTTI, does that mean that the compiler can not handle class hierarchies that have virtual functions in them? Or have I been misunderstanding the literature about how RTTI isn't portable, and the issues lie elsewhere? Thank you all for your comments! ...

Is the "SQL Server 2005 Database Project" the thing I'm looking for in this use case?

Please refer to my previous question here: Link Here Will this project type be useful for installing the necesary database on a servers machine? ...

Could Grand Central Dispatch (`libdispatch`) ever be made available on Windows?

I’m looking into multithreading, and GCD seems like a much better option than manually writing a solution using pthread.h and pthreads-win32. However, although it looks like libdispatch is either working on, or soon going to be working on, most newer POSIX-compatible systems… I have to ask, what about Windows? What are the chances of lib...

Looking at the C++ new[] cookie. How portable is this code?

I came up with this as a quick solution to a debugging problem - I have the pointer variable and its type, I know it points to an array of objects allocated on the heap, but I don't know how many. So I wrote this function to look at the cookie that stores the number of bytes when memory is allocated on the heap. template< typename T > i...

How portable is mktemp(1)?

As the title suggests — can I be reasonably sure that mktemp will exist on any unix-y operating system I'm likely to encounter? ...

Endianness and C API's: Specifically OpenSSL.

I have an algorithm that uses the following OpenSSL calls: HMAC_update() / HMAC_final() // ripe160 EVP_CipherUpdate() / EVP_CipherFinal() // cbc_blowfish These algorithm take a unsigned char * into the "plain text". My input data is comes from a C++ std::string::c_str() which originate from a protocol buffer object as a encoded UTF-8 ...

PHP: Coding long-running scripts when servers impose an execution time limit

FastCGI servers, for example, impose an execution time limit on PHP scripts which cannot be altered using set_time_limit() in PHP. IIS does this too I believe. I wrote an import script for a PHP application that works well under mod_php but fails under FastCGI (mod_fcgid) because the script is killed after a certain number of seconds. ...

how to make portable regex ?

Which features of regular expressions are standard, and which are idiosyncratic ? What should I do, and not do, if I want to use the same regex in different context, languages, platforms ? ...

XML serialization and MS/Mono portability

I'm trying to have classes serialized using MS runtime and Mono runtime. While using MS runtime everything goes fine, but using Mono I give me some exception and program startup. The following exception are thrown: There was an error reflecting a type: System.TypeInitializationException (a class) There was an error reflecting a type: ...

Read and write directly from and to compressed files in C

Hi, in Java I think it is possible to cruise through jar files like they were not compressed. Is there some similar (and portable) thing in C/C++ ? I would like to import binary data into memory from a large (zipped or similar) file without decompressing to disk first and afterwards writing to disk in a compressed way. Maybe some tr...

OpenGL Polygon Stipple Not Working On Different Machine

I have a situation where I am trying to draw a semi-transparent rectangle over a background that is not using openGL and so I can not use blending. I decided to use polygon stippling for a 'screen door transparency' effect as recommended by some. It works fine on my machine and some others, but on some machines with slightly old Intel ...

How do I type a floating point infinity literal in python

How do I type a floating point infinity literal in python? I have heard inf = float('inf') is non portable. Thus, I have had the following recommended: inf = 1e400 Is either of these standard, or portable? What is best practice? ...

Portable way to hide console window in GLUT application?

Hey, I'm creating a little GLUT application and need help with hiding/removing the console window. I am developing on windows and I already know of the various methods to hide the console window on a windows system, however is there no portable method of hiding it? Thanks... ...

What exactly are signals and slots in Qt?

I know how they work conceptually, but how are signals and slots implemented in the Qt framework? Qt Creator treats them as keywords, but are they simply a set of macros, or is a special pre-processor required before these source files can be compiled? In other words, if I use Qt's signal/slot features in my code, can I easily compile ...

Linq-To-Sql - Portability Problem

I've created an ASP.NET solution on my computer. There is a business layer in the project, which uses Linq-To-Sql for Database operations. How can I open the same project on another computer? I am having problems, becuse of connection string or etc. ...