4,911 Posted Topics

Member Avatar for irbaaz
Re: C++

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, …

Member Avatar for rubberman
0
281
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
468
Member Avatar for Mohammad_32

Please provide more detail and show us what work you have done so far.

Member Avatar for Reverend Jim
0
91
Member Avatar for Peter_36
Member Avatar for JamesCherrill
0
491
Member Avatar for sharjeelmumtaz
Member Avatar for abhranil

As a self-confessed beginner you have a lot of work to do before you can get on a real project.

Member Avatar for Dave_15
0
310
Member Avatar for shubham_8
Member Avatar for hinaraees

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.

Member Avatar for happygeek
0
443
Member Avatar for Dani
Member Avatar for Matthew_17
4
388
Member Avatar for Jen_3

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 …

Member Avatar for Reverend Jim
0
466
Member Avatar for Michael_63

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?

Member Avatar for Reverend Jim
0
396
Member Avatar for xrjf

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 …

Member Avatar for Xavier_5
0
2K
Member Avatar for Jhovyn

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).

Member Avatar for Reverend Jim
0
345
Member Avatar for John_141

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.

Member Avatar for Lee_15
0
2K
Member Avatar for tejas_1

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.

Member Avatar for Dean_5
0
317
Member Avatar for yaldoo

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 …

Member Avatar for yaldoo
0
704
Member Avatar for Smith5646

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.

Member Avatar for tinstaafl
0
294
Member Avatar for pauly_1

I can't answer that question, but I **have** noticed that things are more like they are now than they have ever been.

Member Avatar for DMR
0
354
Member Avatar for Dani

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 …

Member Avatar for Dani
0
530
Member Avatar for Ghast

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 …

Member Avatar for Ghast
0
275
Member Avatar for markdean1989

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 …

Member Avatar for markdean1989
0
307
Member Avatar for i.

Put a for loop around If num[x] < avg Then Display num[x] End If

Member Avatar for Reverend Jim
0
163
Member Avatar for rahimrazak

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.

Member Avatar for Reverend Jim
0
189
Member Avatar for jeffersonalomia

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.

Member Avatar for rproffitt
0
392
Member Avatar for antonioS

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.

Member Avatar for Raj_21
0
1K
Member Avatar for Dani

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.

Member Avatar for Dani
0
916
Member Avatar for Ritesh_4

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 …

Member Avatar for Reverend Jim
0
377
Member Avatar for nadiam

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.

Member Avatar for Xavier_5
0
581
Member Avatar for gentlemedia
Member Avatar for parrish

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?

Member Avatar for rubberman
0
365
Member Avatar for Aeonix

>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 …

Member Avatar for rubberman
0
347
Member Avatar for faza_1

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.

Member Avatar for rproffitt
0
313
Member Avatar for zachattack05

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).

Member Avatar for Dani
0
662
Member Avatar for Reverend Jim

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 …

Member Avatar for AssertNull
0
403
Member Avatar for Lucas_10

What Gribouillis said. Python 2.x is a dead end so I see no reason not to focus on 3.x instead.

Member Avatar for ddanbe
0
1K
Member Avatar for Aeonix

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.

Member Avatar for Reverend Jim
0
527
Member Avatar for Link_1

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 …

Member Avatar for Reverend Jim
0
397
Member Avatar for happygeek

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.

Member Avatar for AssertNull
2
994
Member Avatar for Michelle_7

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 …

Member Avatar for Michelle_7
0
1K
Member Avatar for MiketheBook

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: …

Member Avatar for Reverend Jim
0
937
Member Avatar for Avnish_2

[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.

Member Avatar for Reverend Jim
0
90
Member Avatar for tjy92

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?

Member Avatar for Reverend Jim
0
3K
Member Avatar for Reverend Jim

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 …

1
234
Member Avatar for TrueCoding

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 …

Member Avatar for Ailan
0
2K
Member Avatar for DavidB
Member Avatar for yumyam09

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 …

Member Avatar for Reverend Jim
0
577
Member Avatar for Rajesh8367

>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.

Member Avatar for Reverend Jim
0
833
Member Avatar for Aeonix

>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 …

Member Avatar for Reverend Jim
0
390
Member Avatar for John_133

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).

Member Avatar for ddanbe
0
280
Member Avatar for _1_28

>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.

Member Avatar for Reverend Jim
0
418

The End.