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.
‘ convert from degrees to radiansFunction DegreesToRadians(ByVal degrees As Single) As Single DegreesToRadians = degrees / 57.29578End Function’ convert from radians to degreesFunction RadiansToDegrees(ByVal radians As Single) As Single RadiansToDegrees
‘ arc tangent of Y/X – returns values in all four quadrantsFunction Atn2(x As Double, y As Double) As Double If x = 0 Then Atn2 = Sgn(y) * 1.5707963267949
‘ hyperbolic sineFunction SinH(value As Double) As Double Dim temp As Double temp = Exp(value) SinH = (temp – 1 / temp) / 2End Function’ hyperbolic cosineFunction CosH(value As Double)
‘ arc sine’ error if value is outside the range [-1,1]Function ASin(value As Double) As Double If Abs(value) 1 Then ASin = Atn(value / Sqr(1 – value * value)) Else
‘ hyperbolic arc sineFunction ASinH(value As Double) As Double ASinH = Log(value + Sqr(value * value + 1))End Function’ hyperbolic arc cosine’ error if NUMBER is inside the range [-1,1]Function
‘ Cotangent of an angleFunction Cot(radians As Double) As Double Cot = 1 / Tan(radians)End Function’ Secant of an angleFunction Sec(radians As Double) As Double Sec = 1 / Cos(radians)End
When you have multiple windows open in your Visual InterDev developer’s environment, it is easy to lose track of where they all are. Rather than trying to park the windows
Question: I am Web site developer assisting a Visual FoxPro developer in distributing his creation via the Internet. He wants to create a 30-day trial version for distribution in this
Question: I am creating a CSV file from a table via the export command and would like to give the user the option to name the CSV file at execution
Question: I’m trying to set up an SQL call (in ColdFusion) to a program (TESTOUT.PRG) that uses the FoxPro COPY TO command and user-supplied parameters to output the desired file
Question: I have a table containing records collected at variable times. How do I “roll up” the data to average over 15-minute periods in a query? Answer: I think I
Question: How can I select rows in a table and output them as columns in a resulting table? In other words, I need to “flip” my rows to columns and
Question: Is there a third-party tool that can be used to document VFP Class libraries and their components? Answer: VFP’s Re-Engineering wizard can move your classes to Rational Rose and
Question: Is there a way to prompt an end user to restart his machine after running the setup program to install my software? (I am developing in VFP 3.0 under
Question: We are looking at Visual Studio 6 as a development platform. Studio 6 contains Visual C++, Java++, and VB version 6. Can I use this development platform to create
Question: Can auto_ptr be used to hold a pointer to an array of objects? For example: auto_ptr p = new int[10]; When auto_ptr is destroyed, will it call the correct
Question: I have written this very small program in Microsoft Visual C++ and it seems that STL is dumping memory: #include #include using namespace std ;void main(){ _CrtDumpMemoryLeaks( );} The
Question: My small program (see below) below compiles and runs correctly on one machine and generates the following error on another: ‘operator
Question: I recently modified the following under my application’s class libraries… app_aboutboxapp_splash I rebuilt the project and executable, but when I run my application, text and images from both the
Question: I’m wondering whether there is any good replacement for Java’s “finally” keyword (that executes regardless of whether an exception is thrown a keyword) in C++. I’m trying to switch
Question: I have set Home as C:MyApp in Project Information. VFP has no problem finding the project, but when I do a build and, while running, click a link to
Question: I am having trouble getting an ASP page to look the same in Internet Explorer and Netscape. I am using multiple tables because I have different sections to place
Question: What is the best way to go about simulating a PDA (personal digital assistant) in a Web page? I want to simulate a change of menu many times. Can
Question: Can I find the text on an HTML page from another window (where the find option is available)? Answer: If you are using Netscape Navigator 4+, you can use
Question: I want to create a consistent look and feel to my site. Without using frames, how do I apply a template to all my Web pages that will include
Question: We have a legacy database system called Universe, which is owned by Ardent Software. Ardent offers a product called uvObjects which is a single-threaded DLL that can be loaded
An overlooked feature in FrontPage 2000 is the one-click tool to add a nice bevel to your graphics. A bevel makes the image stand out from the page and adds
You can make your site easier to find by adding keywords to your HTML pages. Some of the major search engines look for keywords to index your content. FrontPage 2000
Question: What is the location of the users’ mail boxes so I can back them up to a tape? Also, where are the Internet e-mail tracking log files stored? Answer:
Question: Which implementation works faster, ADO or ODBC? Is there any relevant information (or benchmarks) comparing the difference between linking directly to the ODBC or accessing databases through the ADO











