Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Does the document reference any external files (XSLT for example)?
  2. Public Function checkfiles() as Boolean fileExist = System.IO.File.Exists(databasepath + databasefile) If fileExist = False Then MsgBox("Error: Can't find the database file. Please check your setup and make sure your Database folder is correct.") Return False End If fileExist = System.IO.File.Exists(configpath + configfile) If fileExist = False Then MsgBox("Error: Can't find the Configuration file. Please check your setup and make sure your Database folder is correct.") Return False End If Return True End Function
  3. If you are writting the DLL go for a project type of 'Class Library'
  4. guess that means it's only there in VS 2003 ;)
  5. Was the DLL written in C++ or Managed C++? If just C++ then it could be quite messy to call from .Net - you will have to either write a managed wrapper or dllimport all the exposed functions into the .Net Windows app. If it is a managed DLL (or a Managed wrapper) you can simple set a reference to it from Visual Studio and access it's classes. Any .Net compatible language should work with a Managed DLL regardless of the language used to write it.
  6. tools->Options->Text Editor->Basic->VB Specific->Show procedure line seperators. Only works for VB though not C#.
  7. You could always use AddHandler and RemoveHandler to wire up the events as and when ypou need them. This means you could decalre the variable as normal within a procedure and still get access to it's events.
  8. You will need to add a reference to it before you can use it.
  9. What does the main subroutine look like?
  10. try ReDim Preserve myStringArray(30, 3, 12)
  11. lblUser.Text = "string" the caption property has been renamed to .Text now. As for using forms things have changed alot - gone more Object Orientated now see the following for more info. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=76208&highlight=form+show+hide http://www.xtremedotnettalk.com/showthread.php?s=&threadid=70825&highlight=form+show+hide
  12. What error does it give? have you tried converting the label contents to a number first? dim ans as double ans = double.Parse(lblSubTotal.Text) - double.Parse(lblAdvance.Text)
  13. http://www.allapi.net/classlib/class.php?id=15 may be worth a look
  14. System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(); System.Data.SqlClient.SqlCommand cmd = new System.Data.SqlClient.SqlCommand(); //Open connection as per usual conn.ConnectionString="Data Source=.;Initial Catalog=Northwind;uid=sa"; conn.Open(); //backup database cmd.Connection=conn; cmd.CommandText="BACKUP DATABASE TO DISK = '' "; cmd.ExecuteNonQuery();
  15. Which lines do you get the error on? also won't the line gdblradtimeline = TestScore - TestScore always equal 0?
  16. I found the following url to be one of the more understandable Managed DirectX tutorials. http://staff.develop.com/candera/weblog2/articleview.aspx/DirectX/Direct3D
  17. IIRC Application.Run doesn't work from a console application - it is designed to keep the windows message pump working if the original form is closed.
  18. The following just simply prints the information in two message boxes - you could just parse the dr.GetString() into variables instead. Dim dr As SqlClient.SqlDataReader Dim conn As New SqlClient.SqlConnection("Data Source=.;Initial Catalog=Northwind;Integrated Security=true") conn.Open() Dim cmd As New SqlClient.SqlCommand cmd.Connection = conn cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = "sp_spaceused" dr = cmd.ExecuteReader() dr.Read() MessageBox.Show(dr.GetString(0) & " " & dr.GetString(1) & " " & dr.GetString(2)) dr.NextResult() dr.Read() MessageBox.Show(dr.GetString(0) & " " & dr.GetString(1) & " " & dr.GetString(2) & " " & dr.GetString(3))
  19. Sub main() Console.WriteLine("Welcome to .NET") Console.ReadLine() 'Will pause till enter pressed End Sub
  20. After you've looped through the first 3 records using the Read method call the datareader's NextResult method to move to the start of the next set of results.
  21. If you are contacting computers over routers / firewalls / NAT etc the forwarding of packets is their problem. You would still use the IP address of the machine you need to connect to, it would require the overall TCP/IP infrastructure to be configured correctly to allow the packets to reach their destination.
  22. You probably have a firewall / NAT or similar between you and the Internet as 10.x.x.x address are not valid for use outside the local network. This could be made to work but for external clients comming in the firewalll would have to be configure to forward the relevant ports.
  23. May want to have a look at http://www.icsharpcode.net, they have an open source IDE - part of it is a text editor similar to what you requested. If you really want to write one from scratch it will be an awful lot of work.
  24. Never tried it but I would imagine the properties HelpKeyword / HelpNavigator or HelpString would provide that functionality.
  25. Single.Parse is a shared function of the Single DataType. It will parse a string and return a Single. Similar functions exist for Integer, Double etc.
×
×
  • Create New...