Browse DevX
Sign up for e-mail newsletters from DevX

Search the Tips
Tip Bank > C++ > Compilers


1-20 of 71     Previous     Next
Running 32-bit Applications with 32-bit DLLs on 64-bit Operating Systems
by Prafulla Doye
Applications can load 32-bit DLLs only in 32-bit mode.
How to Build a .NET Solution or Project from a Command Prompt
by Deepak Choudhari
You don't always have to use Visual Studio to compile your solution or project; you can build from a command prompt.
Automating Visual Studio Solution Builds
by Srinath MS
Ever wanted to build a Visual Studio solution automatically? A simple batch file suffices.
Using the Final Keyword in Java
by Ashu Passi
Learning the ins and outs of using Java's final keyword.
What Is the Smallest Object Size Possible in C/C++?
by Alexander Ocher
What is the smallest object size possible in C/C++? One.
Quickly Set the Project Build Order for a .NET Solution
by Srinath MS
You must manage the build order when some projects in the solution have dependencies on others; those projects that others depend on must be built first.
Determine Whether a C or C++ Compiler Was Used to Compile Code
by Alexander Ocher
The code below uses standard, pre-defined macros to determine whether a C or C++ compiler was used to compile the code.
Potential Problems with Friend Classes and Functions in C++
by Alexander Ocher
In C++, it is possible to declare as a friend a class which was not declared anywhere else. This behavior is specified in the C++ Standard (11.4), but it can lead to problems if used incorrectly.
Reverse Engineer .NET DLLs
by Vinay Pole
If you've ever wanted to know how something in the .NET Framework does what it does, check out .NET Reflector.
Typeid: Cross-Platform/Compiler Issues
by Amit Gupta
typeid should be used cautiously when an application is targeted for multiple platforms.
Specify Default Reference Assemblies for Command Line Compilation in .NET
by Vishant Patel
This cool little trick eliminates the need to specify that long list of assemblies at the command prompt.
View the Bytecode Contained in a Java Class
by Jospeh Fernandez and Steve Simon
Find out how to use the 'javap' application (javap.exe) as a disassembler to view the bytecode inside a Java class.
Does the Compiler Always Create a Default Constructor?
by Saurabh Ramya
The compiler does not create a defalut constructor is you do not define one.
Restricting Implicit Conversion
by Saurabh Ramya
Learn how to restrict implicit conversion in C++.
Getting Around the Java Compiler's 64K Limitation
by Amit Jain
Find out how you can use inheritance to work around the Java compiler's 64K limitation.
Scope of Variables Declared in for()
by Sriram Swaminathan
The new ANSI C++ standard specifies that variables declared as in for(int i=1; ...) have a scope local to the for statement. Unfortunately, older compilers (like Visual C++ 5.0) use the older ...
Using Pointers as Integers
by Danny Kalev
In the early days of C, pointers were plain integers. Relics of this approach can still be found in vintage APIs and legacy code. For instance, the ANSI C <signal.h> header declares the ...
A Recommended Exception Handling Policy
by Danny Kalev
Exceptions report abnormal runtime situations. Although you have other mechanisms for detecting and reporting runtime errors, exceptions are advantageous because they automate the process of ...
If Your Compiler Doesn't Support snprintf() Yet
by Danny Kalev
Sometimes, sprintf() is unavoidable. For example, when compatibility with C is paramount, Sprintf() has a safer version called snprintf(), which doesn't write past its buffer's limits. However, ...
A Beginner's Checklist
by Danny Kalev
Beginners and even experienced programmers who switch to a new compiler suddenly discover that their programs don't compile anymore. Sometimes the programs compile but produce numerous warning ...
1-20 of 71     Previous     Next
Thanks for your registration, follow us on our social networks to keep up-to-date