132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for claudiordgz

I guys, i have a problem with binary files A file is opened in the beginning of the main then a case to give the user a choice: 1.- Show the content of the file 2.- Search for a name 3.- Search for a type of crime 4.- Search for …

Software Development c++ file-system ios
Member Avatar for claudiordgz
0
106
Member Avatar for Ashok2007

[B]Index was out of range. Must be non-negative and less than the size of the collection[/B] Hi, I've a form and the form is working fine also. But my problem is Whenever I closed the form. I'm getting two errors. 1.Index was out of range. Must be non-negative and less …

Software Development vb.net
Member Avatar for JJCollins
0
906
Member Avatar for xfreebornx

[CODE]#include <iostream> using namespace std; struct student { int ID; char name[80]; char nationality[80]; char gender[2]; }; void insert(student array[]); void Sort(student array[]); int main() { student array[100]; int answer; cout <<"Welcome to student recording system"<<endl; cout <<"Please choose one of the following option"<<endl; cout <<"1.Insert new record"<<endl; cout <<"2.Delete …

Software Development c++
Member Avatar for A.Ali
0
285
Member Avatar for vedel

Hey Guys! I am vedel and this is my first Thread in this Community. My question is, how i can boot a c++ code? example code: [CODE] #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } [/CODE]

Software Development assembly c++
Member Avatar for vedel
0
1K
Member Avatar for rikiroxs

I want to have a Sales Point System and i am finding Difficult to have a Barcode System.please somebody help me.........

Software Development image
Member Avatar for rikiroxs
0
84
Member Avatar for greenman78

I would like to achieve a speedup for this program. I was wondering how to get started. I was thinking of maybe using pointers. Any hints would be great. [CODE]void test() { int i, j, k; for (i=0; i<N; i++) { for (j=0; j<N; j++) { for (k=0; k<N; k++) …

Software Development c
Member Avatar for stokes1900
0
114
Member Avatar for chrishtones

Since __uuidof is a C++ only operator, how would I retrieve the GUID of an object in C?

Software Development c microsoft windows-api
Member Avatar for gerard4143
0
629
Member Avatar for Alerwiali

what is wrong with this [CODE];Author : Alerwi Ali ;Function : Sort an array of 10 elemnts(Bubble sort) .model small .stack size equ 10 .data vett db 1,4,3,2,4,-1,-4,0,6,10 temp db ? i db 0 j db 1 .code .startup mov ax,@data mov dx,ax xor si,si xor cx,cx mov cx,size lea …

Software Development assembly
Member Avatar for Ancient Dragon
0
129
Member Avatar for mahmoud209

Hi all, i was wounding if anybody can help with this I’ll be really grateful I’m working on a piece of software to read a comma separated text files with thousands of lines each line has around 32 word separated with a comma What my code does at the moment …

Software Development vb.net
Member Avatar for mahmoud209
0
139
Member Avatar for hueikar

I would like to do a coding to delete the txt.file that i had created before using visual studio..can anyone teach me the coding?thank you.

Software Development vb.net visual-studio
Member Avatar for AndreRet
0
920
Member Avatar for sadsdw

Hi everyone, I'm recently in C++ and I would like to develop one C++ code that read a file ".txt" of strings and numbers with different size of columns and lines. After I need to get the frequencies of each element of the same column. Cheers, SADSDW Example: ABC DEF …

Software Development c++
Member Avatar for Fbody
0
119
Member Avatar for Quazy

Hello I have a bindingNavigator and some textboxes connected to the bindingsource, in a childform, a form inside another form. I have a third form, a search function, and I need to change the bindingNavigator Position, when I choose a number in my "search" form. I have some code in …

Software Development vb.net
Member Avatar for Quazy
0
319
Member Avatar for rebellion346

Im having issues trying to get this to work. I think the problem for my Meet and Join functions is its printing out the C array inititalized to all 0's and not the modified C array after all the calculations have been done. Also, I don't think my for loop …

Software Development c++
Member Avatar for mitrmkar
0
2K
Member Avatar for styleest

I'm an intermediate vb programmer, i need help . I wrote a code that'll fetch a particular employee id (EM_ID) and print the report but its saying this whenever i compile and run. Runtime Error 2147217904 [80040e10] [ODBC Microsoft Access Driver] Too few parameters The code is below rs.Open "SELECT …

Software Development microsoft-access visual-basic
Member Avatar for styleest
0
290
Member Avatar for wobuaini

so the question is to print out strings that appear both in the two given lists, assume each list does not contain duplicates of the same word. so with the signiture of [B]public void intersect(Node n1,Node n2)[/B] and suppose we already have another method: [B]public boolean contains(Node n, String target)[/B] …

Software Development java
Member Avatar for hanvyj
0
128
Member Avatar for novice20

hi... I have written a script for FTP upload using python.. It worked fine when i tried on local boards, but is giving me an error when trying with a remote board via VPN. this is the error i get: [B](104, 'Connection reset by peer')[/B] the machine i developed script …

Software Development peer-to-peer python
Member Avatar for novice20
0
1K
Member Avatar for Tsunami49

Hi there. I am currently trying to get my head around using classes across two files. I currently have a super class and a sub class stored in a file and the main function in another. When I try and pass arguments to the class they work fine if the …

Software Development c++ oop
Member Avatar for Tsunami49
0
137
Member Avatar for nikita.chandra

Hi! please help me for how can i scroll through database using JDBC. if i m creating 4 buttons say First,Last,Next,Previous. First button will take me to the first record of the database. Last button will take me to the last record of the database. Next and Previous will show …

Software Development java
Member Avatar for javaAddict
0
257
Member Avatar for LordRazon

I need to make this a popup when a button is clicked. This is the code for the Button. [CODE] JButton moreOptionsButton = new JButton("More Options"); moreOptionsButton.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { timer.stop(); } } );[/CODE] I need this information to come up in a new window. …

Software Development java window-manager
Member Avatar for hanvyj
0
2K
Member Avatar for shyam miyatra

I want total months between two date (I/p) i want exactly four batch on the basis of date , for ex. i/p Start date : 01-JUN-2005 (or format can be 20050601 - YYYYMMDD) i/p End Date : 01-OCT-2006 or format can be 20061001 - YYYYMMDD) so in this scenario each …

