Tip Bank

DevX - Software Development Resource

Atn2 – Arc tangent of Y/X

‘ 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

DevX - Software Development Resource

Cot, Sec, Csc – Missing trig functions

‘ 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

DevX - Software Development Resource

Cycle Through Your Visual InterDev Windows

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

DevX - Software Development Resource

Ambiguous Operator Error

Question: My small program (see below) below compiles and runs correctly on one machine and generates the following error on another: ‘operator

DevX - Software Development Resource

Data Rollup

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

DevX - Software Development Resource

Iostream Objects’ Memory Use

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