
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.
‘ copy or append text to the clipboardSub ClipboardSetText(ByVal text As String) ClipboardSetText(text, False)End SubSub ClipboardSetText(ByVal text As String, ByVal append As Boolean) If append Then text = ClipboardGetText() &
‘ Check whether a specified file is a .NET assemblyFunction IsAssembly(ByVal filename As String) As Boolean Try Dim asm As [Assembly] = [Assembly].LoadFrom(filename) ‘ if no exception is thrown, this
‘ Get the text in the clipboardFunction ClipboardGetText() As String Return CStr(Clipboard.GetDataObject().GetData(DataFormats.Text))End Function
Shared Function _ LoadLibrary(ByVal path As String) As IntegerEnd Function Shared Function _ GetProcAddress(ByVal hModule As Integer, ByVal procName As String) As _ IntegerEnd Function Shared Sub FreeLibrary _ (ByVal
‘ If the first argument is Nothing or a null string return the 2nd argumentFunction IfNull(ByVal value As String, ByVal defaultValue As Object) As String If Not value Is Nothing
an Francisco, Calif.?Sun says it plans to more than triple its developer base in the next few years. The plan is to target developers whose skill levels and development needs
nlike most other programming languages, C++ by default doesn’t initialize automatic variables. Consequently, uninitialized auto variables and aggregates have an indeterminate value. Due to insufficient familiarity with the correct syntax
San Francisco?Java has a new look and?it would seem?a new focus. On the first day of the 2003 JavaOne developer conference Tuesday, Sun Microsystems unveiled an updated Java logo and
etting database data into and out of business objects has always been a problem; however, now that SQL Server 2000 supports XML, you can use interesting techniques that capitalize on
anta Clara, Calif.?Among the last words spoken at a vendor panel titled Linux and Security Standards here at Jupitermedia’s Enterprise Linux Forum Conference & Expo (June 4-6, 2003) may have
enerics is one of the hottest features of Sun Microsystems’s upcoming JDK 1.5 (Tiger) release. Programmers and researchers have been clamoring for a feature like this for years, and an
This component is intended to take valid Visual Basic source code an convert it to properly colorized HTML with procedure seperators. The input can either be a file of any
‘ Evaluate the number of business days between two dates’ Example: Debug.WriteLine(BusinessDateDiff(#4/9/2003#, #4/25/2003#)) ‘ => 12Function BusinessDateDiff(ByVal startDate As Date, ByVal endDate As Date, _ Optional ByVal saturdayIsHoliday As Boolean
‘ Evaluate the Easter date for a given year’ Example: MessageBox.Show(EasterDate(2003).ToLongDateString())Function EasterDate(ByVal year As Integer) As DateTime Dim g, c, h, i, j, l, month, day As Integer g =
‘ Add or subtract a number of business days from a date’ Example: Debug.WriteLine(BusinessDateAdd(#4/9/2003#, 5)) ‘ => 4/16/2003Function BusinessDateAdd(ByVal startDate As Date, ByVal days As Integer, _ Optional ByVal saturdayIsHoliday
‘ Evaluate the age of a person, given his/her birth date’ Example: Debug.WriteLine(Age(#9/28/1980#)) ‘ => 22Function Age(ByVal birthDate As Date, Optional ByVal currentDate As Date = #1/1/ _ 1900#, Optional
rom the get-go, Microsoft’s huge (10,000+ attendees) Tech?Ed conference in Dallas has been primarily about acting defensively?turf protection rather than turf expansion: protecting networks from intruders, protecting users from spam
n my last article, I explained how to use the XML Data Source Object to extract content from an external XML file or XML data embedded in the HTML file
t is sometimes challenging to create and organize XML documents. This is even more true if the document content needs to be presented in several different languages. It creates unwanted
XML is not all it could be. Despite all its promise for free data exchange among disparate applications, Web application developers still contend with XML’s shortcomings: it’s too verbose, it’s
or the past several years, browser development for Windows has been more or less stalled. Sure, there have been under-the-hood improvements; but the basic browsing feature set has remained nearly
EA revolutionized the Java Web services world with WebLogic Workshop 7.x, which abstracted all the infrastructure details of the Web service and allowed the developer to simply develop his or
This little bit of code is great for doing stuff like “COPYRIGHT 1998?(present year).” It saves Webmasters from having to cull through their source code looking for the year (every
Graphics applications sometimes require users to select a rectangular region of a picture or drawing visually. You need to provide a resizing box manipulated by the pointer at run time
This add-in for VS.NET 2003 automatically: 1) Registers the assembly in the GAC right after it has been built. 2) Exports types to COM: produces the type library (and registers
The VS.NET’s Tools menu can be customized with your own commands, to launch external programs. For example, you may want to have a command that opens the current project’s folder
As explained in this article, the applications you create with one version of the framework, can target only that version or both, according to the settings you put in the
If you open the VS.NET documentation (either from within the IDE or by clicking the respective icon under the Start | Programs| Microsoft Visual Studio 2003 folder) you can use
VS.NET 2003 comes with a nice feature that allows you to automatically run an external executable file before or after a build. For example, you may want that after a
You can get the serial number of your hard drive, floppy disk, or CD-ROM easily without any additional ActiveX component. First, start a VB project, add a standard module, and