Software Development shell-scripting
Member Avatar for kevinkatia
0
858
Member Avatar for sarfu

Hello every coder. i want to know if it is possible to send data (text/char) over internet using c++ . can i use winsock send function as i could see on msdn winsock send is used to send data to the server, hence i started coding using winsock, i was …

Software Development c++ first-post
Member Avatar for Duongpv
0
775
Member Avatar for 123a

Hi, I basically have 1 arrayList with 10 elements. [CODE] //arraylist with10 elements private ArrayList<String> arrayList1 = new ArrayList<String>(); //arraylist with nothing in it. private ArrayList<String> arrayList2 = new ArrayList<String>(); public void copy() { Collections.copy(arrayList1, arrayList2); } //The code above will copy all the elements in the first arraylist to …

Software Development java
Member Avatar for JamesCherrill
0
153
Member Avatar for judithSampathwa

Hi there, I have a problem in datetimepicker in the interface in C#. I have restricted the user for entering a date that has passed by the below code dpSignedSO.Value = DateTime.Today; dpSignedSO.MinDate = DateTime.Today; but when the date is entered as 7/20/2010 and this is being saved to the …

Software Development user-interface
Member Avatar for menakaa
0
997
Member Avatar for spades0001

I'm trying to make my for loop print ODD numbers and print their sum and average. Here's my code: public class Loop_For2 { public static void main (String[] args) { double sum = 0f; int ctr = 1, ctr2 = 0; for (;ctr<=10; ctr++, ctr2++) { System.out.println(ctr); sum += ctr; …

Software Development java
Member Avatar for tong1
0
131
Member Avatar for globberbob

Trying to write to a file with this function in my program, for some reason itl make the file, it'l output the text on screen, it all works as intended, but i go to check on the file, and its blank inside. so im guessing im doin somethin dumb, help/tips …

Software Development c++ file-system
Member Avatar for globberbob
0
137
Member Avatar for whodoes21

Hello members of Daniweb :) I am a frosh IT student and I need little help with this :) ok so the program is basically a simple cashier program. you enter a code for an item. you buy it compute for the change etc. etc. now my problem is with …

Software Development c++ ios
Member Avatar for whodoes21
0
208
Member Avatar for sah

I have a c# form application with a text box and a button. I type Chinese character in the text box and press the button to assign the input to a string using the following code [CODE]String chineseChar = Textbox1.Text ;[/CODE] // TextBox font property: Arial Unicode MS or SimSun …

Software Development
Member Avatar for sah
0
457
Member Avatar for writt

what is the best way to read a file format as below: titleone 5 jim john brian george bill titletwo 5 abc qwe zxc asd etrwe titlethree 5 lkj mnb oio uyu trwww titlefour 5 dfg lksjdf alskdj oipopi iuiuy Need to create a dynamic 2d array with title as …

Software Development c
Member Avatar for writt
0
263
Member Avatar for ConfusedStudent

I have a file with a list of names. Jane Huston Bob Brown Jack Tracy they should be ordered by last line like this Bob Brown Jane Huston Jack Tracy but my program wont compile and i dont know how to fix it? here is my code #include <iostream> #include …

Software Development c++
Member Avatar for VernonDozier
0
303
Member Avatar for hacks14

how do i run my shell Shell("netsh interface ip set address" & Chr(34) & "Local Area Connection" & Chr(34) & "static 10." & IPAddy & ".4") as admin? PLZ

Software Development vb.net
Member Avatar for hacks14
0
104
Member Avatar for acheo

How can I listen for new connection as well as lisstening for ongoing communication with TCPIP? I have the following code which properly listen for new connections, sends and receive data. However, if the client application sends new data from an existing connection I don't see anything. [CODE] using System; …

Member Avatar for darkagn
0
150
Member Avatar for morancr

I'm not sure why it's not calculating right. When I enter a negative number, the if else statement or something does not register it's a negative number. There is a before and after, and you can see where it does not register negative numbers. Thanks in advance for your help! …

Software Development java java-swing
Member Avatar for morancr
0
164
Member Avatar for rebellion346

I'm getting weird output from this program, its printing a bunch of huge negative numbers, they're all the same number in fact. I have no idea what's wrong with it. Heres what im trying to do: I'm taking ordered pairs and translating it into a boolean matrix so for example …

Software Development c++
Member Avatar for rebellion346
0
156
Member Avatar for mcdonalds

Hi there, I'm having a weird error, When I click on my submit button my eventhandler that should be capturing the data from my JTextField is throwing an error : This is my first week using Java so I'm sorry if this is a newb thing. My Main function simple …

Software Development java java-swing
Member Avatar for Taywin
0
95
Member Avatar for insanely_sane

Been working on this for 2 hours non stop. Can't seem to figure out exactly what's the problem. Perhaps I'm taking a wrong approach to this problem. Right, I need to copy a singly linked list to another new list. Can use any method EXCEPT RECURSION. Here's the code so …

Software Development java linked-list
Member Avatar for Taywin
0
3K
Member Avatar for bigwhiteegg

following is my main program Linklist is a class of circular Linked list so my question is since the parameter of function doesn't contain Linklist in it can I go ahead and call it "List" in any function, such as List.print(), anyway? [CODE]main() { linklist list; int choice, num; do …

Software Development c++ linked-list
Member Avatar for Taywin
0
158
Member Avatar for gmfreak1991

I'm creating a Wheel of Fortune program, and I have just started. Currently I'm just trying to take a word from a file and transfer it into an array, and with that create an array with the same size, but full of asterisks (*'s). My class is making me use …

Software Development c++ puzzle
Member Avatar for gmfreak1991
0
520
Member Avatar for markfisher

Hi I'm trying to create application using C and GDI. I want my EXE file to have an ICON, so I created .bmp file (64x64) and added to resource file. Then I created HICON hIcon using that bitmap image (CreateIconIndirect(...)) Now my problem is, .EXE file still has the default …

Software Development c c# c++
Member Avatar for venomxxl
0
217
Member Avatar for eikal

Hi, so im having the user pick two separate colors. Now when they pick the 2.... im going to run an event that determines that combination..... for an example if the user picks red and blue the outcome will be +5 points. Now the only way i can think of …

Software Development vb.net
Member Avatar for codeorder
0
112
Member Avatar for marboleon

I'm trying to display a value on the status bar according to a position on a plot made on a panel. So I want to call the method SetStatusText with the value in a string. The instance of RefreshPanel is set within a frame called 'frame', which is an instance …

Software Development python
Member Avatar for marboleon
0
182
Member Avatar for lotrsimp12345

Having problems with executing jobs using fork. The code is supposed to create one job and execute one job and repeat this multiple times. We are only supposed to use usleep in the jobgeneration() function. We are having trouble sleeping and executing ctrl-c in the execute job function. [CODE] #include …

Software Development c++ data-structure file-stream ios queue unix
Member Avatar for lotrsimp12345
0
510
Member Avatar for MrConfused

I have been given the following code to convert a string to a "byte array" (which is then passed to other software) but it does not appear to work. I have practically never needed to use a function and am even less familiar with the data type byte and Hex …

Software Development visual-basic
Member Avatar for FSandlewould
0
899
Member Avatar for LevyDee

How would I setup an event in my class to be automatically called. So, Im using a ChannelFactory object, which has a few events associated with it. Closed, Closing, Faulted, Opened, Opening. I want to do something specific when these events happen, but I guess im lost on how to …

Software Development
Member Avatar for jbrock31
0
165
Member Avatar for fx5500

hello I have a datareader and I how can i know that, how many row this datareader have? [CODE] string query_ci = "SELECT [Kolon1],[Kolon2],[Kolon3] FROM[Sheet6$A:J] WHERE [Kolon1]='" + kolon_bul+ "'"; OleDbDataReader rdr_ci; OleDbCommand komut_ci = new OleDbCommand(query_ci, conn); rdr_ci = komut_ci.ExecuteReader(); // ---> i want to know in here rows …

Software Development
Member Avatar for alc6379
0
110
Member Avatar for andimiami

I think I am only making this worse and worse... I need to write a program that uses functions and a for loop to calculate a hat size, (`2.9*weight in pounds/height in inches`), jacket size (`height in inches*weight/288`), and waist size (weight in pounds divided by 4.9)... I know this …

Software Development c++
Member Avatar for sfuo
0
174
Member Avatar for ceyesuma

Hello I just started working with JTabbedPane tabs. I have been using the index to navigate the pane. Now I add and remove tabs from the pane so clearly the index navigation is no good. Does anyone know some code for an easy solution for using the title or something …

Software Development java
Member Avatar for ceyesuma
0
99
Member Avatar for prakash2813

After installing the VS 2008 , i created projects both console and windows forms....and also had run successfully........... The problem is ..when i restarted my pc...and try to run that projects again......and also created new projects and had run....the following error message occurs...... ========================================================================================= Error while trying run project : …

Software Development assembly c#
Member Avatar for alc6379
0
184
Member Avatar for NewOrder

[CODE] class Program { static void Main(string[] args) { Number n1 = new Number { X = 10 }; Number n2 = new Number { X = 20 }; Number n3 = n1 + n2;// +(n1,n2) Console.WriteLine("{0}+{1}={2}",n1.X,n2.X,n3.X); int result = n1 + 30; Console.WriteLine(result); Console.WriteLine(n1==n2);//False Console.WriteLine(n1 != n2); //True } …

Software Development
Member Avatar for alc6379
0
105
Member Avatar for Akatosh

I want to know how to make a plugin framework in c++. I have searched for some topics and have found a few to get me started but I still don't understand the concept. I'm making an IDE and would like to add the functionality of plugins...I know you have …

Software Development c++ gui ide
Member Avatar for Stefano Mtangoo
0
220
Member Avatar for noniterum03

I am a new python user and I am trying to code an implementation to calculate and empirical cdf. So far, I have some code (attached below) that returns a list of tuples [(datapoint, P(X>=x)),...]. The problem I am trying to resolve is how to take care of replicated data …

Software Development python
Member Avatar for SgtMe
0
110

The End.