Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. I was never really satisfied with the above code as it was very rushed and as already stated written with much Guiness being consumed, however it met my needs at the time... After reading Test-Driven Development in Microsoft .NET as recomended by our own Nerseus I felt it was a good a topic as any to try and put the techniques into practice. So far it only supports v1 and v1.1 tags (2.0 is a big leap forward - but may happen in the future). The library is written in C# as are the included tests, there is also a very basic UI written in VB.Net (I didn't realise I was using VB until I had pretty much finished the front end and couldn't be bothered doing it again in C#...) If you want to run the tests yourself you will need to obtain a copy of NUnit and the test mp3s can be obtained Here. In a debug release it will compile 'as is', to do a release build you need to provide a strong name key file - path is in the assemblyinfo.cs. If you use the link to the above test files you can edit the path to them in the MP3TagTests.config file. I do intend to continue developing this to support v2 tags but will probably continue development with VS 2005 as this will allow me to take advantage of generics to manange collections of frame types and also an easier time with the improved IDE (refactoring and intellisense improvements). MP3Tags.zip
  2. It's also a lot easier to introduce subtle errors with it turned off. Turning it on requires you to be more explicit about your intentions.
  3. Firstly I would recomend putting Option Strict On at the top of the file and fixing any problems it generates (e.g. what data type is abc supposed to be declared as?) Does the decode function always return a a value?
  4. What does the code from the VBS scripts look like for connectiong to AD? Also why would you want to connect to a specific server to query AD? If the infrastructure is correctly setup then you should be connected to a convenient server anyway...
  5. Three things worth mentioning here: Firstly: bet your glad you took a job in development ;). Not to put you off too much but in most places that kind of 'standard' is typical. Secondly: It either could be worse or a source of material - http://www.thedailywtf.com Thirdly: On the subjects of un-commented code I remember my brother once mentioning in an Informix application he once worked on he found about 7 or 8 functions to handle number rounding - due to the total lack of documentation, coments and senesible naming schemes he ended up adding another 2 routines of his own... (I'm sure somebody from the same genetic stock as me would have made sure those ones were commented etc ;))
  6. When you display the form use .ShowDialog rather than .Show e.g. Dim f as new AboutForm() 'assume that is the name of your form f.ShowDialog()
  7. You probably also want to handle pasting of text into the control as well ;) an easy one to miss. Never underestimate the end user :)
  8. ADO.Net has a totally different implemetation for Data access compared to ADO. In ADO.Net the majority of data access is done in a disconnected fashion anyway. It may be more useful if you gave a bit of detail about what you are trying to do and see if anyone has any useful advice.
  9. What are datareaderProjects and datareaderAllProjectStages? If they are DataReaders as the names suggest then you will have problems reusing the objects. If they are DataSets / DataTables things will be a lot easier as you will be able to bind to a DataView rather than the DataTable directly. Simply create a DataView on top of the Stages DataTable and then set it's .RowFilter property to be the criteria of what to display - this can be done in the SelectedIndexChanged event of the Projects dropdown. Then bind the other dropdown to the dataview.
  10. It may help if you gave a little more detail about what you are trying / wanting to do with the command prompt. Also this forum is geared around the .Net framework and associated languages and tools - just wondering if you were aware of this as nothing in your post mentions any choice of programming language or seems to be related to software development...
  11. Which line did the error occur on though? Also is an item selected?
  12. You will probably find the image that works has an alpha channel specfied which makes the black transparent. What image editor are you using to create your sprite? Does it allow you edit the Alpha channel of an image?
  13. http://www.webdav.org/ If you are using SQL server then you would have a totally different connection string anyway - you would not be connecting direct to a file. However if SQL is on the same server you could get away with something like Data Source=(local) to identify the server.
  14. For that to work the .mdb file would be accessible to everyone from the url - not a secure option. Plus unless you are using something like WebDAV it would not be treated like a normal file anyway. What you will need to do is get the filename at runtime via Server.MapPath(...) e.g. String ConnString = "Driver={MS Access Driver (*.mdb)};Dbq=" + Server.MapPath("bin/users.mdb;")
  15. You need to investigate reflection if you want to do this with objects that aren't under your control. Clicky for an example.
  16. Any chance you could post the code you have? Or failing that could you post a sample of the XML itself and what kind of things you are wanting to get from it / do with it?
  17. Any chance you could post the code you are using?
  18. Easier way is just to use a Literal control rather than a label.
  19. You could also create a class that exposes the returned values as properties and return an instance of the class.
  20. C# has a foreach operator that behaves the same as For ... Each in VB have you looked into using that?
  21. Not too sure if Delphi has any other deployment issues... Do the target PCs have the framework installed already though?
  22. Firstly they will need the .Net framework installed and then any other files you have referenced in your project. If you are also making calls into things like MS Office they will also need to be installed on the target PC. How are you currently deploying the project? After a build the majority of the required files will be in the bin folder. Also have you looked at creating a set up package from within VS to ease the deployment?
  23. If you right-click on the window there should be an option to display in hexadecimal or not.
  24. Attachments are encoded either as UUENCODE (old method, not as common these days), or as MIME. Both encodings take an 8-bit binary stream and convert it into a valid 7-bit stream as per the relevant RFC (IIRC RFC 822)
  25. In your code WinForm is the class name (or type) of the form. You need to set it for the current instance. Try using this.TopMost = true;
×
×
  • Create New...