4,911 Posted Topics

Member Avatar for sgw

That's one of those questions they like to put on the exam to see if you know the inner workings of c/c++ even though no sane c/c++ programmer would ever code like that.

Member Avatar for sgw
0
590
Member Avatar for Lana_3

Nobody here is going to do your homework for you. However, if you post what you have so far and show us where you are stuck you might get the help you are looking for.

Member Avatar for Reverend Jim
0
154
Member Avatar for phphp

In VB.net you can assign a handler at run time with AddHandler. I think the c# equivalent is to assign it using `New EventHandler(handler)`. Just loop through your textbox controls and voila.

Member Avatar for Reverend Jim
0
214
Member Avatar for nadiam
Member Avatar for Shulc

The same way you get good at any skill like dancing or playing a musical instrument. You just do it. Practice makes perfect. Also, read about good programming techniques because malpractice makes malperfect. And like anything that takes skill you have two choices: 1. Learn to do it well, or …

Member Avatar for Reverend Jim
0
243
Member Avatar for Reverend Jim

I have been using my HOSTS file for years to dummy out ad sites by adding entries like 127.0.0.1 www.ukbanners.com A while back I installed [Unchecky](https://unchecky.com/), a program which automatically unchecks all of those software extras that some installers like to enable by default (like McAfee). Today I noticed nthat …

Member Avatar for Reverend Jim
0
1K
Member Avatar for sheik_2

That's not how Daniweb works. If you are having a specific problem you can post a question (with code, if appropriate) and we will try to help you find a solution. But first you need to show us that you have put in reasonable effort to do it yourself. We …

Member Avatar for Reverend Jim
0
176
Member Avatar for davy_yg

Try [WinMerge](http://winmerge.org/). It is a worthy successor (same company) to PMDiff, originally written for OS/2 (which I still miss). But not as much as my Amiga OS (totally off-topic plug)

Member Avatar for Reverend Jim
0
731
Member Avatar for MUHAMMAD AHMAD_1

Judging by your post it is likely that you have not read the Daniweb [Posting Rules](https://www.daniweb.com/welcome/rules) and [Terms of Service](https://www.daniweb.com/welcome/tos). Please give these a read. You might also want to [Read This Before Posting a Question](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question) to increase your chances of getting a timely (and more useful) response.

Member Avatar for Reverend Jim
0
348
Member Avatar for UI

As I understand it, his response to the troll label is "it's a silly sounding word so it doesn't apply to me." A Trump-worthy counter-argument if I ever heard one.

Member Avatar for tango_1
-2
3K
Member Avatar for the b
Member Avatar for efmesch

Now that you have upgraded, your computer is registered with Microsoft and you will no longer have to validate it. What I suggest is that you do a full backup to external media then completely wipe your system and reinstall Win10 from scratch. I don't know how big your drive …

Member Avatar for rproffitt
0
337
Member Avatar for Tammy_2

We used to use a KVM switch to use one monitor/mouse/keyboard on multiple servers. Staples has one for $35.

Member Avatar for Reverend Jim
0
238
Member Avatar for victoria_5

What is happening is that when you read a char for "do you want to do another transaction" it is returning the next character from the last scanf. You can fix this by making sure that unused characters are flushed. One way to do this is to add void flush_stdin() …

Member Avatar for Reverend Jim
0
600
Member Avatar for vhycko

You will have to change the `WHERE` clause to something like WHERE DATEPART(month,TanggalLahir) = 9 AND DATEPART(day,TanggalLahir) BETWEEN 1 AND 15

Member Avatar for vhycko
0
415
Member Avatar for B E
Member Avatar for byron_2

I suspect the "hide extensions" option in Explorer has been turned back on. Go to folder options and deselect it and see if that fixes the problem. Yes, it's MS stupidity to have that enabled by default. Or even to have the option (IMO).

Member Avatar for Reverend Jim
0
162
Member Avatar for sasank_1
Member Avatar for Reverend Jim

... how the same politicians who said that New Jersey should just man up and take care of themselves after Hurricane Sandy hit, are now calling for federal aid from FEMA for relief from Hurricane Harvey, and in a few days, probably Hurricane Irma.

Member Avatar for diafol
0
422
Member Avatar for Reverend Jim

What are the qualifications to be an announcer/commentator at the US Open? Clearly it's not the ability to be able to pronounce the names of the players. Someone who has been making a big splash of late is an 18 year-old Canadian named Denis Shapovalov. At the start, when nobody …

Member Avatar for Reverend Jim
0
406
Member Avatar for Smalls

Change the statement Dim cmd As New SqlCommand("SELECT Username, Password FROM(Users) WHERE (Username = '" & UserTXT.Text & "') AND (Password = '" & PassTXT.Text & "')", con) to remove the parentheses around the table name. The proper syntax is select field1,field2,etc from table where etc not select field1,field2,etc from(table) …

Member Avatar for akash_12
0
3K
Member Avatar for vin_1

You can find code samples for that in my snippets post [here](https://www.daniweb.com/programming/software-development/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks)

Member Avatar for vin_1
0
443
Member Avatar for amanda_9

Or you can join one of the general discussinons in the Community Forum.

Member Avatar for happygeek
0
172
Member Avatar for musa B
Member Avatar for Reverend Jim
0
415
Member Avatar for Reverend Jim

I've been a Windows user right from the start and I've seen many problems that resulted in the infamous `checking for a solution to the problem`. I'm curious. Can anyone tell me if they have ever had an instance where Windows has actually found a solution?

Member Avatar for diafol
1
502
Member Avatar for happygeek

>I mean how difficult is it to say that Nazis suck? Apparently it's a lot easier to say Rosie O'Donnell sucks than Nazis. Rosie is clearly the devil. As for the statues, Jefferson Davis stood in the way of progress. I can't quite say the same for Washington, Jefferson, etc.

Member Avatar for AssertNull
0
301
Member Avatar for WAIWAIWAI

There is no error in the code, For future reference please read the Daniweb [Posting Rules](https://www.daniweb.com/welcome/rules). Particularly the part about hijacking old threds.

Member Avatar for Reverend Jim
0
17K
Member Avatar for Stefce

I don't normaly just provide code but 1. It's pretty simple 1. I'm really bored Copy the following code into a file named `SortFiles.vbs` in the same folder containing your images. If you run it by cscript sortfiles.vbs the script will create the required folders under the current folder and …

Member Avatar for pdsubbu
0
550
Member Avatar for Mati_1

Probably not going to happen with such a bare-bones description. How about giving us the schema, some sample data and what you expect to see as a result? How do you define "most common pairs"? Do you mean the two most common, five most common?

Member Avatar for Mati_1
0
929
Member Avatar for rfrapp

You can start by reading the Daniweb [Posting Rules](https://www.daniweb.com/welcome/rules). Then you can [Read This Before Posting a Question](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). You also might want to read everything that has already been posted in this thread.

Member Avatar for pty
0
1K
Member Avatar for Noorul Ariff
Member Avatar for Rahul47
Member Avatar for rproffitt

I think it is inevitable. Our next vehicle will definitely be electric as will my younger son's. Our elder son has a Prius that he swears by. As battery technology evolves, older, lower capacity batteries could be swapped out with newer ones without the expense of a complete car replacement. …

Member Avatar for JamesCherrill
1
571
Member Avatar for byron_2
Member Avatar for Reverend Jim
0
177
Member Avatar for Dani

Yeah. I have those nights when my mind just won't turn off. The trick (for me) is to concentrate on something totally unrelated. I listen to a piece of music in my head, concentrating on every note. By doing that I force my mind out of the rut it is …

Member Avatar for jwenting
1
964
Member Avatar for dongtrien

I have had the odd project get corrupted like this and the only solution I could find (if you can call it a solution) is to rebuild the project from scratch. Fortunately you should still have all the code (.vb) files to copy/paste into the new project. You might even …

Member Avatar for dongtrien
0
551
Member Avatar for les_3
Member Avatar for Ákos_1

You could always go to [Rosetta Code](http://rosettacode.org/wiki/Category:C). That link will take you to the C page with a list of problems with sample code. You could look at the problem definition (there are a large number of problems), try to code up a solution, then refer to the given solution …

Member Avatar for sathish kumar_1
0
770
Member Avatar for parreirae1

>nobody should store their backups in compressed form I use Macrium Reflect for my imaging and I alwys use `compressed`. However, I also use `verify`. Before that I used Acronis for years (corporate as well as personal). In all they years I have never had a backup image refuse to …

Member Avatar for Reverend Jim
0
495
Member Avatar for snakay

You'll increase the odds of getting an answer if you start a new thread rather than hijacking an old and already solved thread.

Member Avatar for Reverend Jim
0
6K
Member Avatar for Van_5

Username is a text field so the comparison value must be quoted. Compare SELECT * FROM table where username= hai with SELECT * FROM table where username= 'hai'

Member Avatar for Van_5
0
230
Member Avatar for Sibuns
Member Avatar for zebnoon1
Member Avatar for Sneaky_1
Member Avatar for pri.chakraborty

A typical statement to insert multiple rows at a time looks like INSERT INTO table (fldname1, fldname2, fldname3) VALUES(val1, val2, val3), (val4, val5, val6), (val7, val8, val9) Just modify for your particular database columns.

Member Avatar for Reverend Jim
0
5K
Member Avatar for sprikot
Member Avatar for jailani_1

You can do it using [AutoIt](https://www.autoitscript.com/site/autoit/) (free). If you create the AutoItX object within your program you can get the value in the calculator by calc = "Calculator" If aut.WinExists(calc) Then result = aut.WinGetText(calc) Else MsgBox(calc & " window not found") End If

Member Avatar for Reverend Jim
0
991
Member Avatar for Rehana_1

Judging by your post it is possible that you have not read the Daniweb [Posting Rules](https://www.daniweb.com/welcome/rules) and [Terms of Service](https://www.daniweb.com/welcome/tos). Please give these a read. You might also want to [Read This Before Posting a Question](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question) to increase your chances of getting a timely (and more useful) response.

Member Avatar for jwenting
0
301
Member Avatar for happygeek

I think a cool smartwatch app would be to have it pair with your self-driving car. If the smartwatch app detects that you are having a heart attack it drives you to the nearest hospital while calling 911.

Member Avatar for Reverend Jim
0
772
Member Avatar for mikeybware

You should consider using parameterized queries. Not only are they more secure, they are much easier to read and debug.

Member Avatar for Reverend Jim
0
323

The End.