Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
swap(int & a, int & b){a ^= b;b ^= a;a ^= b;}
Some of the most irritating and difficult-to-trace bugs are the ones relating to uninitialized or inaccessible memory locations. This problem becomes especially severe when dealing with parameters that are pointers.
Sometimes it’s useful to get information from a text property file, especially when you want to change values inside classes without recompiling them every time. A simple (and fast) way
You can do this without using the classpath directive at the command line. How? Easy! Just write a launcher! Here’s the code: /* Allow you to type “java QuickRunner” instead
Send an email without using JavaMail API, by using the Java Core packages(java.net.*;java.io.*) to pass three parameters. The first parameter is the SMTP mail server, the second parameter is the
Start the JVM with the “-D” switch to pass properties to the application and read them with the System.getProperty() method. SET myvar = Hello world Set myothervar = nothing java
Many programmers are familiar with declaring an object variable in class modules and other places to capture events from a form and handle them in a generic way: Private WithEvents
Sometimes you might need to determine the full path name to a Windows executable file associated with a given file extension. The usual recourse is to use the FindExecutable API.
When generating a data report based on an ADO recordset linked to a remote database (such as Oracle or SQL Server), you can end up with a blank report. Try
While designing multilingual applications, I had to make them respond when a user changes the Windows locale setting
The MDI look seems to have gone out of favor recently, judging from the popularity of the Explorer and Outlook styles in modern apps. Maybe that
This easy routine copies the contents of a listview, including column headers, to the clipboard for pasting into Excel or other applications: Public Sub SendToClipboard(ByVal ListViewObj _As MSComctlLib.ListView)Dim ListItemObj As
Have you ever wanted to have a hard copy listing all the VB error messages? Create a new standard EXE VB application and drop this code into the Load event
his article benchmarks a few different ways to access data using ADO.NET. Hopefully, after seeing the results of these tests, you will have a better idea concerning what approach to
SP.NET Web applications have a built-in way to access simple name/value configuration data. In the Web.config file, you can create an section that lets you store simple name/value pairs. For
The Clip property of the Cursor is the rectangle within which the mouse cursor is confined, or its value is Nothing if the mouse can move over the entire screen.
Pasting data from the clipboard requires more code because you must ascertain whether the clipboard contains data in one of the formats you’re willing to process. First, use the Clipboard.GetDataObject
n case you ask yourself how this security model can be useful, just consider if the Windows operating system could currently apply a CAS such that no code downloaded from
Application recycling is a great feature that lets you configure an application so that ASP.NET automatically shuts it down and restarts it after a given period or a given number
As in classic ASP, you can use the Server object from inside any ASP.NET application. This property returns a reference to an HttpServerUtility class.The HttpServerUtility class exposes only two properties:
The ASP.NET Response object has been greatly expanded in its capability to send output to the client browser. For example, the WriteFile method can send the contents of any text,
The new SaveAs method of the Request object saves the current HTTP request to a file, which can be very useful for logging and debugging reasons. You should pass True
The Url and UrlReferrer properties of the Request ASP.NET object return a reference to the URL of the page and the URL of the page that referred to this one.
hat do a command shell, an online ordering system, and a report generator application have in common? Not much, really. Yet they all base their operation on an external source
oliage Software Systems has put Enterprise Java and .NET through their security paces, and what they discovered can help you decide which platform offers the more secure environment for your
lthough you may not be able to switch to ASP.NET at your location, you can take full advantage of XML and XSLT transforms now to make your site more flexible,
A very customizable ToolWindow for all development environments(like .NET,Visual Studio6, Java) that inserts text, executes macros, launches programs(with parameters), and launches webpages. More than just inserting simplecode, you have 15
Thanks to the GetDirectories and GetFiles methods of the System.IO.Directory class, you need very little code to iterate over all the directories and files of a directory tree. For example,











