devxlogo

Tip Bank

Print a Stack

If you have a line in your code you are trying to debug or you don’t know how you got there, or where you came from (who called it), you

Avoiding Unnecessary Catch Blocks

The result of adding unnecessary catch blocks is code like this, where exceptions are caught and then immediately re-thrown: try { // some code here } catch (Exception e) {

Retrieve a Parent Directory From a Path

You can retrieve the parent directory from a path by identifying the first and last backslash. The start position for the first backslash should be 3 in order for it

CConsole – A class for creating console applications

‘ CCONSOLE Class” Creates a console window and writes to it’ Example:’ Dim cons As New CConsole’ cons.WriteString “Hello World”Private Declare Function AllocConsole Lib “kernel32” () As LongPrivate Declare Function