132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sanchit.saxena9450

Hey guys i want to pick up a string from cmd . I am using C language and IDE as codeblocks. Basically i want to firstly ping an ip address and this i will be doing by simply writing "system("ping <ip address>")" . Then on console i will get the …

Software Development c ide
Member Avatar for sanchit.saxena9450
0
145
Member Avatar for sherubdorji

reason behind gaining popularity of c++ over other programming languages

Software Development c++
Member Avatar for mike_2000_17
0
265
Member Avatar for dwhvw

Hi, I'm using a serial port (module (B)) which has a default vDataReceivedEventHandler. This handler is connected through a 'callback' delegate to the calling module (A) which module (A) instanciates the serial port module (B). If I create a byte array in module (A) then the delegate passing data from …

Software Development
Member Avatar for dwhvw
0
165
Member Avatar for otengkwaku

class Frame(Widget): def __init__(self, master=None, cnf={}, **kw): what is the meaning of **kw in this function, and what does it represent?

Software Development python
Member Avatar for dashing.adamhughes
0
693
Member Avatar for treasure2387

What is the difference between displayClassA and DisplayClassb? When creating classes should i put them outside of the Stuff Class or insisde? What's the difference? using System; using System.Collections.Generic; namespace Empty { public class DisplayClassA { public DisplayClassA(){Console.WriteLine("This Class is outside of STUFF");} } public class Stuff { public class …

Software Development
Member Avatar for treasure2387
0
113
Member Avatar for jon92

hello, before people start saying what have i tried, i have not got a clue where to start if i'm honest with you and was wondering if someone could point me in the right direction. i need to create an application which stores information about people(age,name etc),should also be able …

Software Development python
Member Avatar for jon92
0
219
Member Avatar for jmareth

NO ONE SHOULD COPY THIS PROGRAM, ITS PLAGIASISM AND IF COUNT WILL RESULT IN AN AUTOMATIC ZERO FOR YOU AND I, so dont be stupid. #include <iostream> #include <string> #include <fstream> #include <stdio.h> #include <stdlib.h> using namespace std; void occurrence (char[], int[]); void initialize (char []); void sorts( char[], int[]); …

Software Development c++
Member Avatar for jmareth
0
305
Member Avatar for superstar515

I am trying to allow users to give their own combination of keys to trigger an event. For example, the user will be allowed to give a combination of keys in a textbox. And once the combination of keys are pressed some event should occur(close form2 or something like that). …

Software Development vb.net
Member Avatar for Reverend Jim
0
216
Member Avatar for SLMQC

I am trying to validate two text boxes in VB 10 Express. The first validation (parts) is working as desired, and the form will not proceed to the next step until zero or a positve number is entered. The second validation (labor) is not working as I would like. If …

Software Development vb.net
Member Avatar for SLMQC
0
269
Member Avatar for san.ssj

Hello, I tried to use the textbox validation snippet available here - http://www.daniweb.com/software-development/vbnet/code/414248/textbox-validation# and Im getting this error. Please help :\ [IMG]http://i45.tinypic.com/9zxbvt.png[/IMG] Thank You

Software Development vb.net
Member Avatar for san.ssj
0
120
Member Avatar for maurices5000

I was wondering if there were any good books or tutorials on how to use controls in ASP.net or Windows controls. (such as WinForm combobox, ASP dropdownbox, gridview, etc.) I remember in VB6.0 having a book that went over how to use many of the basic controls. But i don't …

Software Development
Member Avatar for ddanbe
0
170
Member Avatar for selle05

How to Insert, Delete and Update Data in a Datagridview using MySql as the database? There is a textboxes and button that adds data in the database and i want it to be refresh the datagridview. Can someone give me the code? thanks!..

Software Development vb.net
Member Avatar for ahmad kahlid
0
303
Member Avatar for Kosamov

Hi Everyone, I've been working on creating this code for a project I've been working on but I can't seem to get it to work. I'm creating a service class that I can then pass to a client class that will read a list of cities that ends in a …

Software Development java
Member Avatar for abhi_d_one
0
176
Member Avatar for Sammys.Man

