132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for coder389

I want to delete the entire folder or directory along with files and folders contained in it. how can I implement in c#?

Software Development
Member Avatar for Mitja Bonca
0
232
Member Avatar for superbhimanshu

Hi all, I am trying to read data from an excel file using "xlrd" functions. File contains many columns one of which is Date and time (in MM/DD/YYYY and HH:MM:SS AM/PM format). I am successful in reading all other type of data. But unfortunately for this column, program could read …

Software Development microsoft-office python
Member Avatar for superbhimanshu
0
203
Member Avatar for rover100

Hi guys, im new to these forums and would like some help with two problems im having in my program to make crossword The crossword requires me to read 5 inputs in one line. word row column direction clue Problem 1- input I wish to getchar the first word while((answerInput[count][i++]=getchar())!=' …

Software Development c
Member Avatar for rover100
0
166
Member Avatar for spowel4

If I have an arraylist of arrays (each item in the arraylist is itself a one-dimensional array), how can I iterate over each element of each array contained in the arraylist?

Software Development java programming-construct
Member Avatar for JamesCherrill
0
220
Member Avatar for Vish0203

i wrote a program to determine the binary digits of the entered integer. I want to implement it in other programs directly, instead of typing the same code again n again. Does anyone know? how to do that????????? #include<conio.h> #include<stdio.h> int main() { int n,a[20],i=0; printf("Enter a number: "); scanf("%d",&n); …

Software Development c
Member Avatar for Sky_Flyer
0
194
Member Avatar for lena20

Hi, I am writing some data to a particular xml file .There is one element for which the attribute value contains & , eg : XmlAttribute value=doc.CreateAttribute("Value"); Element1.SetAttributeNode(Value1); Value1.Value="&quot;"; Output: <Element1 Value="&amp;quot;"> What is the escape sequence for printing an & in an xml file ??

Software Development xml
Member Avatar for lena20
0
174
Member Avatar for pitic

Hy, I have created a webservice (asmx) which has some webmethods. In same project i also have a webpage (aspx) with some multiline texboxes which i want to use as log output from webmethods. If i call a webmethod from another prorgram i want to display in the textboxes the …

Software Development
0
82
Member Avatar for nanako

How do i transfer the information stored in the 2nd and 3rd col of the selected row in datagrid im using visual basic 6 i have to transfer it to a textBox in a diferent form please tell me if its possible

Software Development vb.net visual-basic
Member Avatar for poojavb
0
152
Member Avatar for NunsBeachSurfer

Hi, I'm working on some coding and ran into the problem that my multidimensional arrays are too large for my RAM. After reading a lot of articles, I figure that what I need to do is dynamically allocate the size of the array? The array that I need to do …

Software Development c++
Member Avatar for NunsBeachSurfer
0
152
Member Avatar for london-G

Hello, Basically I am planning to develop a database system for a school. There will be three subsystems 1. The teachers (add, remove, edit) 2. The students(add, remove, edit) 3. The classes( add, remove, edit) as an interactive timetable. I am planning to use java(netbeans) and would like to hear …

Software Development java java-netbeans
Member Avatar for anand01
0
108
Member Avatar for triumphost

I'm trying to have my function return an OPENFILENAME struct. Problem: It returns it fine and everything except that I cannot print the filetitle :S At the moment, it prints the path of the file perfectly fine but when it comes to printing the file title via cout, it prints …

Software Development c++
Member Avatar for Ancient Dragon
0
275
Member Avatar for geeerald1131

Help me please.. I can't make this code in window form application.. using System; namespace _01.Decimal_to_Binary { class DecimalToBinary { static void Main(string[] args) { Console.Write("Decimal: "); int decimalNumber = int.Parse(Console.ReadLine()); int remainder; string result = string.Empty; while (decimalNumber > 0) { remainder = decimalNumber % 2; decimalNumber /= 2; …

Software Development
Member Avatar for Mitja Bonca
0
202
Member Avatar for spowel4

I have a list of type <string[]>, and each item in the list is a one-dimensional array. I need to sort the list according to a particular field in the arrays, how can I do this? An illustration for clarity: list item #1 = array(112, Maxwell Smart, MIS) list item …

Software Development
Member Avatar for Mitja Bonca
0
1K
Member Avatar for GeekTool

In this code i did not understand something. In one class, a variable is declared as private, but then this value is used in another class. import java.awt.Graphics; import javax.swing.JPanel; public class DrawRect extends JPanel { private int choice; //user's choice of which shape to draw. public DrawRect (int userChoice){ …

Software Development java java-swing
Member Avatar for GeekTool
0
129
Member Avatar for GeekTool

> I have asked this question before, but i think i could not totally understand the diffefence between bitwise and logical operands. According to the book i am using to learn java, the bitwise operands can change the value and this is described as side effect. Also, in bitwise operands, …

Software Development java
Member Avatar for GeekTool
0
129
Member Avatar for mikeybware

I have a string of text being sent through a serial port to a text box (Text1.Text). The string has some symbols in in which I am assuming are Hex values. The hex values are Hex(1), Hex(4), Hex(12), and Hex(17). What I need to do is find the position of …

Software Development vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for mercenary16

I am barely learning x86 assembly, and I am having trouble. How do I address the individual items in an array in assembly? This is my attempt, but I am very confused. char example( char arrayOfLetters[], int arraySize) // arrayOfLetters = {a, B, c, D, e, F} { ~asm{ mov …

Software Development assembly
Member Avatar for sbesch
0
407
Member Avatar for Jsplinter

I'd like to represent an integer with a value between 0-100,000. Unsigned short int (range 0-65535) is too small. Unsigned int (range 0 - 4294967295) is big enough, but for a large data set this wastes a lot of space. Does there already exist a class that is in between? …

Software Development c++
Member Avatar for Jsplinter
0
4K
Member Avatar for HTMLperson5

Is it possible to change text colour in the console window with Python? If so, could anyone tell me how?

Software Development python
Member Avatar for HiHe
0
191
Member Avatar for dmv091

Hello community i am new to vb.net and was wondering if anyone had some turtorials as i am trying to create a tool for my job. I would like to create a tool to gather data from sql 2008 by searching a clients name and then pulling the clients record …

Software Development vb.net
Member Avatar for Reverend Jim
0
103
Member Avatar for tomtetlaw

When I handle WM_MOUSEMOVE in my window prodedure, HIWORD(lParam) and LOWORD(lParam) are both a little off. It's returning a point that is slightly to the left and slightly above where my cursor actually is... What's really weird is that as I move the cursor closer to the top left of …

Software Development c++
Member Avatar for tomtetlaw
0
574
Member Avatar for Riteman

I have two RichTextBoxes in my vb.net application (rtf1 & rtf2). rtf1 is loaded with the external data. Mostly It contains para split into different sections. The paragraph is a dynamic data, hence the no. of words keep on changing. Now my question is that, I want to select a …

Software Development vb.net
Member Avatar for Riteman
0
3K
Member Avatar for maverick0612

I am connecting to a data stream that pushes data continuously and when I tried to set up a network stream I just could not connect and kept getting the 'not found' error. I used the httpwebrequest with webrequest.keepalive = true and started to consume the data by reading into …

Software Development api http-protocol vb.net
Member Avatar for Oxiegen
0
1K
Member Avatar for bcarancibia

Hi guys, My university recently switched mail services and in order to maintain our new listservs we have to import the emails using a different format. I have all the emails in a text file like this: test@testing.com test2@testing.com test3@testing.com In order to import it to the new mailing system …

Software Development python
Member Avatar for bcarancibia
0
180
Member Avatar for soham.m17

I have a panel(JPanel) and it has FlowLayout by default. It has no preferredsize. I have a JScrollPane. So When I am adding buttons to the panel, the buttons are horizontally added. I want that to be added vertically. panel = new JPanel(); JButton clearButton = new JButton("CLEAR"); panel.add(button); JScrollPane …

Software Development java
Member Avatar for JamesCherrill
0
136
Member Avatar for aznairjordan

i found out how to get each individual word from a text file. Now i am trying to limit each line to a certain number of characters. If the line limit is 10 and the word "string" starts at position 8, i need to make a newline and put "string" …

Software Development c++
Member Avatar for Sky Diploma
0
212
Member Avatar for turkgames

Hello, I have been working on a school project of Algorithms class. It is basically to create a C project to insert numbers into a binary search tree then order it and find the largest element. The largest number goes to the right node of the tree so it should …

Software Development c
Member Avatar for turkgames
0
182
Member Avatar for tyggagucci

hie guys could anyone help me on how i can read a delimited file as i view all customer details #include <fstream #include <iostream> #include <string> using namespace std; int main () { int choice [1]; string name; string idnumber; string address; string surname; string FileName; fstream myfile; string line; …

Software Development c++ ios
Member Avatar for deceptikon
0
260
Member Avatar for chophouse

My first Daniweb question!! Am at the front end of learning Python (3.2.3) I'm doing a SQL query into a MySQL database for two fields, track_ID and track_duration. I'm getting a return of both, but instead of the duration value being expressed as 00:02:50, as it is stored in the …

Software Development python
Member Avatar for TrustyTony
0
154
Member Avatar for 330xi

How to hide and then to show again when I want to a standard menu toolbar in MFC doc view application?

Software Development c++
0
92
Member Avatar for khukln-k

Python 3.2.2 I want to check HTTP status code (eg. 200 or 404) on some www application. There are five server, and each server have a copy of this www application (The user is automatically redirected to the application on the server with low traffic/sometimes on random server). Suppose that …

Software Development python
Member Avatar for khukln-k
0
341
Member Avatar for dimitrije17

Hello I would like to know how to make .bat files with a time trigger some thing like this: I make a file with autorun and it ahs a time trigger and after two monts it opens this file... can someone please help me resolve this problem..... thanks...

Software Development audio c++ politics
Member Avatar for dimitrije17
0
253
Member Avatar for Lord_Migit

Hi there. I am having some trouble trying to figure out how to delete a pointer that is held in a vector. int main() { vector<Test*> iVector1; vector<Test*> iVector2; vector<Test*>* pVec1(&iVector1); vector<Test*>* pVec2(&iVector2); pVec1->push_back(new Test(11)); pVec1->push_back(new Test(12)); pVec2->push_back(new Test(23)); pVec2->push_back(new Test(24)); //delete iVector1.at(0); delete iVector1[0]; iVector1.at(0) = new Test(21); pVec1->at(1) …

Software Development c++
Member Avatar for Lord_Migit
0
258
Member Avatar for bazzer14

Hi..... How do i set a listview to only add one item from a combobox? Example: In the text file containing the list are "Chicken, Beef, Buffalo", that already exists in listview is "Cow" then the listview will only add "Chicken, Buffalo". i have here a code for adding items …

Software Development listview vb.net
Member Avatar for bazzer14
0
128
Member Avatar for Johannady2

It compiles but my JButton won't work... when i run the applet and press the Exit button.. it just prints some errors(or i dunno what they are) in the black window that opens when you run the applet. import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; ; public class CheckRadioTest …

Software Development java java-swing
Member Avatar for Johannady2
0
255
Member Avatar for Johannady2

This only does either BOLD or ITALIC... import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.applet.*; public class CheckRadioTest extends JApplet implements ItemListener { //private String CurrentComboName = "Select One"; private JLabel headingLabel; private int currentStyle = Font.PLAIN; //private int intBold = Font.PLAIN; //private int intItalic = Font.PLAIN; private …

Software Development java java-swing
Member Avatar for NormR1
0
2K
Member Avatar for Johannady2

I tried to convert this GUI to a JApplet but then I get the error message. > D:\JAVA\PROGRAMS\whiteboard\whiteBoardapplet.java:9: error: whiteBoardapplet is not abstract and does not override abstract method actionPerformed(ActionEvent) in ActionListener > public class whiteBoardapplet extends JApplet implements ActionListener > ^ > 1 error > > Tool completed with …

Software Development gui java java-swing
Member Avatar for Johannady2
0
187
Member Avatar for mie.ilani

Hye, i got problem while saved the record. here is my code. Imports System.Data.OleDb Imports System.Data Imports System.Configuration Public Class Form2 Shared STAFF As Form2 Function GetInstance() If STAFF Is Nothing Then STAFF = New Form2 ElseIf STAFF.IsDisposed Then STAFF = New Form2 End If Return STAFF End Function Private …

Software Development vb.net
Member Avatar for poojavb
0
129
Member Avatar for Johannady2

This is a JApplet. the Radio Buttons for colos work.. why won't the Checkboxes work? import java.awt.event.*; import javax.swing.*; import java.awt.*; public class CheckRadioTest extends JApplet implements ItemListener { //private String CurrentComboName = "Select One"; private int currentStyle = Font.PLAIN; //private int intBold = Font.PLAIN; //private int intItalic = Font.PLAIN; …

Software Development java java-swing
Member Avatar for Johannady2
0
197
Member Avatar for abathurst

I am having trouble with databinding when trying to add it to a dropdownlist. I can get it to work with a label: <asp:Label ID="Label3" runat="server" Text='<%# Eval("Location") %>'></asp:Label> But when I try with the DropDownList I get this error and I can't seem to find an answer for it. …

Software Development vb.net visual-basic
Member Avatar for poojavb
0
190
Member Avatar for vincent5487

Write a program that prompts the user to input the start time and the stop time in hours and minutes (use 24 hour format), and then print out the time spent in work in hours and minutes. For example: Enter start time : 9 30 Enter finish time : 13 …

Software Development c++
Member Avatar for subith86
0
205
Member Avatar for sciwizeh

I'm working on a Graph based Image editor. My current plan is to have Nodes of the graph be operations on the image, an operation will take a number of input buffers and manipulate them in some way (be it invert a single input, composite two inputs, draw a rectangle …

Software Development java
Member Avatar for ~s.o.s~
0
175
Member Avatar for sidestrand

I have a small amount of data in a file which I want to use to draw plots. I can't see any problem with the following code, but running it results in the error message below. `a,b,c = np.loadtxt('myfile.csv', delimiter=',', usecols=(0,12,18), skiprows=1, dtype=('S5, i4, S8'), unpack=True)` ValueError: too many values …

Software Development python
Member Avatar for sidestrand
0
2K
Member Avatar for rajesh1158

In the below code, I want to know the significance of 10 while creating a PrioriyQueue. I know its the initial capacity but what does it mean?? I replace 10 with any positive number and the output remains same. import java.util.*; class Test { static class PQsort implements Comparator<Integer> { …

Software Development java queue
Member Avatar for JamesCherrill
0
201
Member Avatar for memomk

hey i heard that there is something called qt signals you can use it to change the GUI out side the main thread coz when i try to change it i get an error that i cant change the gui out of the main thread but i need it to …

Software Development gui python qt
Member Avatar for memomk
0
8K
Member Avatar for Swapnil Palande

Hi all, Please solve my Problem: I have DataGridView and Dataset. I want to add data from dataset to datagridview row by row and not by using DataGridView.DataSource method. For ex. following is the way to do the same using Vb.net [CODE] dgClient.Columns.Add("client", "Client") dgClient.Columns("client").Width = 150 dgClient.Columns.Add("comments", "Comments") dgClient.Columns("comments").Width …

Software Development dataset vb.net
Member Avatar for antoar
0
3K
Member Avatar for yavindu

how can I download turbo c++ for windows 7 64-bit version

Software Development c++
Member Avatar for WaltP
0
82
Member Avatar for DonutsnCode

Hi guys, Your typical C++ beginner here. I'm using the renowned Deitel C++: How to program to learn C++. I am my own mentor and here's what I can't comprehend: What's a Dangling Reference? According to Deitel C++: How to Program and I quote "Functions can return references, but this …

Software Development c++
Member Avatar for elmohler
0
940
Member Avatar for iraj.jelo

I'm trying to print the contents of a QTableView to the printer . i implement bottom script and it run successfully without any error. but all data are Unusual in printPreview. this is [pic](http://img4up.com/up2/75917679167425743216.png) from my problem -[FOUNTAIN](http://www.qtcentre.org/threads/3796-QTableView-printing?highlight=Qprinter) def printTable(self,printer,painter,area): model = self.model myTableView = self.view printer = painter rows …

Software Development printer python qt
0
221
Member Avatar for elitely

Hello, I am new in VB2008. Could you guys please advice how I can programmtically delete/remove/clear the content of a cell of DataGridView? Say,for example,I have the following code that populates with data in DataGridView. Now,how can I clear/delete the "Test4" text from the cell of DataGridView? The GridView is …

Software Development vb.net
Member Avatar for elitely
0
4K

The End.