problem about platform-independent-Collection of common programming errors
Zack
java class-loading platform-independent
I’m seeing differences across platforms about when Class.forName() throws ClassNotFoundException and when it throws NoClassDefFoundError. Is this behavior well-defined somewhere, or have I stumbled across a bug?Consider the following code (which is a standalone java file in the default package): public class DLExceptionType {private static void printFindError(String name) {System.out.print(name + “: “);try {Class.forName(name);System.out.println(“** no error **”);} catch (Throwable e) {System.ou
Untitled
c types platform-independent
I have this piece of code that is challenging all my knowledge of C. Here I have :int main(void){unsigned long long int massage ;scanf(“%llX”, &massage); //input: 0x1234567890abcdefprintf(“%llX”, massage);return 0; }On my “64bit – Corei5 – Fedora – GCC” it prints out exactly what I fed it. but on my buddy’s system (32bit, MS XP, MinGW) it prints 90ABCDEF. I don’t understand why. does anyone know?BTW: sizeof(unsigned long long int) on his system is 8.
Cody Gray
cross-platform libraries virtual-machine platform-independent
I have seen a lot of C/C++ Libraries and Gui Toolkits. Among them there are some like GTK+ , Qt , Swing etc. which claim to be platform-independent. While some , like WxWidgets, SWT etc. which claim to be cross-platform. At first I thought it to be just a change in wording, but the terms have been used with such consistency that I have started to wonder. What is the difference?
moon
windows osx platform-independent
i am looking for some files like DLLs that can be used on windows as well as Mac OS is there any way of doing this will c++ or any other language that must be higher level than c++ need help regards.
Josh
multiplatform platform-independent
I’m working on a paper about multi-platform programming and I’d like to include sections on advantages/disadvantages. From my understanding; having any application be multi-platform is a huge selling point for the developer since it enables almost any computer user as a potential buye, among other things. I’m just trying to figure out possible disadvantages. If any?
Nick Haslam
Ulrich Scholz
java console osgi platform-independent
I’m designing a shell to administer an application. It is planned to let the next application verison use OSGi, but the OSGi platform (Felix, Equinox, …) is not decided yet. it would be nice if we could administer OSGi with our shell, too.How can I administer OSGi in a platform independent way? Could you point me to example code?Thanks, Ulrich
Vijay Mathew
.net c++ visual-studio setup platform-independent
I have made a custom dll for my setup project. My dll is very simple, registering few services, not CLR or any 3rd party lib dependent. Have statically linked with msi.lib only.I have removed the .net and windows installer prerequisite requirements from the setup project. My setup fails on macines not having .net framework..?As I have not having any .net dependent code, what should be the solution to this. I don;t want user to download framework first for installation.Regards Amit
LaGrandMere
java linux platform platform-independent
I wanted to test the platform independence of java.So I wrote the hello world program in java and compiled it using the compiler for windows to create the HelloWorld.class file. Then I tried to run that file in linux(ubuntu).I ended up in an error.(the JRE was already installed in linux)Exception in thread “main” java.lang.UnsupportedClassVersionError: HelloWorld : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Class
calccrypto
c++ graphing lightweight platform-independent
What is the simplest to use c++ library that graphs functions like matlab and octave do? I have looked over several and have found similar major problems with all of them: i cannot compile an empty program that only has#include <iostream>#include “header_to_include.h”int main(){return 0; }i have found koolplot, some wxwidget stuff, sdl_graph, gnuplot++, and something with Qt. ive looked at some of the ones on the list here, but some are for other languages while others use installers or de
Web site is in building