
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.
When trying to use an applet inside a servlet using the applet tag: out.println(“” + “”) Two things must be kept in mind: 1.You must include the codebase in the
You can use an enum type as you would use any other type: You can create arrays thereof, allocated it dynamically using operator new, define pointers to it and return
Function lookup stops at a scope. In the case of class hierarchies, this means that a function?either virtual or not?declared in a derived class can hide a virtual member function
The 16-bit operating systems Windows 3.1x and DOS had a very intricate memory model that required the use of functions like GlobalAlloc() and GlobalLock(). These functions addressed a specific problem
The ANSI function getenv() returns the value of an environment variable. getenv() takes a C-string containing an environment variable and returns its value. In the following example, getenv() detects the
The standard typedef name size_t represents a platform-defined unsigned integral data type. If you’re a Unix or Linux programmer, you may have come across another similar typedef, namely ssize_t. This
There are two ways to embed a data island into an HTML document. The first is inline, where the XML data structure is surrounded by the tags. 3345 Deepak Pant
Question: I want to call another function only if the key pressed is a letter. Is there a way to check whether the key the user has typed is a
Question: Does STL use any synchronization, or do I have to implement it myself by critical section? Answer: The C++ standard doesn’t specify whether STL is thread-safe or not (which
Question: I am trying to convert all the LAYER tags to DIV tags. In my code, I am using LAYER.SRC to execute a sever-side macro that returns an HTML document,
Question: Is there a way (using VB) to load a Web page (without actually showing the page through a browser or otherwise) and then extract the HTML code for use
Question: Can you provide any insight on whether spider-based search engines, like AltaVista and Inktomi, can index DHTML text? Answer: The phrase “DHTML text” can mean different things to different
Question: I have an ASP called ‘default.asp’ that creates a recordset object called ‘objRS’ via ODBC. When a certain set of conditions is met, I linked it to another ASP
Question: How do you automatically select all text in a TextBox when it receives the focus? Answer: For a text box named Text1 you can use the following code: Private
Question: I can’t seem to get the switch statement to work with chars.For example: #include char answer[2];void main(){ cout > answer; switch(answer) { case ‘a’ : cout
Question: I need runtime code to find all files with *.mdb file type(Access databases) just like the Find subMenu item does in the Start Menu on the desktop. I want
Question: How you to make balloon labels show when the user moves the mouse over an object? Answer: In VB6, most objects have a ToolTipText property that gives you that
Question: I have a byte pointer pointing to a message buffer. I want to know how can I delete just the first two bytes of this message and pass on
Question: I’m working with a CCS compiler for the PIC16F877, so the rules may be different, but I’ve created my own data structure (named MERIT_long) to support >16bit values (CCS’s
Question: I want to make my site cross-browser compatible, but I rely on a lot of iframes in the IE version. According to the original HTML 4 specification, it should
Question: Is it possible to have subprocedures or subfunctions in Visual Basic?For example, in COM components we find properties being accessed using the following: myObject.Column(“myColumn”).Hide = True In this Column
Question: What are my options when I need to send multiple recordsets back to ASP from a single call? Which is the best for performance? Answer: You can return multiple
Question: I am having problem on restarting Informix after one of the chunks has been marked as DOWN. How do I change the status back to ONLINE? Answer: Depending on
Many programs access files either to read, write, or append data. For this the program needs to know where the physical file is located, besides the name of the file.
You can rename files through the use of the FileSystem object. The problem is that you would expect to find it in the document under a name like Rename. Actually,
One common problem with typing into Web forms is dealing with input fields and having your words go right off the right edge of the box into infinity as you
You can use the OPENROWSET( ) function to run a query on a remote SQL server by using the following syntax: SELECT *FROM OPENROWSET(‘SQLOLEDB’, ‘remote_server_name’; ‘sa’; ‘password’,’SQL statement’) Here replace
You can generate a GUID using SQL Server. All you need to do is open SQL Server Query Analyzer and execute following T-SQL statement: SELECT newid() This statement generates a
Question: I read the article ‘Obtaining Recordset From Middle-Tier COM Component’ and now am wondering why one would want to do this. As I understand it, this is only a
Question: We have ASP pages on a Web server with VB6 components that produce the majority of the HTML. These components run on the same machine as the the Web











