October 24, 2000

Informix 4GL Translators

Question: I want to purchase some software that will translate Informix 4GL to any of the following: Java, C, C++, or Perl. We have two applications that we need to get out of 4GL because of the lack of programmers. Answer: I know of no translators. You’ll need to reprogram

The const pass-by-value

Question: void foo(const int x) { // not altering x} Herb Sutter in Exceptional C++, pg.177 says, “const pass-by-value is unuseful and misleading at best.” I disagree, at a glance you know x isn’t going to change throughout the function I feel that’s useful to know. It’s 50/50 amongst people

Can 16-Bit Software Run in Windows 2000?

Question: Can 16-bit software run in Windows 2000 platform? Answer: The answer is yes and no. Many 16-bit software programs run just fine in W2K, as they did in NT 3.5 and 4.0. I still use Vernon Buerg’s LIST program. But as in earlier versions of NT programs that try

JavaScript Not Working with IE 5.5

Question: Why will this code not work with IE 5.5? Answer: It’s not a question in this case of JavaScript not working with IE 5.5, but of Java not working with IE at all. In your line of code localhost = java . net . InetAddress . you’re trying to

Deprecated APIs

Question: How do I make a method deprecated? Answer: Deprecating a method or entire class is as simple as using the “@deprecated javadoc” tag in its documentation. For example: /** * @deprecated As of version 2.3, use the newer {@link #bar()} instead. */public void foo() {} Deprecating an API does

Using cin.good() to Check Inputted Numbers

Question: I’m trying to make a calculator program using switch statements for +,-,* and /. I know how to handle and divide by zero error. I also have to use the cin.good() function to check whether the inputted numbers or the requested operation is good. Whenever I try to use

Loading a New Window from a Frame.

Question: I have a frameset that consists of two frames. The top frame is a horizontal frame that displays a bulletin message in a banner if there is some sort of system problem, like the e-mail server going down. It is 10% of the page. The second one is 90%

Passing Value to an Online Form

Question: Is it possible to use JavaScript to create a custom page and pass all the values in the page to an online form such that I do not have to enter the value into the online page again? The online form is not owned by me. Is this automation

Significance of const Return

Question: What is the significance of const return type from a function?Similar to: const int func1(); Answer: The const in this position guarantees that the caller of the function doesn’t change the returned value. Note that the use of const in a function’s return value is more useful when the

No more posts to show