4,439 Posted Topics

Member Avatar for haroon.khaliq
Member Avatar for ddanbe

I cannot trace when it started, but for some time now, I recieve every mail from DaniWeb two times.

Member Avatar for Reverend Jim
0
224
Member Avatar for Rahul47
Member Avatar for ddanbe
0
214
Member Avatar for V3N0M

What is iInput meant to be? Name it for what it stands, perhaps it is number of guesses, number of throws. I don't know. If it is number of tries then call it **Ntries** or even better **numberOfTries** After a few months when you look again at your program you …

Member Avatar for ddanbe
0
154
Member Avatar for Rahul47

You had a float. you let the compiler believe it is a char (CAST). Then, you print out a char with a float format specifier. It is still a char, not a float.

Member Avatar for ddanbe
0
168
Member Avatar for Rahul47

Moschops is correct. When i = 0, ptr[i] will point to 'H' and `*ptr` will point to 'H' When i = 1, ptr[i] will point to 'e' and `*ptr` will point to 'H' etc.

Member Avatar for Rahul47
0
190
Member Avatar for Delano_1
Member Avatar for somyms

> I am interested to do in biomedical and bio informatics Looks a great thesis topic to me. Go for it!

Member Avatar for rubberman
0
204
Member Avatar for محمداسد
Member Avatar for 2014learner

