I to see two errors in you code, the first is in Main program add this at Activity_create
and the other fail is in Custom_Calendar class, add this
Code:
Public Sub Initialize(vCallback As Object, vEventName As String, Ww As Int, Hh As Int, BeginDate As Long, ld As List) '* * * NEW 02/08/2015
the variable 'Wv' is not declared, and some variable more not declared in class