Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Something like the following should do it Dim sr As New StreamReader("data.xml") Do s = serializer.Deserialize(sr) If s Is Not Nothing Then sc.Add(s) End If Loop Until s Is Nothing
  2. Any chance you could post the relevant code?
  3. Have you looked at the WebClient class? Dim w As New System.Net.WebClient w.DownloadFile(, )
  4. try Dim GetArrayList As ArrayList and see if that works your original code Dim GetArrayList As ArrayList() declared an array of ArrayLists.
  5. If you have them in the order you are saying allow iisusers in and deny everyone else. If you change it to deny users = "?" you are saying deny anyone who isn't logged in. Either way it is not rejecting users - go with the deny = "*" option. The reason you are getting the login prompt is the server is rejecting your current credentials (correct) so the browser is prompting for alternate ones.
  6. Have you tried removing the part and seeing what happens?
  7. You could always save the current date and time and the installation date and time in an encrypted format somewhere, when the application starts compare the current time to the install time and refuse to work if it has expired. If it hasn't expired then compare the current time with the time of the last application exit - if it is now earlier in time then there is the possibility of tampering with the system clock. You may need to be careful in regards to things like differing clocks for summer / winter in some countries or the possibilty of time syncronisation in a network environment though.
  8. Could you post the relevant section of your web.config - also check you don't have in the config file.
  9. If you are going to be working with forms then clicky may be worth a read.
  10. You are getting the name of the account IIS is running as. If you wish to get the name of the user logged in to your web application then you could use User.Identity.Name
  11. If you are using DirectX then you get Vector2, Vector3 and Vector4 (for 2d, 3d and 4d vectors).
  12. Do you have access to the .wsdl file of the web service? Could you post the code where you are calling the service?
  13. Could you not compile the shared files into a DLL and then reference that DLL from both projects?
  14. Could you show the code for the actual WebMethod?
  15. Under dot net you should be using the classes under System.Net and System.Net.Sockets rather than the Winsock control - the newer classes give you more control, also as the Winsock control is a VB6 component you may not be licensed to distribute it without also having a valid VB6 license. If you are deploying to a website then there is also the chance they will not let you install ActiveX controls on the server anyway. In fact if you are deploying to a webserver then you will probably restricted to HTTP traffic anyway - depending on the type of client server communication then you may want to consider a web service for the server side.
  16. The Sub New is what is refered to as a constructor, it allows you to pass in information to a class at the point of instantiation. You may find this useful.
  17. ASP.Net applications run as the \ASPNET account - this account only exists on the local machine and as such cannot be given permissions to network resources. Impersonation is probably the way to go - search these forums and you should get a few hits on the subject, failing that reply here and I'll see what I can dig up.
  18. Have you tried using the \\server\reports as a path? If so does it generate any errors?
  19. Really depends on where you currently work / are seeking work. Knowing more than one language (or development framework) can definately look good on a CV and show that you are capable of being flexible. However having the depth of knowledge / experience that comes from spending time developing with even a single language can be far more valuable. As Nerseus posted above, the language quickly stops becoming the issue. Knowing how to write robost, usable (and re-usable), stable code in any language; the ability to follow standards, design (or write code that works with existing ones) application / frameworks; Having an understanding of common design patterns and more importantly know when and why they should be used. These skills can be learned independant of any language but they need to be learned and the best way is spend time using a language to the full. Being able to prove you can develop all the way from initial idea to completed application and hence experience all stages of the design process (including testing and final polishing) will be far more useful than being able to demonstrate a basic knowledge of several languages but no real depth of knowledge in any
  20. What database are you using? How are you doing the insert (any chance of some code)? Is the insert modifying a single table or multiple tables? Are the tables heavily indexed or have any triggers attached? What other processes may be accessing the DB at the same time? You will probably find that the threads are having to wait on previous updates to complete due to DB locking etc, which is why you are not getting any noticable benefits from threads in this case.
  21. Which counter are you accessing? There is every possibility that if multiple values are being logged then the 1st may be 0.
  22. Have a look at Forms authentication - this will allow you to exactly what you require.
  23. Haven't got the DirectX SDK on this PC (yet) - however have you tried running the application in a window rather than full screen to see what line the error occurs on. Just change the Form_load event so the next to last line reads Game.Initialize(Me, False) rather than Game.Initialize(Me, True)
  24. Public Sub Main() [iMPORTANT LINE OF CODE] Dim AForm As New Form1 Just_A_Function(AForm) Application.Run(Form1) End Sub Public Sub Just_A_Function(frm as Form) frm.Text = "Form1 Title" End Sub
×
×
  • Create New...