Perhaps [this article](http://msdn.microsoft.com/en-us/library/system.windows.resourcedictionary(v=vs.110).aspx) can help.

Member Avatar for ddanbe
0
148
Member Avatar for Mr.M

You could also use a [DateTimePicker](http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) or watch [this video](http://www.youtube.com/watch?v=03-GIEOBmeE)

Member Avatar for Spyderbane
0
215
Member Avatar for coca99

Hi coca99, welcome at Daniweb! The loop tests the bits in temp by ANDing with 0x01 on line 32. If this gives 0x01 than bit i of DrvGPIO is set, else it is cleared. The next bit of temp will be tested after a right shift by 1 on line …

Member Avatar for coca99
0
530
Member Avatar for Sevyt

Don't know what your intensions are with source1, but it will be lost after FamBestandDataGridView_CellClick finishes on line 16.

Member Avatar for Cronomax
0
201
Member Avatar for LeNenne

Here is [how to open excel file](http://vb.net-informations.com/excel-2007/vb.net_excel_2007_open_file.htm) Does line 6 work?

Member Avatar for cgeier
0
223
Member Avatar for happygeek
Member Avatar for happygeek
0
271
Member Avatar for Start4me

Use one Label and concatenate your digit strings like so: `MyLabel.Text = "one" + vbCr + "five" +vbCr +"two"`

Member Avatar for Start4me
0
508
Member Avatar for mavtcr

The form has a CancelButton property, so you could do something like: `MyForm.CancelButton = MyCancelButton`

Member Avatar for Start4me
0
272
Member Avatar for genecasaminiano

Hi genecasaminiano, welcome to Daniweb. Read about the [if-statement](http://www.cprogramming.com/tutorial/lesson2.html) To get you started, do something like: if (sales < 19999) { commission = 4; } else if ( //. . . your turn Success!

Member Avatar for ddanbe
0
91
Member Avatar for WafflesAndCream

Hi, welcome here. Could you please be more specific in what exactly goes wrong? Looking at line 19 I see that the variable `sender` will be not known. And the switch part must have an integral or string type expression and sender is an object.

Member Avatar for ddanbe
0
143
Member Avatar for stevetaylor15

Hi Akwin Lopez, welcome here. Please start a new thread to ask your question. Don't use a thread that is already 4 years old.

Member Avatar for ddanbe
0
220
Member Avatar for Grazel

You could get the stop time in a [Form Closing event](http://msdn.microsoft.com/en-us/library/system.windows.forms.form.closing(v=vs.110).aspx). That is if you are using a Forms application, but I'm only guessing, you did not mention.

Member Avatar for ddanbe
0
130
Member Avatar for mixelplik

I would write lines 3 and 4 like: if(!testFile.eof()) { testFile.getline(buffer, strlen(buffer)); }

Member Avatar for Lucaci Andrew
0
191
Member Avatar for castajiz_2
Member Avatar for najiawad0

"Best" doesn't exist. But I would find [this](http://tryobjectivec.codeschool.com/) a good starting point.

Member Avatar for midynamics
0
433
Member Avatar for Ketan022

Private or protected in OOP has nothing to do with security and hiding secret data. Read [this](http://en.wikipedia.org/wiki/Object-oriented_programming) thoroughly.

Member Avatar for mike_2000_17
0
175
Member Avatar for islam_2

Hi islam 2, welcome here. You first have to do a `DataGridView1.Rows.Add();`

Member Avatar for ddanbe
0
118
Member Avatar for Ancient Dragon
Member Avatar for franz.cheng.7

Read [this](http://tutorial.math.lamar.edu/Classes/CalcII/TaylorSeries.aspx). Use a loop and translate the formulas you want in Python code.

Member Avatar for Gribouillis
0
301
Member Avatar for Emma_3

This is what I did in C#, the code should be easy to follow. // ****************************************************************** // Return the discriminant b*b-4*a*c // ****************************************************************** public double Discriminant() { return cB * cB - 4 * cA * cC; } // ****************************************************************** // Solve the equation and fill the roots struct with …

Member Avatar for DavidB
0
314
Member Avatar for BOTHEILLONE

Hi BOTHEILLONE, welcome at DaniWeb! Think you have to send your code again. Click on **Code** above the message typing area and paste your code there.

Member Avatar for ddanbe
0
117
Member Avatar for blue51

This works: namespace WindowsFormsApplication11 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { listBox1.Items.Add(textBox1.Text); } } } ![a6321bd44c4f1cf2bb21d6f4ccf462b0](/attachments/small/1/a6321bd44c4f1cf2bb21d6f4ccf462b0.png "align-left")

Member Avatar for ddanbe
0
220
Member Avatar for Sanjeetjmp

The string class overloads the + operator to do string concatenation. You seldom have to use operator overloading yourself. You could use it, if you had for example written a date class or complex number class, to add two dates or complex numbers together.

Member Avatar for rubberman
0
120
Member Avatar for Adeel Rahat

Perhaps you could try [C++Builder](http://en.wikipedia.org/wiki/C%2B%2BBuilder)

Member Avatar for ddanbe
0
328
Member Avatar for Quast
Member Avatar for y0yie_333

Now is a property of he DateTime structure, so use: `Dim today As DateTime = DateTime.Now`

Member Avatar for ddanbe
0
84
Member Avatar for mustafa.bahaa
Re: c++

For compilers have a look [here](http://www.dreamincode.net/forums/topic/20933-list-of-free-c-and-c-compilers-and-ides/)

Member Avatar for mustafa.bahaa
0
220
Member Avatar for Roily Lucky

How would you do it with paper and pencil? You would note 3 coefficients A,B en C you would put these numbers into a formula and work it out. Same with computer: Write code to input 3 numbers A, B and C. Write the calculation formula and output the calculated …

Member Avatar for ddanbe
0
137
Member Avatar for ganesh.naphade

Hi ganesh, welcome at DaniWeb. Would [this](http://www.tutorialspoint.com/unix_sockets/socket_server_example.htm) help?

Member Avatar for ddanbe
0
243
Member Avatar for ddanbe

I have some data in a table, but instead of using something like `string[,] myTable = new string[3, 2];` I wanted to use List, because my table can grow or shrink and I cannot do that easily with arrays. So I got something like `List<List<string>> myTable = new List<List<double>>(3)(2);` But …

Member Avatar for ddanbe
0
189
Member Avatar for ryan.jay.ong

Take a paper and a pencil. Draw your square with '+' or whatever chars. Done? Now use the **cout** instruction to let the computer do the exact same thing. Success!

Member Avatar for ryan.jay.ong
0
172
Member Avatar for julio.azevedo.562

If your VB program opens Excel it will be the front application. If your VB program starts the loop, you should be able to see the animation.

Member Avatar for ddanbe
0
44
Member Avatar for radium61

I think [this article](http://social.msdn.microsoft.com/Forums/windows/en-US/63ddb457-f769-44db-87cc-9e88e74929e8/how-to-host-different-controls-in-the-same-column-in-datagridview-control?forum=winformsdesigner) may help you.

Member Avatar for radium61
0
2K
Member Avatar for PrashantB

Hi PrashantB, welcome at DaniWeb. This might help: [Click Here](http://msdn.microsoft.com/en-us/library/system.windows.forms.checkstate(v=vs.110).aspx)

Member Avatar for ddanbe
0
41
Member Avatar for Andrew_9

Hello Andrew! Welcome! I program as a "hobby" in C# in VS and I find it a plus I don't have to do all the basic stuff myself. If I need a button, I just drag it on my screen and sometimes just add a few lines of code to …

Member Avatar for saba_3
0
260
Member Avatar for lala56565
Member Avatar for mohan@nano
Member Avatar for klika

> it isn't working Probably obvious for you, not for us. Please explain EXACTLY what is not working. (error messages, program behavior etc.) To ovecome the overhead of the `pow((-1),i)` expression on line 32, I usually use something like: `int sign = -1;` before the while loop. And A[j] = …

Member Avatar for ddanbe
0
139
Member Avatar for Marc_2

Hi Marc 2 welcom here! I don't know what the best computer language is. But have a look on this site under **Software Development** or **Web Development** for languages where most members here talk about. To find out what the most popular laguages are, have a look at [this site.](http://langpop.com/) …

Member Avatar for phorce
1
203
Member Avatar for tessa.burkhalterblackmon

Hi Tessa, welcome to DaniWeb! You are doing integer division with sum/N, so example: if sum = 3, N = 2, average will be 1.0 and not 1,5 as it should. For multiplication use the *= operator Be aware of overflow

Member Avatar for tessa.burkhalterblackmon
0
381
Member Avatar for Bilal gulbaz

The End.