4,911 Posted Topics
Re: You have to declare your strings to have enough space to hold the longest expected string. Since you declared only one char for name (for example), any unused input chars are used to fill input requests for the other input variables. Try something like char[50] for name, etc. As written, … | |
I'm having issues with my TrendMicro anti-virus software where my disk activity hits 100% for 10-15 minute periods randomly throughout the day. TM tech support has made a few suggestions but in order to track their effectiveness I have to monitor my disk activity in such a way that I … | |
Re: Please provide more detail and show us what work you have done so far. | |
Re: Wouldn't most compilers optimize `y = x-1+1;` to `y = x;` anyway? | |
| |
Re: As a self-confessed beginner you have a lot of work to do before you can get on a real project. | |
Re: Do you have a question? | |
Re: Can you please be clearer on what you mean by "ethical hacking"? It sounds like an oxymoron to me and the word, hack, has been so horribly misused in recent years as to be practically meaningless. | |
Re: Is it part of your desktop wallpaper? Does it appear when you boot into safe mode? What if you log on as `Administrator`? On most Windows systems the Administrator account is not active. In that case, open a command shell as Administrator and type net user administrator /active:yes The next … | |
Re: Are you looking for feedback on how to improve your code? If so, I have a couple of suggestions. Aside from that, what is the purpose of the program? | |
Re: While this may show how to use the classes you have developed I think it falls far short of a Daniweb tutorial because it doesn't actually teach anything. First of all, the code appears elsewhere which means we have to rely on the content always being available on an external … | |
Re: You didn't pass `tracePackageError` an object but you are trying to reference it from within `tracePackageError` so you get an error. See [vb.net optional parameters](https://msdn.microsoft.com/en-us/library/f25e2b6b.aspx). | |
Re: If you are populating the Listview/DataGridView in a loop then I suggest you disable updates before you start the loop then enable them after the loop. This will save you a lot of processing time doing unnecessary control updates. | |
Re: I have family in from out of town for Christmas and big plans today but I will certainly drop everything and get right on that as well. | |
Re: INABIAF. It's not a bug. It's a feature. As much as it has been "explained" as to how this makes programming easier I still consider it a failing of the language. Range generates numbers starting at the first number and proceeding by the increment up to but not including the … | |
Re: How about a [dictionary](https://msdn.microsoft.com/en-us/library/xfhwa508(v=vs.110).aspx)? If you're unfamiliar with dictionaries (also called associative arrays), a dictionary is a hash table of key-value pairs. Keys and values may be just about any type. In your fictitious example the key would be a char or string and the value would be an integer. | |
Re: I can't answer that question, but I **have** noticed that things are more like they are now than they have ever been. | |
Re: If you have the room and the user folder is not too big you might try to just copy the guid-named profile to the correct username. At least this would preserve the original in case that doesn't work. If you don't have the room then just rename the guid-named folder … | |
Re: Why do you need a program to "launch" another program? I clicked the "learn more" button on their website. The first time it brought up a betting site, the second time it tried to bring up a page that was blocked by my antivirus software. Seems like a bad idea … | |
Re: I found that anything important in a meeting got said within the first 15 minutes. As such, I had a program that I could set to send me a text message about 15 minutes in. If I decided the meeting was worthwhile I would stick around. If not I could … | |
Re: Start with a small dictionary of only a few words during development and debugging. Populating the dictionary is just rote work. Do the hard stuff first. Make it work, then make it pretty. | |
Re: Try this: 1. power down the laptop 1. remove the battery 1. disconnect the AC power 1. hold down the power button for 15 seconds 1. plug in the AC power but do not reconnect the battery 1. try to boot If that works then reconnect the battery. | |
Re: Are all of the SQL related services currently running (check by running services.msc)? What is the name of your SQL instance and how are you trying to connect? Please provide a connection string if you have it. | |
Re: The problems (google) with Daniweb are not due to Dazah or to neglect on Dani's part. They are (google) due to outside forces (google) that have conspired (google) to push daniweb far down the list of google search results. What these outside forces (google) are I have no idea. | |
Re: I'm a little late to the party but I have found that when all else fails, I can often "rescue" the media with `diskpart.exe` via the `clean` subcommand. This is a command line tool that comes with Windows and which is run in a shell as Administrator. If you use … | |
Re: I posted [this code snippet](https://www.daniweb.com/programming/software-development/code/423678/create-controls-at-run-time-with-events) a while back that I think will show you how to do what you want. | |
Re: I usually do a clear with CTRL-SHIFT-DEL. What happens when you try that? | |
Re: Just a thought here... Do you have any loose cables inside your case that might be making contact with the cover? Are all the cards seated properly? | |
Re: >It's here now Well, almost. In the US, at least, the major providers have little incentive to actually make major improvements to infrastructure that would provide substantial improvements. They have taken billions of dollars that were intended to make these improvements and instead just kept them. In some cases they … | |
Re: Read the file line by line. Convert each line to integer and add each number into a total. At the end, divide the total by the number of numbers processed. | |
Re: It is bad practice to have duplicate data. That could lead to inconsistencies. I advise you to store the date as one column and create a view with the derived columns. That gives you non-redundant columns plus the convenience of pretending that the derived coulmns actually exist (simpler queries). | |
Have a look at [this page](https://madeby.google.com/wifi/). <rant> This seems to be the thing lately to take fonts in colours that were easy to read and make them lighter so that they look washed out. It may be prettier to look at, but it is certainly not easy to read. I'm … | |
Re: What Gribouillis said. Python 2.x is a dead end so I see no reason not to focus on 3.x instead. | |
Re: Two reasons that I can surmise: 1. He finished his PhD/post doc work and took a job in Silicon Valley (time suck) 1. There is not much left on Daniweb that interests him since traffic dropped to a trickle. However, I see that he was on last week sometime. | |
Re: Copy the following code into a file named `empty.vbs` set fso = CreateObject("Scripting.FileSystemObject") set arg = Wscript.Arguments if arg.Count > 0 then if fso.FolderExists(arg(0)) then ScanFolder fso.GetFolder(".") else Wscript.Echo "Folder",arg(0),"not found" end if else ScanFolder fso.GetFolder(".") end if Sub ScanFolder (folder) on error resume next 'don't need this if running … | |
Re: Early indications are for a Clinton win. If the Dems take back the senate it will likely be 51-49. If it goes 50-50 then the veep gets the deciding vote. My expectations are that if Clinton wins, Congress will start impeachment proceedings on her first day in office. | |
Re: Here's a simple example. Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AddRow("Frank", "Bowles", "Parker") AddRow("Richard", "James", "Harvey") AddRow("Kenneth", "Harry", "Morgan") End Sub Sub AddRow(ByVal col1, ByVal col2, ByVal col3) Dim row As Integer = dgvTest.Rows.Add(1) dgvTest.Rows(row).Cells(0).Value = col1 dgvTest.Rows(row).Cells(1).Value = col2 dgvTest.Rows(row).Cells(2).Value … | |
Re: I was checking out my settings to lead you through the steps when I noticed that the `Advanced` link on my wi-fi settings was missing. This is where you would go to set/clear the metered option. Lacking this, there is a command line option. Open a command shell and type: … | |
Re: [Please read this before posting](https://www.daniweb.com/software-development/vbnet/threads/424836/please-read-this-before-posting) for suggestions on how to post questions effectively. | |
Re: I see that the print statement uses parentheses which tells me this is 3.x code so it should work. Is it too much work for you to copy/paste the code and try running it yourself? | |
I thought this was only me, but apparently there are other users who have noticed that somewhere in the last few Microsoft Updates, the option to set a wi-fi connection as metered has been removed. Fortunately, you can still set/unset this option from the command line. For details, and a … | |
Re: To everyone who is posting in this two-year old thread 1. Please do not resurrect old threads. If you have a question then start a new thread 1. Don't ask for a complete solution. You won't get it. DaniWeb is not the place to go if you want someone to … | |
Re: The trick is to redirect the standard output. Have a look at the attached VB 2010 project. It implements a GUI where you can type a DOS command into a textbox and execute it. It runs the command in a separate process and the output is captured and displayed in … | |
Re: >I need to generate random pictures when spin button is clicked not numbers Pictures (in digital form) are nothing but numbers. If you are generating random numbers then you can generate random pictures. | |
Re: >Doesn't "do this as best you can" add overhead? The people who write the tools (compilers, interpreters) generally know a lot more about optimization tricks than the rest of us. In some cases, with properly written high-level code, optimizations can be done that, were they done at the source code … | |
Re: Sounds like homework. It also sounds like you haven't read the DaniWeb [Rules](https://www.daniweb.com/community/rules) or [Please read this before posting](https://www.daniweb.com/software-development/vbnet/threads/424836/please-read-this-before-posting). | |
Re: >Check my code (It's not that hard to program this). It may not be hard to program that but without whitespace and comments it is much more difficult than it should be to read and understand it. |
The End.