On platforms different than Windows you could easily use char * strings and treat them as UTF-8.
The problem is that on Windows you are required to accept and send messages using wchar* strings (W). If you'll use the ANSI functions (A) you will not support Unicode.
So if you want to write truly portable application you need to compile ...
Possible Duplicate:
user warnings on msvc AND gcc?
I am trying to come up with a relatively clean way of using the preprocessor to generate a custom warning message in C code that works for multiple compilers (MS VC, gcc, AIX, sun, etc).
I am mostly interested in warning about deprecated items, but also just for general use....
So I have a visual studio 2008 project setup for a project I've been working on however its a sub project of a rather larger code base which is crossplatform, so in order to make my project complaint with the main source I need to make my project nix compilable.
Is there some way I can generate a makefile based off my vcproject? or if ...
On a previous question the pathinfo and fnmatch functions were benchmarked and the answers all came out opposite to my benchmark results.
You can read the different results with the benchmark code here:
http://stackoverflow.com/questions/2693428/pathinfo-vs-fnmatch
I couldn't work it out until I ran the same code on a machine running v...
For a current project, we're designing a client desktop application that parses text files and interfaces with a web based database.
So far we've split the project into parts:
(Third-Party Program) -> (Our Desktop Client) -> (Our Parsing Library #1 and #2) -> (Our Web Server) -> (Our Verification Library) -> (Our Database)
We've hit c...
The advantage of writing a Makefile is that "make" is generally assumed to be present on the various Unices (Linux and Mac primarily).
Now I have the following Makefile:
PYTHON := python
all: e installdeps
e:
virtualenv --distribute --python=${PYTHON} e
installdeps:
e/bin/python setup.py develop
e/bin/pip ins...
What is normally to be done to run a WinForms application on a Mac or Linux machine?
a. Just copy and run (assuming they have a Framework installed).
b. Rebuild.
c. Cosmetic source code modifications.
d. Heavy source code modifications and forms redesign.
Assuming that the application is developed as 100% managed C# 3 code by means V...
It is clear that cross compilers will not be allowed by the Apple App Store, so a developer will need to be familiar with Objective-C to create applications for the iPhone.
I was wondering, is there a cross compiler that will take Objective-C application code and rebuild it into a similar Java application that can be packaged for Andro...
We want to persist some user settings int he GUI part of our code. I used to do Win32 programming exclusively and the typical way this was done was with registry settings.
I assume that this should be done with configuration files, but was wondering if there was a library or cross platform wrapper that made key/value pair persistence v...
Probably a stupid question, but I couldn't find anything searching...
Is there a standard header that allows me to fetch the current time? Otherwise is there some cross-platform alternative?
...
Hi, I'm a member and contributor of the Argentum Online (AO) community, the first MMORPG from Argentina, which is Free Software; which, although it's not 3D, it's really addictive and has some dozens of thousands of users.
Really unluckily AO was developed in Visual Basic (yes, you can laugh) but the former community, so imagine, the c...
I'm using a java process to spawn many other java processes using Runtime.exec(cmd) where cmd is like the following:
java -cp "MyJar.jar" pkg.MyClass some-more-arguments
running the same command from the command line works fine in windows and linux, however when my spawning java process calls the command via Runtime.exec it works in wi...
A coworker showed me the following code and asked me why it worked.
<span id="myspan">Do you like my hat?</span>
<script type="text/javascript">
var spanElement = document.getElementById("myspan");
alert("Here I am! " + spanElement.innerHTML + "\n" + myspan.innerHTML);
</script>
I explained that a property is attached to the window ob...
I am part of an organization in which there is contention amongst some very competent folks as to whether or not testing cross-browser behavior for JavaScript intensive web applications on virtual machines (for IE6/7/8, FF2/3, Chrome on XP/Vista/7) is reliable. This is using VMWare server on a Linux box host.
While the discrepancies se...
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.
...
Is there an easy way to integrate with VirtualBox such that I could develop under the host, Windows, and deploy and run scripts via a mounted folder in a guest linux system?
I'm looking to develop for Linux under Windows, kind of.
...
Hello all,
We have a business logic that works with the file systems on OS that we want to implement on both Linux and Windows platforms. The language we have selected is Python for Linux and C# for Windows. GUI is not a priority for now. We were looking for ways to abstract the business logic in a way that we dont have to repeat the bus...
Greetings,
With all the existing development towards web development and emerging technologies in that area, I'm left wondering; what is a state of the art way to implement desktop applications in this day and age? If you were to start a new application of considerable size from scratch what technology would you invest your efforts in (...
I'm planning to do an Desktop application using Python, to learn some Desktop concepts. I'm going to use GTK or Qt, I still haven't decided which one.
Fact is: I would like to create an application with the possibility to be called from command line, AND using a GUI. So it would be useful for cmd fans, and GUI users as well.
It would b...
I've been coding for a while now and would like to start looking into programming games. I know the industry's standard language is C++, for 3D graphics the main choice is between Direct 3D and OpenGL, but what is the most widely used GUI framework? I'm currently on a Mac so if native Windows API is the answer, then what is the cross pla...