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.
To an extent, the orthodox approach of dedicating a separate .cpp and .h file for every class is the way to go. However, in real world programming, you soon find
There are many applications that store numbers in strings that also contain text. For example, some databases store dates as strings in the form of “01Jan”. You can extract the
Question: Can I write statements to add/delete the control objects like command buttonsat runtime like we do in java C++ ? Iam under the assumption that once we populate a
Question: Is there a way to refresh or redraw part of a screen display using HTML and JavaScript without using frames? I want the top 1/4 of my screen to
Question: I am using the eventObj.x and eventObj.y to obtain the position of a link when the mouse is over it to determine where to show a help text box.
Question: I am trying to use document.writeln to write a table onto a floating menu bar. Part of the table cell’s events is Java code. When it reaches the semicolons
Question: In Microsoft Internet Explorer, I can specify a style as TABLE.listTable { font-size : “10pt”} and all the cells of the table will have a 10pt font size. In
Question: We are doing a small site with some ASP content. When we get data from a memo field that has CR/LFs at the end of the lines for formatting
Question: Can I instantiate an abstract class? Answer: No, you cannot instantiate an abstract class. However, you can declare a pointer or a reference to it: class Abs{public: virtual void
When ADO encounters an error, the Errors Collectionis filled with certain specific details on the causeof the error. You can check the Errors collection ofthe Connection object whenever you encounter
You should always use Option Explicit statement in your .asp file. Thisstatement will enforce that you explicitly declare all the variables in thescript. The whole problem: VBScript allows you to
You should always prefer to use Local variables. Local variables reside within functions and subs. They have local scope and limited lifetime. These variables are compiled into numeric references and
Here is a simple way by which you can display a greeting message to a user at the time of login.There are certain scenarios where you can use thisfeature to
The type that a template takes as an argument must have external linkage. This means that you cannot instantiate a template with a locally-declared type: int main(){ struct S {
A function’s signature consists of the function’s parameter list and the parameters’ ordering. A member function’s signature also includes the const/volatile qualifiers (if any) of that function. Signatures provide the
Question: How can I determine the maximum size of an INPUT field? Answer: Although you can certainly use JavaScript to find out the size of your user’s screen or the
Question: How can I create a “browse” facility in my application—something which throws up a dialog box that allows the user to view folders and select one, as in Microsoft
Question: I have Exchange 5.0 running on a server that has become too small to do everything asked of it. I bought Exchange 5.5 Upgrade and a totally new copy
Question: I’m trying to declare some data for an object such that, when necessary, other functions can use the object not only to perform member functions but also serve as
Question: Is there a maximum URL length? One of my forms has a bunch of text fields on it so I am concerned that it might truncate when I pass
Question: Is there is a way to create a text field that only accepts numeric input? Answer: There are probably a couple of a ways to go about doing this.
Question: How can I prevent certain files on my site from being bookmarked? Answer: There is no way to fully prevent people from bookmarking a certain URL on your site.
Question: I have var1 and var2 both ints in a DB (only ints will be entered into var1, var2). But I want the result to show answer with decimal places:
Question: I have a table with a text field that stores a long description. When I use the Select statement to query the table, it only returns 255 characters. How
Question: When I try to do a simple insert in a table with 25,000 records, it takes a long time do execute. In the same database for a table with
Question: When I execute this query: create table #T1 ( pk numeric( 9 ) ) drop table #T1 create table #T1 ( pk numeric( 9 ) ) drop table #T1
Question: I have an HTML page that is broken up into two different frames. The left frame acts as a navigation tool. The right frame is the user interface, which
Question: I have produced a bunch of DHTML library functions that work in a cross-platform environment, down to the point of redefining the layer object in Netscape and writing customized
Question: When I define a window “in desktop” with the main Visual FoxPro window hidden, I can’t get it to show up using Show Window or Activate Window while the
Question: I want to output a report by Visual FoxPro 6.0 and fax it by WinFax Pro 9.0. I can output my report to an ASCII file which is then