Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
Search the Tips
Tip Bank > Tasks and Techniques

Tasks and Techniques - Page 4

Algorithms
Arrays
Classes
Controls
Data Types
Deployment
Input
  Output
Installation
Printing
Registry
String Manipulation
Threading
61-80 of 1853     Previous     Next
Multi-Threading: When printf Can Be Better than cout
by John Hendrix
printf and fprintf are much less likely to be preempted in the middle of streaming data.
Use the XSLT 2.0 Character-map Element to Replace Characters
by Leonard Anghel
Here's an example of how to use XSLT 2.0's new character-map element to replace a character (or group of characters) with another character (or group of characters) on the transformation runtime.
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.
An Improved szEncryptDecrypt VB6 Funtion
by Scott Likely
The szEncryptDecrypt function in a previous tip did not handle unicode strings properly, but otherwise worked well. The changes in the following version should work for any string by explicitly converting each character to ASCII and back.
Converting an Integer to a C++ String
by Jon Sumners
Boost libraries provide a better way to convert numbers into strings or vice versa.
Converting Numbers to Column Names in Excel 2007
by John P.
While converting to Excel 2007, I had to update the column number to string code in my program to handle columns of 703 and above (AAA). I found Yassine Moe's code and "simplified" it. This tip shows the results.
Override Base Methods in a Form
by Jayadev D
If one class is inheriting from another class, a quick, easy way to find the available overrides is through .NET's IntelliSense.
Using the SecureString Class
by Srinath MS
NET 2.0's System.Security namespace includes the SecureString class, which lets you create encrypted strings and delete them from memory when they're no longer needed.
Converting from Centigrade to Fahrenheit and Vice Versa
by Jijesh Nair
Use the following code to convert from Centigrade to Fahrenheit and vice versa.
Using ANYDATA in Oracle 9i
by Shraddha Pandya
First introduced in Oracle 9i, ANYDATA is a "self-describing data instance type" which means it not only holds the value, but it also holds its own data type within each instance of it.
Another Way to Escape Sequences in .NET Resource Files
by Nick Piazza
There is actually another way to insert escape sequences, such as newline characters—or actually any Unicode character, directly into the Resource string—without resorting to Replace or similar manipulations.
Force JScrollPane to Display a Scrollbar
by Ong Eng Hua
When it comes to using JscrollPane or other scrollable components, I've found that the scrollbar is unable to appear even when the JComponent (for instance, JPanel)'s size is larger size than JScrollPane.
Avoid Memory Corruption when Assigning a CComBSTR to a CComVariant's bstrVal Member
by Alison Lomaka
Although the CComBSTR = operator is overloaded to make a copy of the string, this is not the case when assigning a CComVariant's bstrVal member to a CComBSTR.
Workaround for the SQL DISTINCT Clause
by Srinath MS
The SQL DISTINCT clause isn't case sensitive, which means that your query might end up pulling records with different cases.
Convert "Little-Endian" to "Big-Endian"
by Leonard Anghel
This tip outlines two simple methods that help you to convert a number from the "little-endian" format to the "big-endian" format.
Declare the Coolest XQuery Variables
by Leonard Anghel
This tip shows how to declare some important variables in XQuery.
Remove MS SQL Server Completely
by Larry Sawchuk
Microsoft has several different versions of SQL and occasionally an install fails or an upgrade fails and normal uninstallation is impossible.
Make a Textbox Display Characters in a Particular Case
by Srinath MS
Learn how to use the CharacterCasing property to make a textbox display characters in acertain case.
Using CreateProcess Instead of _tspawnl to Spawn Programs
by Alison Lomaka
Using _tspawnl to spawn programs can have undesirable side effects. Learn how to avoid them.
Use String.Compare to Compare Case-insensitive Strings
by Srinath MS
Find out how to use the String.Compare function to perform a case-insensitive string comparison.
61-80 of 1853     Previous     Next
Sitemap