Backtrack:  
 
showing posts tagged with 'dev'
 
edited by on July 7th 2015, at 14:23

HTML5 Character Entity Reference Chart:

http://dev.w3.org/html5/html-author/charref

edited by on June 17th 2015, at 14:33
Angry IP Scanner is a very fast, lightweight IP scanner. It has been around for a long time already, and used by many IT professionals to help accomplish tasks. Although version 3 of the program is available for some time now, I still like to use the old version (version 2), simply because it works on every system without the need for Java (version 3 requires Java, unfortunately).

Version 3 comes with an installer available as a download. Version 2 does not, and although it has the built-in ability to create shortcuts if the user chooses to, I rather prefer a proper installer, with proper uninstallation support, in short: the Windows-way. As no such installer exists, I decided to create my   ...
edited by on May 28th 2015, at 12:10
You can compile for older versions of the JRE by setting the compiler target compliance level. This allows you to generate class files that are usable on older versions of the JRE as well as the current one.

From your IDE, you will be able to select the compliance level, but if you're compiling manually using javac, this can be done by setting the appropiate command line parameters: -source and -target.

For example, to compile for JRE 1.6, do this:

javac -source 1.6 -target 1.6 MyClass.java

A quick explanation:

-source sets the source compatibility to the specified version, and ensures that your code is usable on the specified JRE.

-target specifies the compliance level o  ...
edited by on May 28th 2015, at 11:39

For debugging purposes, I often prematurely abort a function by adding a return statement in the middle of it. With most compilers this works flawlessly, accept with Java...

The Java compiler bums out with an unreachable statement error, and won't allow you to compile a class until all code is reachable within a function.

Luckily, you can trick the compiler by adding an if-statement that's always true:

if (1==1) return;

This way, as the return is supposedly conditional, and the compiler doesn't consider the result of an if-statement, it is tricked into believing the following code is still reachable.

edited by on June 11th 2012, at 17:32
When using external libraries (with .lib files) and are getting linker errors like below, you are using an imcompatible import library (.lib) file.

Invalid OMF record type 0x21 (possibly COFF)

The reason for this is that your import library file was designed for MSVC. The one uses the COFF format, which is not compatible with Borland's OMF format.

To solve this, try the following and in preferred order:

Try obtaining the Borland compatible version of the import library. While difficult, this will always work.

Use the conversion tools in Borland. Read Convert MSVC import libraries for use in Borland C Builder for more info on these tools.

Try using IMPLIB to manually rea  ...
edited by on June 11th 2012, at 17:24
By default, import libraries (.lib files) made for MSVC are not compatible with Borland C Builder and Borland Delphi. Since version 6 of Borland C++ Builder, there's a tool which can convert these files in COFF format to OMF format. The tool is called coff2omf and resides in the Bin directory of your Borland installation.

Simply run the file as follows (be sure your path etc. is correct):

coff2omf mylib.lib mylib2.lib

Then, use the mylib2.lib file you just created and add it to your project.

Notice
The coff2omf tool only works properly if the library exports plain C functions. If C++ classes or mangled function names get exported, you usually get linker errors. If this is th  ...
 
showing posts tagged with 'dev'
 
 
« December 2024»
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
293031    
 
Links
 
Quote
« If the batteries of a TV remote run out, why do we press the buttons so much harder? »