948 Posted Topics
Re: I think the easiest way to approach this is to give your application knowledge of what columns contain which data. Simply keep track of what row you're dealing with and increment through each iteration of your export. | |
Re: What we know as the internet now will disappear, eventually. The internet from back in the 90's has already vanished. It will probably end up the way of many other things and sold to you in packages. It will become a forum for big businesses and professionals. Amateur websites will … | |
Re: > There is only one time I will turn to StackOverflow over DaniWeb and that is for XSLT problems because I know the forum is not the most active compared to the SO one and work issues generally need to be resolved quickly. Argh! XSLT *runs and hides* I've just … | |
Re: *Deleted* I posted in the wrong thread | |
Before I start, I'm afraid I have to say I cannot reliably reproduce this, but it has happened to me twice today. When replying to a post I press the button to confirm, the button disappears, replaced by the "Watch This Thread" button, however, the post is not submitted. The … | |
Re: What have you done so far? What specifically do you need help with? Did you read any of the stickies or the posting rules? | |
Re: Have you tried a more optimisitic locking strategy? (See line 20) | |
Re: Rather than trying to work with strings, place it into a data structure. It will be much easier to work with. eg. public class Weather { public String Outlook {get;set;} public String Temperature {get;set;} public String Humidity {get;set;} public String Windy {get;set;} public Boolean PlayTennis {get;set;} } Then you can … | |
Re: Are the dll files being copied to the correct directory by the installer? They will need to be in the same folder as the executable. Also make sure that any dependencies that MySql.Data has are also included in the installer and get installed into the same directory as MySql.Data. | |
Re: How does form2 get shown? Are they both showing simultaneously? | |
Re: You don't need to put the cursor back into the text box. Simply intercept the key being pressed in your keydown/up and update the string in your textbox with the new character. You may need to call refresh on your textbox control afterwards. | |
Re: Try executing the stored procedure in SQL Studio and see if it gives you the same result. It could be that; A) You created the Users table on a different schema to `dbo`. (Kind of unlikely because you'd know about it...) B) Your SQL connection string hasn't selected an initial … | |
Re: Your 0 is an integer not a string, which you are trying to concatenate to and send to a method which accepts String. You just need to put quotes around the 0 :) | |
Re: The problem arises that he also needs to decrypt it with the same key. So unless he transmitted the timestamp across so that the psuedorandom generator could generate the same number, this would not work. If the timestamp were transmitted, then you've just given away your key... Also, I have … | |
Re: If you're wanting to do what I *think* you want to do; you want to split your power by units of ten and the remainder? If so let's take your 33 as an example; public void Method() { int value = 6; int power = 33; int iterations = (int)Math.Floor(power … | |
Re: I'm not entirely sure what you're asking, sorry. Is it possible for you to put a code example of what you'd *like* to do? The code doesn't have to work, it's just to explain exactly what you want. | |
Re: Please show some attempt to solve this yourself. We can answer specific queries, but we aren't really into doing other peoples work/assignments/coursework for them, especially when they put no effort in themselves. | |
Re: A spam filter, at its basic level, is simply a set of rules applied to your data and it scores points based on those rules. For example; 1. Does this address exist in the CBL = 1000 points 2. Does the subject contain "$1,000,000" = 20 points 3. Does the … | |
So, in answering another thread on this forum, I decided to do some performance testing on String. Mainly because a friend of mine said "You should always use `new String` it's the fastest!". I wasn't convinced and argued in favour of StringBuilder, at which point I was directed to some … | |
| |
Re: Effectively...yes. You need to add a service reference to the WCF service in question. This will generate a "client" class for you. Use this client class to connect with the service. It will have the same methods on that your service does and you can call them normally just like … | |
Re: `new String(stringVariable.Where(c => !char.IsWhiteSpace(c) || c.Equals(' ').ToArray());` Substitute `stringVariable` for the actual variable of your existing string. This will return you a string with all whitespace except for spacebar removed. In ddanbe's defense, he replied with appropriately the right information given what you had posted. However, seeing your other post … | |
Re: Well firstly, you didn't include any kind of punctuation. Secondly, your expression is extremely vague. I cannot really continue this evaluation as I do not know what the intent of your expression is. In light of the above information, I evaluate your expression at 2 out of 5. Try harder. … | |
Re: Have you tried using XPath? It will allow you to "query" XML. For example; XPathNavigator rootNav = testXML.CreateNavigator(); foreach(XPathNavigator databaseNav in rootNav.Select("/DataBase/Connection")) Connection.Add(databaseNav.Value); or if you really want to use LINQ XPathNavigator rootNav = testXML.CreateNavigator(); var connection = from nodeSelector in rootNav.Select("/DataBase/Connection") select nodeSelector.Value; | |
Re: `string dFileName = String.Format(@"{0}", fileName);` What are you trying to acheive with this line? Also, I can't see anything wrong with your code in particular. Could you provide the code for your RenderConsoleProgress method so that I can test the code? Thanks. | |
Re: Nevermind, misread MY SQL as MS SQL | |
Re: You need to subscribe to a C# code event. Maybe have a class called "EventManager" which contains a subscribable event called "EventCreated". When an event is created, the event manager will fire the event to all the subscribers and so you know a new event has been created. How you … | |
Re: When executing SQL, to be safe, you should use parameters. Otherwise someone could quite easily perform an SQL Injection attack. More on parameters [Here](http://msdn.microsoft.com/en-us/library/system.data.oledb.oledbparameter.aspx) | |
Re: Where you assign the header text, call the array by column name rather than position number. So `dataGridView1.Columns["CashAccRef"].HeadText = "Account";` You've mis-counted your array indeces. I'm making the presumption that the naming below, is also the index position they have in the array. In which case you should be using … | |
Re: I think he means that the Workbook contains many Worksheets and he needs to delete the first worksheet before uploading it to the database. (Maybe for privacy concerns?) Unfortunately I don't know anything about using Excel in C# so beyond my interpretation I can't offer anything else ^^ | |
Re: Google for Text-To-Speech libraries. Rolling your own will be very difficult. If you can limit your app to Windows, I think Microsoft has a speech library. ![]() | |
Re: I'm sure it will be optimised this way anyway, but you might want to hint to your compiler that your `char*` are constants. `const char* s = "123";` Also, your vector, unless given a fixed size, will dynamically allocate memory on the heap internally. This is where your fragmentation may … | |
Re: You could use a `Dictionary<String, Object>`, but unless you write some really crazy reflection you can't just instantiate a named type from the database unless that type is already named in code. So if your database contains the String "Int32" you can use reflection to create a variable of this … | |
Re: You're creating a new array each time and overwriting the previous value. This way, the array will always only contain the last value you parsed. Try using a `List` and `Add`ing to it instead. | |
Re: argv will only be available from your main and contains the command arguments you start your application with. Example: `C:\>myProgram.exe input.txt` In this case `argv[0]` would be 'input.txt' You can then pass this around your application to the code that needs it. Otherwise, just use `std::cin` to fetch the user … | |
Re: You need to make a new socket object again (after calling close). Avoid calling shutdown on the socket until you've truly finished with it as there is no method to re-enable send/receive on it after they have been disabled. If you wish to use the socket again, call DisconnectEx on … | |
Re: What is the last available date? At the moment you're requesting the hard-coded date of the 15th Jan, 2013. You realise that this site only stores data up to December 2012? | |
Re: [Here you go myk45](http://globalgamejam.org/) It's pretty fun :) | |
Re: Did you set the frame to be the top level control and that it gets refreshed/updated?? | |
Re: You could do this using the WMI. However, your batch file would be the easiest way to do things. Why do you want to change it? | |
Re: /Agree Your best option is to re-write and re-compile using the C++ language and gcc compiler for Linux. Mono *might* just work, so it's worth a try, but don't hold your breath. Ensure your client understands that there will be porting work involved as you're switching operating systems. Make sure … | |
Re: The threads should manage and maintain their own resources. Also, please don't call `Thread.Abort` to end threads as this could cause *bad things* to happen (Memory Management issues and such) :P You can signal thread closure easily by shared memory, a simple `Boolean CloseThread;` and check for this. Personally, I'd … | |
Re: To expand on Chris's post, to retrieve all the information at once, you will need to do an inner join on the two tables, using EmpId as your matching criteria. As you haven't posted any of your work, it's difficult to help you any further. | |
Re: Unfortunately, if the object you want to serialize isn't marked as serializable and you can't make it such, then you can't automatically serialise it the way you're trying. However! You can serialise it yourself manually, you just need to remember to deserialise it at the other end. A good way … | |
Re: As a preference to formatting I would also nest it all, but that's just me ;) **deceptikon**: A dispose method should be coded so that it cannot throw an exception, or, if it does, bin out of the application. The only exception to this rule is ObjectDisposedException, which means you … | |
Re: Doesn't look like picture boxes are involved at all, instead painting directly on the form. Also, you're giving the form multiple paint events. So everytime your form goes to pain, it will call all three (including the built-in one that draws all your controls) The order these are called in, … | |
Re: There I was typing up all the benefits of `std:vector` until I re-read your prof. requires you to write a Linked List. Linked lists are quite simple. They are classes that hold the data and the position to the next class in the list, they may also hold a link … | |
Re: Visual Studio: CTRL+A, CTRL+K, CTRL+F On the off-chance it might be a simple solution I put it into Visual Studio myself. I added brackets to the end to make them match, but the problem goes WAY beyond that. Intellisense actually gave up trying to make sense of the code =/ … | |
Re: Your question looks very..."coursework" related and then you also ask what programming language to learn, even though you already said it has to be "Microsoft Visual C#" Hmmm... :P I suspect, in this case, the programming language you wish to learn is C#... If you Google for Object Oriented Programming, … | |
Re: Hello Jordan, Daniweb has a section specifically for VB.NET. You can find it by hovering over the "Software Development" button and then selecting VB.NET. Also, if you cannot find a thread that is currently under discussion that pertains to or solves your issue, please start a new thread :) |
The End.