
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.
Const NCBNAMSZ = 16Private Type NCB ncb_command As Byte ncb_retcode As Byte ncb_lsn As Byte ncb_num As Byte ncb_buffer As Long ncb_length As Integer ncb_callname As String * NCBNAMSZ ncb_name
In Web development, putting too many records from the database into the Web server is memory intensive processing. This is where the concept of paging comes form. At any point
In Palm OS, the memory chunk size is 64K. To make applications larger than this, you have to split the applications into segments less than 64K. These are called multi-segment
This can be used when you want your users to BookMark your site or add your site address to their favorites list. The following Javascript function can be called whenever
Normally, options in select control will be added at design time or will be created on the server site. This code explains how to add options to the select control
To simulate a Matrix class with M*N elements, initialize a vector withM*N elements and overload the () operator such that Foo(i,j) returnsFoo[i-1+M*(j-1)]. This way Foo(1,1) is equivalent to Foo[0], Foo(2,1)
To help declare variables of the right datatype and size while creating Stored Procedures, this stored procedure accepts the name of the table and returns the variable list with all
A common mistake in C++ programming is typing = instead of ==. This can be due either to a typo error or because you are used to other languages such
It is often useful to make a breakpoint by calling the DebugBreak function. However, this is not necessarily always convenient because the breakpoint will occur in DebugBreak call stack. You
Generally, from an OOP perspective, the direct access to data members should be prevented. This is why we use accessors: Class UserDetails{public: string getUserName() const; void setUserName(const string& name); string
In the below program, pass any java class name into the method forName of the class java.lang.Class type. Cast it with your java class (in this example “AnyClass”) and get
String htmlLabel = “HTMLLabel” + “Multi-line” + “Extra-line”;JLabel label = new JLabel(htmlLabel);
JavaScript lacks the Trim() function. See below the code for trimming a string: function LTrim(ValueToTrim){ValueToTrim =ValueToTrim.toString()var WhiteSpace=new String(” “);var i=0;while(WhiteSpace.indexOf(ValueToTrim.charAt(i))>-1){ i++;}return ValueToTrim.substring(i);}function RTrim(ValueToTrim){ ValueToTrim =ValueToTrim.toString() var WhiteSpace=new String(” “); var
First, you have to disable the Anonymous access for the site and activate Window/Basic Authentication. You can get information about a logged on User with: Loggedonuser=Request.ServerVariables(“Auth_User”) You can get the
Many developers use the CASE statement in the select list of a SQL statement. But not everybody knows that it can be used to do so much more. One example
If you have a database that’s been upgraded from SQL Server 6.5 to a newer version (like 7 or 2000), but it’s still in compatibility mode 65, you can’t use
Sometimes you need to enforce objects of a certain type to be allocated only on the free store (heap) rather than on the stack.That’s if you need somewhere to call
Managing Unicode strings (LPWSTR, BSTRs, etc.) is now a very common task. However, Visual Studio 6 does not allow you to view Unicode strings correctly in the watch window. It
In Java, message digest is represented by “java.security.MessageDigest class”.All main classes in java.security package are instantiated using the factory method “getInstance()”.This method takes the String parameter, which is the name
Message digest is a hash code of a byte sequence (message).It has certain properties that make it very unique and very useful: It has a fixed size (in bytes), which
Using this code will rewrite all the rows in MS Flex Grid and it supports alphanumeric as well as numeric sorts for specified columns.Good Luck! Option ExplicitPublic Sub QSort(Grid As
Don’t forget to turn off the .sorted property on the combo box before calling! ResortCboFromAlphaToNum cboAbcPublic Sub ResortCboFromAlphaToNum(cc As ComboBox) ‘resorts given combobox from alpha sort (usual) to numeric sort
Sometimes you want to initialize arrays with values, but you can’t because you’d have to provide values explicitly. There is a way to generate these kinds of assignment statements.Say you
This is useful in gathering the title information of the forms for your program or other programs. You retrieve the information and display it for your user or use it
You should lock controls (that have the .locked property) rather than setting .enabled = false.Why? Grey text in a disabled field is less readable. Also, blank fields give no indication
This ActiveX DLL project lets you parse an INI file and browse its contents using an object-oriented approach. The main object is the INIFile object, which exposes a collection of
Option Explicit’ This structure holds Bitmap informationPrivate Type BITMAP bmType As Long bmWidth As Long bmHeight As Long bmWidthBytes As Long bmPlanes As Integer bmBitsPixel As Integer bmBits As LongEnd
‘ This structure holds Bitmap informationPrivate Type BITMAP bmType As Long bmWidth As Long bmHeight As Long bmWidthBytes As Long bmPlanes As Integer bmBitsPixel As Integer bmBits As LongEnd Type’
‘ Draw a polygon, given its center and number of sides’ CTRL can be either a form or a PictureBox control.’ ANGLE is an optional angle in degreesSub DrawPolygon(ctrl As
‘ This structure holds Bitmap informationPrivate Type BITMAP bmType As Long bmWidth As Long bmHeight As Long bmWidthBytes As Long bmPlanes As Integer bmBitsPixel As Integer bmBits As LongEnd TypePrivate











