132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for karmstrong

0 down vote favorite I have created a network scanner, that looks for a specific port on a range of IP's. I would like to thread the application but I am getting and error message ERROR: for worker in range(network.hosts): TypeError: 'method' object cannot be interpreted as an integer Now …

Software Development multithreading os-x python queue
Member Avatar for rproffitt
0
1K
Member Avatar for Enrique_2

For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then For Each subCtrl As Control In ctrl.Controls If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then MsgBox(subCtrl.Text) End If If subCtrl.GetType Is GetType(System.Windows.Forms.ComboBox) Then If subCtrl.GetType Is GetType(System.Windows.Forms.RadioButton) Then If CType(subCtrl.Controls("rbttnM"), RadioButton).Checked Then MsgBox("Male") End If If CType(subCtrl.Controls("rbttnF"), RadioButton).Checked Then MsgBox("Female") End …

Software Development vb.net
Member Avatar for Joris Claassen
0
343
Member Avatar for MO13

can you help me fix this code the frist number of the array is giving a error Dim studid() = {7908205555, 89546214, 2435325, 25463, 264326, 263626, 262261} Dim id As Integer id = Integer.Parse(TextBox1.Text) For i = 0 To studid.Length - 1 If id = studid(i) Then ListBox1.Items.Add("the id is …

Software Development vb.net
Member Avatar for ddanbe
0
136
Member Avatar for Eddy_2

In this assignment you are to write a program that finds a path through a “maze”. The maze will be represented by a 2-dimensional array of ints. You will be given a starting point in the array that consists of a pair of ints <x,y>. In this pair, x represents …

Software Development java
Member Avatar for JamesCherrill
0
395
Member Avatar for SkateX

Greetings, I have been trying to figure this out for hours with no avail. Basically I need to print out user input as Initial value, ASCII(char), ASCII(int), and Hex. I can get everything to work however I am not supposed to have the char values print if its a digit, …

Software Development java
Member Avatar for SkateX
0
356
Member Avatar for walaga

how can i auto sum the values in datagrid cells of the same row in vb.net

Software Development vb.net
Member Avatar for xrjf
0
294
Member Avatar for Kerri_1

1. Your program should read the input files by using Unix shell redirection (e.g. a.out<lab1.dat) to read the input from stdin (C). By using redirection, it is unnecessary to open and close the input file, nor should your program prompt for a file name. You should dynamically allocate tables for …

Software Development c c# c++ unix
Member Avatar for ddanbe
0
263
Member Avatar for V3N0M

I am trying to write some code for project euler problem 10, in which you are required to find the sum of all the prime numbers less than 2 million. Now the code is taking too long to execute. I would like to know how can I improve my code …

Software Development algorithm python
Member Avatar for filtre
0
460
Member Avatar for Nikhar

Hi everyone, This might be a very stupid question to ask and the answer might be very simple but I was just curious to know this. How to display "\n" on output screen in C++? We all know \n is used to enter a new line. But what if I …

Software Development c++ display
Member Avatar for rubberman
0
2K
Member Avatar for Saidar

Hey there everyone, I need to write a small program to get a certain task done, but I have zero experience in manipulating text files. Can someone please give me a start on how to write the following program: The program should take all the text files in a folder, …

Software Development vb.net
Member Avatar for ALex_67
0
2K
Member Avatar for moonu

Write an Assembly program that allows the user to enter a string of up to 99 characters. The program shall then replace all the digits with their corresponding words. The words shall be printed in all lower case or all upper case depend on the case of the last alphabet …

Software Development assembly
Member Avatar for rproffitt
0
294
Member Avatar for VIPER5646

Hi I'm having an 'The application is in Break Mode Error' when debuging this sort code. Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim ds As New test1 Dim reportdoc As New CrystalReport1 ds.Tables.Add(Test_tbl) DataGridView1.DataSource = ds.Tables("Datatable1") reportdoc.SetDataSource(ds.Tables("Datatable1")) With CrystalReportViewer1 .ReportSource = reportdoc .Refresh() End With End …

Software Development vb.net
Member Avatar for Nutster
0
325
Member Avatar for Maurice_4

I'm using Winforms with a picturebox and a custom rectangle drawn on it (face detection). Now I have code the draws the rectangle on the specified coordinates, allows resizing and moving of the recangle. However.. I need to know how to rotate the rectangle by using the MOUSE. I know …

Software Development vb.net
Member Avatar for xrjf
0
2K
Member Avatar for ericstern

I am relatively new to the programming world so I apologize if my code seems naive in any sort of way.I have been making a piece of code that counts all the circular primes below a given number, 'input'. If you wonder what circular primes are, you can check it …

Software Development c
Member Avatar for dagger
0
714
Member Avatar for adanaz

I am making a text adventure and would like the command line window to be a specific size when you run the .py file in the command line window. eg. 300 wide by 250 height. I found a thread on here that shows how to specify the text colour which …

Software Development python
Member Avatar for DubWine
0
18K
Member Avatar for JModak

Sub generate_inv() Dim id_tmp As String Query = "select top 1 InoviceNo from Invoice order by InoviceNo desc" cmd = New OleDbCommand(query, cn) dr = cmd.ExecuteReader If dr.HasRows = False Then dr.Close() id_tmp = "E000001" Else dr.Read() id_tmp = Format(Mid(dr("InoviceNo"), 2, 6) + 1,"E00000#") End If dr.Close() txtInvoice.Text = id_tmp …

Software Development vb.net
Member Avatar for xrjf
0
2K
Member Avatar for Adm666

i have this piece of code that coppies a file to another: my question is, how do i change the name of the created output file ? for example if the file that i run this code on is "text.txt" how do i add the ending ".something" to the file's …

Software Development c file-system
Member Avatar for rproffitt
0
423
Member Avatar for Papa_Don

Group, you were very helpful to me in adding multiple textboxes, labels, etc., in my original post. If you would like to read through that, see http://www.daniweb.com/software-development/vbnet/threads/447985/creating-multiple-labels-textboxes-etc.-dynamically#post1934799. In a similar vein, I now want to dynamically add these multiple panels within a "main" panel, one at a time, with the …

Software Development vb.net
Member Avatar for Enrique_2
0
3K
Member Avatar for Saboor880

Hi! I have made a desktop application which is running perfectly. But i am facing problems with jframe size on different machines. I have monitor of 'Gateway'. I am satisfied with my jframe size on my screen . But when i shifted it on laptop of 'hp' company then my …

Software Development java
Member Avatar for JamesCherrill
0
4K
Member Avatar for Adm666

why can't we change the default starting index of an array to 1 instead of 0 ? and another question how much fields can a bit field have ay most ? thanks previously

Software Development c
Member Avatar for pty
0
356
Member Avatar for Adm666

im intending to write a code that reads words and the lines that it appears at from a file and sort the words alphabetically in a linked list then prints them. so far i've made out this... but it doesn't print them in alphabetic order and it prints duplicates as …

Software Development c file-system linked-list
Member Avatar for Adm666
0
2K
Member Avatar for Nate_3

I am currently trying to update a database using C# My issue is that the update query is not working, there is no error produced just reloads the screen and thats it. My C# is as follows void SaveRecords() { try { String qry = "Update Ordered_Test Set Ref_Phy = …

Software Development c c# c++ ios sql
Member Avatar for rproffitt
0
290
Member Avatar for Mrra

struct sdata; typedef struct sdata *sptr; struct sdata { char sName[25]; char sNum[7]; sptr next; }; void readdata(); int main(void) { readdata(); return 0;' } void readdata(){ int length; int i ; char Line [100]; const char s[2] ="#"; char *token= strtok(Line,s); FILE * data =fopen("data.txt","r") ; if(data==NULL){ printf("ERROR : …

Software Development c linked-list
Member Avatar for Nutster
0
301
Member Avatar for Razvan_1

So i have my mips code that i want to do the follow thing: When i get a vowal (aeiou) it prints the next consonant from vowal (bfjpv). My code works 80% but when i do that it deletes the next char where i replace. Like: Bruno it must print …

Software Development assembly
Member Avatar for rproffitt
0
285
Member Avatar for dsimonovski1

0 down vote favorite So you have these Microsoft KB support articles. Example: https://support.microsoft.com/en-us/help/871122 My goal is to be able to iterate through a list of these pages and see if the articles actually exist. As you can imagine, it's hard to do it manually, so I need a program …

Software Development microsoft
Member Avatar for cereal
0
360
Member Avatar for kaksbrian

How do i solve the error that originates from the below code. DataSet info1 = this.GetData.getInfo("SELECT 0 AS EmpNo,Er.EmpID,(Er.FName&''&Er.LName) AS [Employee Name], Ed.DeptNo AS [Department No],Er.Gender AS [Sex] FROM (EmpRegist AS Er INNER JOIN EmployeeDept AS Ed ON Er.EmpId = Ed.EmpId) WHERE Ed.DeptId=" + (object)DpetID + " AND Ed.Status=0 AND …

Software Development dataset
Member Avatar for ddanbe
0
273
Member Avatar for Zulhilmi_1

hye, i have a question about listview checkbox, recently i have tried to do a checkbox inside listview and its print well. but the result are not as i want, what i want is the checkbox is save the item to text file base on which checkbox is checked first. …

Software Development listview
Member Avatar for Nutster
0
315
Member Avatar for can-mohan

In below code while compiling i am getting error , Error : main.cpp:8:57: error: expected type-specifier before ‘Staircase’ std::unique_ptr algodiagnostic (new Staircase()); compilation command g++ HardwareDiagnostic.cpp HardwareDiagnostic.h main.cpp -std=c++0x -o res it works fine if compile entire code in single file without creating header file and main.cpp separately. Can anybody …

Software Development algorithm c++
Member Avatar for Coller
0
7K
Member Avatar for JohnMcPherson

Hello, I work at the U.S. Department of Labor, on the Unemployment Insurance program. I am working on developing a new Benefit Financing model for the state of Oregon, and I am having an issue with passing a struct between mutiple .c and .cfn files( the .cfn files are for …

Software Development c
Member Avatar for JohnMcPherson
0
637
Member Avatar for Saboor880

hi ! I am developing a pos software for desktop. I am using java derby database for this. I have developed a feature for purchasing items and also a feature for analyzing purchases so that the user can view that what, when, how much he purchased. I am using two …

Software Development java
Member Avatar for Saboor880
0
225
Member Avatar for Saboor880

Hi! I am developing a pos for a store. I have created a settings window. On this window there is a button which is used to set a name for store. When user press this button a message dialog appears with a text field and a OK button so that …

Software Development java
Member Avatar for Saboor880
0
1K
Member Avatar for Kalpna_1

We are facing an issue to bind the selected coordinates of polygon using ArcGIS Javascript library on page load. The same issue we are facing with all geometry types. Please help us to bind the selected coordinates. We are able to find out the coordinates and save them in database. …

Software Development java javascript
Member Avatar for rproffitt
0
469
Member Avatar for Faez_1

#include<iostream> using namespace std; main() { int numGame,numSocks,numShoes; int countX = 1,countY = 0; float tempGame = 0,tempSocks = 0,tempShoes = 0,GrandTotal = 0; float totalP,priceGame,priceSocks,priceShoes; cout<<"Welcome to Numbani Bowling Arena Transaction System.\n"; cout<<"Please fill in the required sections below.\n"; cout<<"---------------------------------------------------------\n"; while( countX > -1 ) { countY = countY …

Software Development c++
Member Avatar for thines01
0
218
Member Avatar for Khaliunaa

1.PLease help me, How to call input values from datagridview.(unlimited rows) I tried this coding, but it's not working, didn't show any answers. private void dataGridView10_CellContentClick(object sender, DataGridViewCellEventArgs e) { for (int i = 0; i < (dataGridView10.Rows.Count); i++) { DataGridViewRow row = dataGridView1.Rows[i]; groundproperty[0] = Convert.ToDouble(dataGridView10.Rows[i].Cells["Column1"].Value); groundproperty[1] = Convert.ToDouble(dataGridView10.Rows[i].Cells["Column2"].Value); …

Software Development c vb.net visual-basic
Member Avatar for ddanbe
0
748
Member Avatar for William Hemsworth

Hi all, I'm a very early user of Daniweb, and after a long break, and I'm hoping to participate a bit more in this forum again. I'm here specifically for some advice before starting a new project of mine. I'm an experienced C++ / Win32 developer, but seem to be …

Software Development c++
Member Avatar for rproffitt
0
437
Member Avatar for Badulla

i have wrote this program which uses binary search to search for a desired word and which displays the word along with the meaning of that particular word.but each time i print the data that the arraylist contains it just print the word being search but not the meaning of …

Software Development java java-swing oracle
Member Avatar for JamesCherrill
0
365
Member Avatar for Mirty

I need instructions on implementing a houghes circle code using android studio to an app. I do not know where to put everything and need detailed instructions on how to create the app and save it onto an android device. iCannyUpperThreshold = 100; iMinRadius = 20; iMaxRadius = 400; iAccumulator …

Software Development android android-development java
Member Avatar for Rajan_7
0
268
Member Avatar for Iamateur

Hie,I have Merge Sort Program .It's giving correct output but when checked through debugger it gives different values everytime.I also tried doing it manually but I am not getting the actual output. I will not ask now for complete program explanation. I just want to know the value over here.This …

Software Development c
Member Avatar for rproffitt
0
388
Member Avatar for aditya_23

cd D:/ #Extract Author information java -jar svn-migration-scripts.jar authors $SVNURL > authors.txt #Clone the SVN Repo git svn clone --stdlayout --authors-file=authors.txt $SVNURL SVNAsGIT #Clean the new GIT repository java -Dfile.encoding=utf-8 -jar svn-migration-scripts.jar clean-git --force #Update the authors file git config svn.authorsfile authors.txt> #Clean the new GIT repository java -Dfile.encoding=utf-8 -jar …

Software Development java
Member Avatar for aditya_23
0
998
Member Avatar for G_Waddell

Hi, I've recently "inherited" a part built project from a developer who as left our company. He had decided to use Entity Framework but I am finding it to be unstable and slow. I periodically have to reimport objects and stored procedures from the database as the model gets corrupted. …

Software Development oop session
Member Avatar for Aleksey_2
0
4K
Member Avatar for mohamed_91

write a program in assembly that do the following: 1-ask from the user to choose the system of numbers(binary,hex,oct,dec) 2-then ask from the user to insert two values and mathematic operator ex: val1=any number not more than 8 bits. operator= (multiplication)or(division)or(-,+,^) val2=any number not more than 8 bits. 3-then do …

Software Development assembly
Member Avatar for thines01
0
239
Member Avatar for amit_44

I want to develop project on the mcq based quiz in vb.net in that i want to provide four radio button and user will select one when he will click on one answer the system will display the answer is correct ot not and when he will complete the exam …

Software Development vb.net
Member Avatar for rproffitt
0
285
Member Avatar for KushMishra

Hi All, I would appreciate if someone could please answer to the following queries. 1. Difference between "new" and "new virtual" when deriving classes from other classes. 2. Difference between Abstarction and Encapsulation (with example, if possible). 3. Types of constructors and their implementations (when and how to use). 4. …

Software Development asp.net c c#
Member Avatar for KushMishra
0
381
Member Avatar for benbee

This program should calcuLate users amount of watts consumed based on their appliances and the aprroximate number of hours each appliance is used in a day, week or month. The basic requirements are as follows: Give user option of selecting predefined home appliances or entering their own and corresponding watts …

Software Development c++
Member Avatar for luff
0
775
Member Avatar for Doogledude123

A couple questions before I even attempt this project... Is it possible to create a VoIP application in Java? Is it posssibe to do this using standard libraries? If you can't make one with standard libraries, which libraries are needed to accomplish this? Also, is this a good Introduction to …

Software Development first-post java
Member Avatar for Nagy
0
2K
Member Avatar for Stat_1

XML File :http://goalserve.com/samples/soccer_inplay.xml Model: [XmlRoot(ElementName = "localteam")] public class Localteam { [XmlAttribute(AttributeName = "name")] public string Name { get; set; } [XmlAttribute(AttributeName = "goals")] public string Goals { get; set; } [XmlAttribute(AttributeName = "id")] public string Id { get; set; } } Controller: XmlDocument doc = new XmlDocument(); List<Localteam> s …

Software Development asp.net c xml
Member Avatar for rproffitt
0
1K
Member Avatar for ben.juarez.773

Hello! I am looking for some help, and have provided the code. I'm just trying to do some simple stuff. I'm trying to create a simple game without using classes (but using lists). What I'm trying to do is create collision detection among list objects ("bullets" and "baddies"), as you'll …

Software Development python
Member Avatar for a_9
0
714
Member Avatar for Adm666

im trying to make a loop that asks a command from stdin and checks if it's valid or not, and the command for example will be in this format : Command then seperated with any amount of spaces then a Letter then comma then a double a comma and a …

Software Development c
Member Avatar for Nutster
0
392
Member Avatar for Stat_1

I wont to display other results according to one row: Country>>League HomeTeam AwayTeam Result **Italy>>Seria A** Juventus Inter [1-0] Inter Barcelona[2-0] **Albania>>Kategoria Superiore** Tirana-Kukes [2-1] What i have done till now displays this: **Italy>>Seria A** Juventus Inter [1-0] **Italy>>Seria A** Inter Barcelona[2-0] **Albania>>Kategoria Superiore** Tirana-Kukes [2-1] @foreach (var item in …

Software Development c display
Member Avatar for Stat_1
0
332
Member Avatar for Alex_65

Hello All; I am trying to make a copy of a file in another file using C. But the content of the file should be repeted the quantity of times of the lines of a third file { int num = 0; int x; char cont; FILE *file; file = …

Software Development c file-system
Member Avatar for Joris Claassen
0
327

The End.