43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ChrisHunter

Hi I'm pritty new to C# I'm having trouble with items repeating in a combo box This method gets the values from my table and stores it in the list of strings which it does fine . . . I think. [CODE]public class EditStates { public List<string> getStates(CEditStates ced) { …

Software Development c#
Member Avatar for lolafuertes
0
214
Member Avatar for Gobytza

Hi,I am new in c# development and I have some problems in my smart device application.I have 3 forms: Orders, Add_orders, Add_client. Orders is the mainform. What I want is that when I click 'Save' on Add_orders form, to navigate back to Orders form but not to close the Add_orders …

Software Development c c# c++ xml
Member Avatar for lolafuertes
0
130
Member Avatar for canadiancoder

Hi Folks, I've been looking around all day and I've tried numerous suggestions, but to no avail. I've got a struct in C# defined as: [code] [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct GenericTrackRecord<T> { public Int32 hasValue; public T value; } [StructLayout(LayoutKind.Sequential, Pack = 1)] public struct OTXFixDetailsStruct { public …

Software Development c# c++
Member Avatar for canadiancoder
0
3K
Member Avatar for ampoliros

I am using a Pwm TextDialog (which inherits from ScrolledText which inherits from Text). It is being used as a real time status pop-up window. A good deal of the status messages use a carriage return ('\r') at the end of the message as a way of conserving vertical space, …

Software Development python tkinter
Member Avatar for ampoliros
0
2K
Member Avatar for L3gacy

Im doing a code "test" from the c++ book I am currently reading, the objective is to ask for input using a function and output data using a function, while keeping the data in main. I finished it and it works, but I want to make the program not accept …

Software Development c++ objective-c
Member Avatar for L3gacy
0
260
Member Avatar for icez17

Hi, I'm writing a small piece of code finding the number of unique 3D arrays in a N*3 array. I first sort the N*3 array, and apply a "condition" function : if the consecutive 3D arrays do not have the same element, then the unique number count +1. Here is …

Software Development c++
Member Avatar for icez17
0
246
Member Avatar for EddieN1

I have a DataGridView control and I want to know if the user has changed any data in the row when they leave one row and go to another row. Here's what I've done... In the Form Class I defined a Before and After row image as follows: Dim rwBefRow …

Software Development vb.net
Member Avatar for EddieN1
0
1K
Member Avatar for stephy1

Can anybody suggest me a tutorial for Perl. I have to prepare for a interview. And have to practise

Software Development perl
Member Avatar for deepakkrish
0
92
Member Avatar for rgpii

Hi, I have been reading "Learning Perl the Hard Way" and I was trying to complete one of the exercises which involved the use of regular expressions. I could get all of the anchors working except for "$". I have my code below with errors. I was just curious if …

Software Development perl
Member Avatar for deepakkrish
0
524
Member Avatar for SakuraPink

I'm new to C and I have a question I think it's not that complicated. I'm trying to write a code that creates strings like : File1,File2,File3, etc. Here is my code: [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> #include <string.h> int main(void){ char string1[80]="File"; char string2[80]=""; int number = 10; …

Software Development c
Member Avatar for WaltP
0
107
Member Avatar for Gsterminator

So my homework assigment was to create a new method in the class section called, public void deleteStudentsWithName(String)...So what it does is reads a files, converts it into an array, and then it asks the user which name you want to delete. My program is very messy(in my opinion), but …

Software Development java
Member Avatar for Gsterminator
0
256
Member Avatar for sosongetsu

I have been working on this program for about a week and i have been getting these errors that i just cant get by. The program is supposed to first accept user input for the type of symbol. Then its supposed to accept user input for a number. Finally it …

Software Development c++
Member Avatar for sosongetsu
0
194
Member Avatar for gr8fasushi

Hi everyone, novice here. I'm having some major issues trying to figure out what's going wrong with my code. The general problem is that I can't get the foreign key in one of my child tables to populate the primary key from the parent table. I have a parent table …

Member Avatar for gr8fasushi
0
233
Member Avatar for 5ophie2012

For my assignment, I have to read a text file one character at a time and display it in the console. Here's my code for this: [CODE]class TEXT { static StreamReader reader; static void Main() { int ch, characters = 0; // file that is being read in and displayed …

Software Development file-system
Member Avatar for 5ophie2012
0
180
Member Avatar for zachattack05

I tried asking this at the MSDN website and didn't get an answer at all...I was hoping someone here could help. If I indicate that SQL Server Express is to be a pre-requisite for my application, how does the installer interpret this? For example: If end user A already has …

Software Development sql
Member Avatar for zachattack05
1
237
Member Avatar for Nandomo

I really don't know how to capture the information from the bitmap file when talking about the pixelArray, I know what I have to do it when I capture it to turn it negative, but each time I run my code it crashes when I run the code I think …

Software Development c++ ios
Member Avatar for Nandomo
0
171
Member Avatar for 5ophie2012

My program in a nutshell is reading a text file, outputting it to the console screen one character at a time, and then writing the characters as its read as hex pairs. I'm calling this method in a loop: [ICODE]WriteByte((char)ch, ref writer);[/ICODE](passing in the character, and a reference to the …

Software Development
Member Avatar for 5ophie2012
0
261
Member Avatar for Geemon

Hi I am new to the forums, and somewhat new to python. I'm trying to make a Text Based Adventure game. I don't have an error, but a bug. This is the code: [code]import descriptions inventory = [] gold = 0 acts = {"north":"hi"} def start(acts): print(descriptions.start) rm_a(acts) def rm_a(acts): …

Software Development daniweb-bug gaming python
Member Avatar for griswolf
0
209
Member Avatar for HeartBalloon

I don't know what it means: [CODE] class Tree{ friend ostream& operator<<(ostream&, const Tree&); private: TreeNode *Root; void insert(TreeNode*&,int); void PrintInOrder(TreeNode*); int Median(int[],int&); public: Tree(); Tree(int); void insa(int[]); void ins(int); void print(); }; ostream& operator<<(ostream& out, const Tree& tree){ out << tree.Root ->GiveValue(tree.Root); return out; } Tree::Tree (){ Root = …

Software Development c++
Member Avatar for HeartBalloon
0
998
Member Avatar for alex55

Im inputting from a file to a 2d array and i dont know how to stop it once it gets to the end of the file the code i have for it so far is [CODE] for(int i=0; i<records; i++) { for(int j=0; j<month; j++) { inFile >> monthArray[i][j]; } …

Software Development c++
Member Avatar for alex55
0
171
Member Avatar for HeartBalloon

I have to write a code to build an array like this: 1,6 1,0 2,3 3,4 5,6 4,5 7,6 1,2 9,7 Where the numbers are coordinates which have to be "separated" when taken in consideration Like: cell[2][2]---> x=5 y=6 I decided to make a char array, so that with atoi() …

Software Development c++ matrix-multiplication
Member Avatar for HeartBalloon
0
110
Member Avatar for johnt68

Hello - I'm not great at programming but I'm definitely worse at maths. I have been tyring to do this 'simple' salary calculator for so long that I am getting the numbers mixed up. I have had some of the calculations adding up correctly but not others and have now …

Software Development
Member Avatar for johnt68
0
111
Member Avatar for alexchen

What is the difference between using system("pause") and cin.get(pause)? [URL="http://www.daniweb.com/forums/post1446085.html#post1446085"]Oliver [/URL]told me never use system("pause"). [code] #include<string> #include<iostream> int main(){ using namespace std; string str = "My name is shridhar"; cout<<"What is your name"<<str; char pause = 0; cout << "Press enter to continue..."; cin.get(pause); } [/code]

Software Development c++
Member Avatar for VernonDozier
0
349
Member Avatar for spetro3387

Hi everyone, I am working on a 3D viewer using libQGLViewer. In all of the examples provided, the main function looks something like this: [CODE] int main(int argc, char** argv){ QApplication application(argc, argv); Viewer viewer; #if QT_VERSION < 0x040000 application.setMainWidget(&viewer); #else viewer.setWindowTitle("pointCloud"); #endif viewer.show(); return(g_qApplication.exec()); //waits for Esc } [/CODE] …

Software Development c++ qt
Member Avatar for spetro3387
0
160
Member Avatar for medaugh

Hello, I have stared at this script for the last two days and am unable to find the cause of my error message. Any help would be greatly appreciated. The script is [CODE] #!/bin/sh for i in '/xxx/*' do if [ -f /xxx/$i ] then HOST='xxx.xxx.com' USER='xxxx' PASSWD='xxxx' FILE='$i' ftp …

Software Development shell-scripting
Member Avatar for JeoSaurus
0
628
Member Avatar for earwax

Hi i need to press non-english keys like "ü","ö" in java but i didnt managed to do this using robot class. So how can i press non-english characters?

Software Development java
Member Avatar for earwax
0
240
Member Avatar for mackemforever

I've been set in a lab session at University the task of creating a program which can perform one of a variety of calculations, with it performing the one specified by the user, and with it looping back after every calculation however it is the looping which is causing me …

Software Development c session visual-studio
Member Avatar for chrjs
0
149
Member Avatar for stephy1

I am retrieving values from database. I initialized a variable outside the loop. I am using while loop to move one record after other to last using ResultSet object.next(). Inside the while I am assigning the record value to the variable initialized outside while. But It shows variable might not …

Software Development java
Member Avatar for VernonDozier
0
176
Member Avatar for Syphilis

What's Up? OK, So I'm making a small batch script, That retrieves the IP of a website, And put it into a variable so we can use it later on. The problem is how do I get the IP of the website into a varible? The way I was going …

Software Development shell-scripting
Member Avatar for JeoSaurus
0
144
Member Avatar for NewOrder

i want to transfer my code to a winform. i know how to create buttons, text,,etc... and how to operate them. The problem is that i made my code in a windows application, and i want to transform it to window form application.. i dont know how to copy and …

Software Development
Member Avatar for NewOrder
0
164
Member Avatar for Jaseem Ahmed

i m here to ask u a importnt question... is there any way to scroll down or up the text boxes on frames... i mean to say, i have one form, and a frame, and so many text boxes on frame, that all can not b shown at a time, …

Software Development visual-basic
Member Avatar for AndreRet
0
219
Member Avatar for Rookie09

Sup guys, I got another "little" thing here , i am trying to create a preprocessor macros for SQL language , so when the compiler run into things like SQL key words : for example : COLUMN(title) TYPE(string), COLUMN(author) TYPE(string), COLUMN(copies) TYPE(int), it automatically will generate appropriate C++ code ( …

Software Development c++ data-structure sql
Member Avatar for Mpampirina
0
205
Member Avatar for singhabsk

Good morning all, here i have some probs. in logic if possible just solved it i have a text file contains following data..... sec TID SID ATTRIBUTE 69013 1-3039 1 REGISTER 69013 1-3039 1 100 69013 1-3039 1 401 69013 1-3039 2 REGISTER 69013 1-3039 2 100 69013 2-3039 1 …

Software Development perl
0
96
Member Avatar for ktsangop

Hi everyone! Just wanted to ask before i begin messing around. Is it possible for two processes to access the parallel port simultaneously? So that if i short circuit Input pins to output pins of the parallel port one process will provide input to another one? I am using Windows …

Software Development c++ windows-xp
Member Avatar for ktsangop
0
211
Member Avatar for ComicStix

Hello everyone! So I have to do this project for computer science class. We have to make a class that generates 50 odd numbers in order starting at 1 and stores them in an array of 50 int elements. Then we have to arrange the numbers we get so that …

Software Development java
Member Avatar for adarshcu
0
314
Member Avatar for TinhornAdeniyi

i am trying to move the node in the first item from the list and add it to the back of the list 1->2->3 becames 2->3->1 instead i get 3 1 2 [CODE] #include <iostream> using namespace std; struct nodeType { int info; nodeType *link; }; void createList(nodeType*& first, nodeType*& …

Software Development c++ linked-list
Member Avatar for TinhornAdeniyi
0
201
Member Avatar for stephy1

I got Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at this line.[CODE]File f1= new File(args[0]);[/CODE] I guess i have to give a command line argument. How to give a file as command line argument. Or is this someother one?

Software Development java
Member Avatar for masijade
0
724
Member Avatar for kocmohabt33

First of all, I'm new to Daniweb and I would like to thank in advance to all those who take their precious time to help me. I appreciate it greatly. Hopefully, I'll get good enough to contribute and help others in the Daniweb developing community, as well. The problem I'm …

Software Development c++
Member Avatar for kocmohabt33
0
142
Member Avatar for Chair

Hi, I need help in numbering rows in datagrid. I have a column that should number 1,2,3 so on when adding a new row. When I delete a row, those numbers should re-number still to 1,2,3. So when I delete row 2, the row that's been added as 3 should …

Software Development vb.net
Member Avatar for Pgmer
0
313
Member Avatar for zetologos

Im playing around with the clone method of arraylist and have a few questions. This is what i did with it: [CODE] ObjectMaker item1 = new ObjectMaker(); ObjectMaker item2 = new ObjectMaker(); ObjectMaker item3 = new ObjectMaker(); ArrayList<ObjectMaker> arrayList = new ArrayList<ObjectMaker>(); arrayList.add(item1); arrayList.add(item2); arrayList.add(item3); Object theList = arrayList.clone(); [/CODE] …

Software Development java
Member Avatar for naief
0
188
Member Avatar for FL Botanist

WARNING: I am a botanist, not a programmer. If you are offended by newbie questions, please jump to the next thread. I'm in the Environmental Horticulture at the University of Florida and I'm trying to build an online, multiple-entry key to help students identify the plant families. I have permission …

Software Development c
Member Avatar for FL Botanist
0
251
Member Avatar for singhabsk

hi i m abhi i have one file containing some info like LT19-10-13-400922 --TID1-3039 1--RequestREGISTER LT19-10-13-405432 --TID1-3039 1--Response100 LT19-10-13-410015 --TID1-3039 1--Response401 LT19-10-13-415481 --TID1-3039 2--RequestREGISTER LT19-10-13-419800 --TID1-3039 2--Response100 where LT19-10-13-400922 is log time ,,i.e. 19 hr. 10 min. 13 seconds 400922 usec. and i want this to convert only in second …

Software Development perl
Member Avatar for singhabsk
0
163
Member Avatar for Nandomo

I am writing a program which asks the user for input, how many digits to use, on 2 numbers which will multiply themselves. A loop will multiply all combinations of that number digits and determine the largest palindrome. I know how to do palidnromes with strings, but don't know if …

Software Development c++
Member Avatar for Nandomo
0
116
Member Avatar for Zabzacon

Okay, so I am trying to make a game much like an old game called "Chip's Challenge". Right now I have a square that I can control with the arrow keys but I'm not sure how to make a wall that cannot be passed through, could anyone help me?

Software Development java
Member Avatar for Zabzacon
0
157
Member Avatar for lgonzo

am newb in c++ trying to write simple c++ program that a computer, try to guess a number i have chosen by it producing rand number and me telling me whether it is to low, high, or right and using do while loops we are suppose to produce it now …

Software Development c++
Member Avatar for lgonzo
0
2K
Member Avatar for vandadm

Hello, I'm working on an assignment for class, in which: 1) I need to display a menu for fruit selection. 2) After selection is made, program asks for quantity (double). 3) Program should enter selection in class array (this seems fine). Where I'm having the problem is in the do …

Software Development c++
Member Avatar for vandadm
0
114
Member Avatar for DaveTran

I'm currently using the following for counting forwards and backwards through an array depending on the current index. If the index increments past the end of the array it now decrements and vice versa. [CODE] isReversed = isReversed ? index - 1 != -1 : index + 1 == array.Length; …

Software Development
Member Avatar for DaveTran
0
100
Member Avatar for CrankyMero

Hello Everyone Im having kind of trouble looking for this info, but i created a POS program that when i install it, it install under Local Settings\Apps\2.0\blabla So what i want to know if how can i make my system install like any other program, "Under Program Files/POSystem/" like so …

Software Development vb.net
Member Avatar for CrankyMero
0
121
Member Avatar for guest11

hi all, I am using crystal report for displaying reports. I want to display group by customers in report that i am displaying using group by funtion but i also want subtotal of that group by customers. I want to display received amt date, received amt and balance amout between …

Software Development vb.net
Member Avatar for ahmedtohamy
0
134
Member Avatar for runge_kutta

Hello, I am new to the programming game and have a question for you seasoned veterans: I have a data collection device whose API is c++ based. When I want to write a program whose first step is to initialize the system, I write "InitializeSystem(); " In a C++ IDE …

Software Development api c++ gui python tkinter
Member Avatar for runge_kutta
0
2K

The End.