Hello,
I am in the process of converting UChat from C# to VB in VWD2010. I ran into an error I can not figure out on the Global.asax file....
here is the section of code
<%@ Application Language="VB" %><%@ Import Namespace="ASPNETChat" %><%@ Import Namespace="System.Threading " %><script runat="server"> Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) ' Code that runs on application startup System.Threading.Timer (ChatRoomsCleanerTimer = New System.Threading.Timer(New TimerCallback(ChatEngine.CleanChatRooms), null, 1200000, 1200000)) End Sub
the errors I am getting are:
1) 'Timer' is a type in 'threading' and cannot be used as an expression
2) ChatRoomsCleanerTimer is not declared. It may be inaccessible due to its protection level ...... maybe declare this up top?
3) delegate system.threading.timer callback requires an addessOf expression or lambda expression as the only argument to its constructor
4) Nill constant is no longer supported; use system.DBNull instead........I change this one and then I get the cannot be used as an expression error
Or maybe someone has an example of a chat program in VB they could point me to.... I have searched all over with no luck only ones I find are in C