Hi guys, ive got a datagridview populated, in a column of names, in a textbox i want to write a name, and on btn click i want to check the DGV for that name, can someone point me in the right direction please what i have so far, but i …

Software Development
Member Avatar for Sammys.Man
0
162
Member Avatar for lizaron

I have a data set like this data=[{u'a': u'D', u'b': 100.0, u'c': 201L, u'd': datetime.datetime(2007, 12, 29, 0, 0), u'e': datetime.datetime(2008, 1, 1, 6, 27, 41)},{u'a': u'W', u'b': 100.0, u'c': 201L, u'd': datetime.datetime(2007, 12, 29, 0, 0), u'e': datetime.datetime(2008, 2, 4, 6, 27, 41)},{u'a': u'W', u'b': 100.0, u'c': 202L, u'd': …

Software Development python
Member Avatar for zjtpjs4
0
272
Member Avatar for hitro456

Hi all, I have some data in the file, which I want to store in the following format : 23 345 9.8 25 457 9.0 11 237 8.3 86 32 2.3 and so on..... I want to store this data in in some data structure, and later I want to …

Software Development data-structure java
Member Avatar for JamesCherrill
0
184
Member Avatar for Hazuan Nazri

HI, I buy a SNMP board for my project and i got some problem to understand SNMP code with VB, Can somenone help me?, i got this code under another project, and i want to use it in my project but, when i copy and paste it in my project, …

Software Development vb.net visual-basic
Member Avatar for Hazuan Nazri
0
2K
Member Avatar for milkman93

Hey everyone, I want to add action listeners to JButtons that were created dynamically by an ArrayList. Here is the code for the button creation. numOfCourse = 6; courseBtnArray.add(new JButton("Course 1")); gbc.gridx = 2; for (int i = 0; i < numOfCourses; i++) { gbc.gridy++; add(courseBtnArray.get(i), gbc); courseBtnArray.add(new JButton("Course " …

Software Development java
Member Avatar for mKorbel
0
487
Member Avatar for oXHutchXo

i tried this, [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { int carX = 178; int carY = 161; public Form1() { InitializeComponent(); this.KeyDown += new KeyEventHandler(Form1_KeyDown); this.KeyUp += new KeyEventHandler(Form1_KeyUp); …

Software Development image
Member Avatar for AlickIMAGE
0
163
Member Avatar for dougy83

Hi all, I have an application with a ListView of remote files. I'm trying to implement a drag-drop of these files between my application and e.g. windows explorer. I have an object implementing IDataObject used for the DragDrop operation and the files are passed in a string[]. The problem is …

Software Development listview
Member Avatar for dougy83
0
716
Member Avatar for Papa_Don

Group, I'm working with a ListView box for the first time. I've figured out how to populate it with data from a database. I now want to click one line of that ListView and have it return each of the five cells from that line into 5 textboxes. I've written …

Software Development listview vb.net
Member Avatar for Papa_Don
0
188
Member Avatar for mlesniak

Hi all. Using VB6: I have an application in which I am programmatically populating a datagrid. When I first drop the datagrid on my form, it has 2 columns by default. I can add further columns to them but I wanted to know if there was a tidy way of …

Software Development vb.net visual-basic
Member Avatar for imBaCodes
0
249
Member Avatar for Papa_Don

Hi group, I've been playing with a ListView and I'm struggling to get it to populated with info in a database. I'm hoping you may see something in my code that is creating the error. Dim con As New SqlConnection Dim cmd As New SqlCommand Dim rdr As SqlDataReader = …

Software Development listview sql vb.net
Member Avatar for Hazuan Nazri
0
3K
Member Avatar for Papa_Don

Group, I'm declaring a variable in one form that I need to make available in a second form. My code in Form1 looks like this: Public Sub FuncKeysModule(ByVal value As Keys) Select Case value Case Keys.F5 Dim searchtype As Integer If txbPartNo.Focused = True Then Popup_PartNumbers.Label1.Text = "Enter the beginning …

Software Development vb.net
Member Avatar for Papa_Don
0
221
Member Avatar for nick.rechtien.5

Hey folks. I'm hoping I can get some help here. I have to make this program to play the game paper, rock scissors. I am having a few issues with the program. 1.) I dont think i am using the rand() correctly 2.) After entering your choice for Paper Rock …

Software Development c++
Member Avatar for <M/>
0
287
Member Avatar for aqidis

Write a program that performs the least mean squares optimization. Given a large collection of data of the form (x0 x1 x2 x3 d), your task is to determine w0 w1 w2 w3. The LMS technique finds these weights by starting with some assumed weights, such asw0=w1=w2=w3=0, and finding the …

Software Development c++ ios
Member Avatar for flankechen
0
643
Member Avatar for ztdep

#ifndef TINYVEC_HPP #define TINYVEC_HPP #include <iostream> #include<iomanip> using namespace std; template<typename T_numtype, int N_length> class TinyVector { protected: T_numtype data[N_length]; public: ////////////////////////////////////////////////////// // Constructor ////////////////////////////////////////////// TinyVector() { } ~TinyVector() { } TinyVector(const TinyVector<T_numtype,N_length>& x); TinyVector(const T_numtype & initValue); TinyVector(const T_numtype x[]); TinyVector(const T_numtype & x0, const T_numtype & x1); TinyVector(const …

Software Development c++
Member Avatar for ztdep
0
233
Member Avatar for android45

I would like to know what is the difference between dot notation and using square bracket.

Software Development objective-c
Member Avatar for mptheapple11
0
201
Member Avatar for ceelos1974

Hi I got some trouble with my program and I need help. this is the code: public void actionPerformed(ActionEvent arg0) { Object source = arg0.getSource(); if (source == Button1) { System.out.println("Player has choosen the button: " + "button1"); String EP = JOptionPane.showInputDialog("Please enter your file location"); String Path = EP; …

Software Development java
Member Avatar for JamesCherrill
0
169
Member Avatar for robert.speciale

I'm still a bit of a newbie and have what is probably a minor issue, but for some reason I can't wrap my mind around it. I have a program that does a whole bunch of stuff to text from an input file. The input looks like this: MArch 9, …

Software Development c++
Member Avatar for deceptikon
0
150
Member Avatar for toldav

If any one can help me please to answer this questions please: 1. What is the difference between this.dollars and otherMoney.getDollars() 2.- What the return statement of this method is returning. 3.- How this method would be called from the main and give an example Thank you in advanced. // …

Software Development java
Member Avatar for toldav
0
128
Member Avatar for robert.speciale

So I am working on a problem and have a bit of an issue that I can't seem to figure out and would like some guidance. I have string input coming into my program via fstream. Its a bunch of sentences where I have to cout it in such a …

Software Development c++
Member Avatar for robert.speciale
0
189
Member Avatar for cattcita

# Login form coding # I have created a login page using Visual Studio 2008. I have the full coding but don't know where to place it. I have a addnew user link where I must add information about password and user name and check this information in the database.

Software Development vb.net visual-studio
Member Avatar for cattcita
0
104
Member Avatar for overwraith

If there is a String Buffer, and a String Builder based on array technology, why then is there no equivalent mutable data type based on a Linked List? Or is there?

Software Development java linked-list
Member Avatar for overwraith
0
261
Member Avatar for game06

note player is a space ship. in player class i have set up collision so that player cant go above window and below. player class public void playerWCollision() { if(y < 0) { y = 0; } else if(y+height > Main.WINDOW_HEIGHT) { y = Main.WINDOW_HEIGHT-height; } } lets say player …

Software Development java
Member Avatar for game06
0
138
Member Avatar for dinesh012

hi i have a database with a image(Binarycode) and i want to select that image and infomation i tryed like this but it says liki this OledbExpaession unhandled No value given for one or more required parameters. my code like this Imports System.Configuration Public Class Form9 Dim A As String …

Software Development vb.net
Member Avatar for dinesh012
0
206
Member Avatar for zachattack05

Hi everyone! I am working on a custom control, and for the life of me I can't figure this one out. As of right now, all properties for controls that are settable in the editor I use this code: [Browsable(true), Description(""), Category(""), DefaultValue()] I fill in the blanks appropriately, but …

Software Development
Member Avatar for zachattack05
0
146
Member Avatar for virusisfound

Hi.. I am trying to create question paper generator application in C# windows application with sql server as back end. Now I need your help to select the questions from database. Ex: User Selection like: Chapter selection from listbox then select 1 mark – 5 question 2 mark -3 questions …

Software Development c# sql
Member Avatar for virusisfound
0
740
Member Avatar for shrina

how to read from txt file to array & how to omit heading in the txt file and store it to array

Software Development c++
Member Avatar for tinstaafl
0
254
Member Avatar for darkocean

Whenever I want to delete row my excel file in c#. I have get error. I tried much much codes on the net but I can not solve my problem. Please solve my problem... Regards,

Software Development c c# c++
Member Avatar for santiagoivan.santana
0
9K
Member Avatar for zahrak

hi. i work on image processing.how can i convert my mfile to c++ code? i try with : mbuild -setup mcc -B cpplib:mfile a.m and matlab compiler give me cpp code but i can not run it. how can add lib & header file that it can run? is there …

Software Development c++
Member Avatar for mohammad110
0
865
Member Avatar for Clan Onion

In Assembly there's not going to be much insight on linked lists, B trees, arrays, etc. In fact those don't even exist at the bit level. Sure, they help solve some problems from all the way up to your compiled language syntax, but such symbols don't exist in machine code, …

Member Avatar for mathematician
0
298
Member Avatar for riahc3

Hello I have this: String price="10,00 €"; int num=2; int sum=Integer.valueOf(price)*num; System.out.println(sum); //Should print out AT LEAST 20,00 But note: That € sign can be $, €, £ or another AND it can come before or after the numeric float amount. What is the best way to do this? Thank …

Software Development java
Member Avatar for mKorbel
0
554
Member Avatar for Malortje

Hi guys, i'm a little bit new to c# but someone asked me to make something for him, now was the question to make a Winform application, and you can insert 2 xml files, then read the xml files, and make a new xml file with the updated data out …

Software Development xml
Member Avatar for Ketsuekiame
0
289
Member Avatar for nilesh7136

hello, i have a application, with sql database, now i want to backup every week, so i have code a but it gives error: "The process cannot access the file 'C:\Users\yogeishh\Desktop\Restaurant-Stock-Management-System\Restaurant-Stock-Management-System\DataBase\RestaurantStockDataBase.mdf' because it is being used by another process." can anybuddy solve this error?? my code is :: " Private …

Software Development sql vb.net
Member Avatar for Begginnerdev
0
276
Member Avatar for typomaniac101

I have searched tutorials, etc., on the subject of using flock but it seems like nothing gives a straight answer. I have a script for a guestbook which will allow users to upload photos. Everything goes to a MySQL database with the exception of the image which will go into …

Software Development perl
Member Avatar for semontuffel
0
164
Member Avatar for dinesh012

hi .... im tring to insert a picture with some information to the database when i run the progaram it will display the bellow message NullRefaranceExprasion was Unhandle Object reference not set to an instance of an object. this is my full code is there is any mistake? Imports System.IO …

Software Development vb.net
Member Avatar for dinesh012
0
227
Member Avatar for nitos

hi, i need to .show a window to enter the date of a record when it was recalled i have the following so far but its jumping the frmRecallDate.show line. Any help is appreciated Private Sub cmdRecall_Click() On eror GoTo ErrMsg: With rsRecalls If .State = 1 Then .Close .Open …

Software Development visual-basic
Member Avatar for Jx_Man
0
287
Member Avatar for LeNenne

Hi I know how to make just numeric textbox, but the problem is that I wisch to enter in the text box wit 2 numbers and then search trough a database to recive just zipcodes. Lenny

Software Development visual-basic
Member Avatar for Jx_Man
0
103
Member Avatar for Sammys.Man

hi guys, im a bit stuck here and wondered if anyone could help? what i want to do is, after the DataGridView is populated (this part works fine) is to do a calculation on 2 columns i.e column 2 column 6 1 2 2 2 i need column 1 and …

Software Development
Member Avatar for Sammys.Man
0
192

The End.