132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Joey_Brown

Hello I need to program two radio buttons for directions [up down] for my simple textbox search. Any help would be appreciated. Im new to c#.

Software Development c c# c++
Member Avatar for Mitja Bonca
0
113
Member Avatar for AJ_Allmendinger

I'm a newbie at writing DOS batch files. I've tried to look for it, but I can't seem to figure out how to read from an input file. Is there an equivalent of a [I]cin[/I] statement in DOS Batch programming.

Software Development
Member Avatar for Dundir
0
303
Member Avatar for b56r1

Hi everybody. I have a doubt in one of the command which is shown below. 1. I created my own adding and multiplication funtion definitions saved in two separate files named "sum.c" and "mul.c". The function calls are present in "main.c" ofcourse. 2. I got the assembler output files by …

Software Development c
Member Avatar for rubberman
0
135
Member Avatar for Butum

Hey Guys, first year compsci student and I'm struggling with 2D arrays. Here is my code: [CODE] double classAverage(int assignments, int students) { double average,sum; int row,col; FILE *input_file; input_file=fopen("grades.txt","r"); for (col=0;col<assignments;col++) { sum=0; for (row=0;row<students;row++) { fscanf(input_file,"%lf",&grades[row][col]); while(fgetc(input_file) == ','); sum+=grades[row][col]; printf("%.2lf\n",sum); } } average=sum/students; fclose(input_file); return (average)[/CODE]; int …

Software Development c
Member Avatar for Butum
0
2K
Member Avatar for m_wylie85

Hi all i am try to pass the text input into the text boxes in form ( OrderScreen) into the text boxes in ( PrintOrderScreen)I don't get any error it just does not pass the text over to the second screen. the text boxes with OS at the end belong …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
154
Member Avatar for Sevyt

Ok i am having a blond moment(no offense haha). I got on my form textboxes, checboxes but also a groupbox which holds texboxes. The idea is to be able to clear and reset all of these by clicking a reset button. At the moment i got this [CODE] Private Sub …

Software Development vb.net
Member Avatar for Sevyt
0
150
Member Avatar for chintan_1671

I am a newbie, so it might seems a silly question. I have a login form which calls other form where it says .. "please wait while it loads". in form 2 i have a label for that. Now the problem is that the text for that label doesnot appears …

Software Development
Member Avatar for chintan_1671
0
71
Member Avatar for programing

[CODE]#include<iostream.h> int liner(int [], int ,int ); void main () { int a[1000]; int arraysize,element; int searchkey; cout<<"Enter how many elements in your array"; cin>>arraysize; cout<<"enter the elements of the array "; for(int i=0;i<arraysize;i++) cin>>a[i]; cout<<"Enter the searchkey"; cin>>searchkey; element=liner (a,searchkey,arraysize); if (element!=-1) cout<<"::::Found value in index \n"<<element<<"\n"; else cout<<"::::value …

Software Development c++
Member Avatar for programing
0
173
Member Avatar for Huntondoom

hey, for an Application I want to let application Communicate with each other but how would that be done? I know of Commandlinearguments but that is only when starting up. I want them to communicate while they are running. how would I do such a thing?

Software Development vb.net
Member Avatar for Unhnd_Exception
0
67
Member Avatar for ywang

[I]<<mod edit: answer to [URL="http://www.daniweb.com/software-development/python/threads/32007/1496502#post1496502"]this post[/URL] from the sticky "[URL="http://www.daniweb.com/software-development/python/threads/32007"]projects for the beginner[/URL]">>[/I] [CODE] #1 * 8 + 1 = 9 #12 * 8 + 2 = 98 #123 * 8 + 3 = 987 #1234 * 8 + 4 = 9876 #12345 * 8 + 5 = 98765 #123456 …

Software Development c++ python
Member Avatar for vegaseat
0
1K
Member Avatar for kmb90

Hello! Bit new to this and I am only scratching the surface on programming and scripting so forgive me if this is an overasked question! :) Or if this thread is in the wrong location. I am looking to trigger or autorun (not CD) a .bat to run/start by using …

Software Development shell-scripting
Member Avatar for kmb90
0
139
Member Avatar for VBrulez

So, I'm making a program that has a "Print" button. I want it to open a PrintDialog, let the user select the printer they want to use, and print the contents in the RichTextBox/TextBox. I was thinking about this: [CODE]Print.RichTextBox1.Text(PrintDialog1)[/CODE] But it didn't work. I also tried: [CODE]PrintDialog1.RichTextBox1()[/CODE] Those came …

Software Development printer vb.net
Member Avatar for Yousha
0
2K
Member Avatar for jworld2

I'm trying to do a project that uses the trigonometric functions, but I'm having some trouble with them. When I type in this code: [CODE]import math print 0.5+math.cos((2*math.pi)/3)[/CODE] I get the answer 2.22044604925e-016. That's obviously not right. cos((2*pi)/3) is -0.5, so I should get the answer 0. Can anybody help …

Software Development python
Member Avatar for jworld2
0
539
Member Avatar for vb.net15

Dear, Currently I am working on VB.Net 3.5 Win Forms. I have few queries about datagridview, I believe your expertise will help me to overcome this. 1) I have DataGridViewComboBoxCell and DataGridViewTextBoxCellinserted into the the datagridview1, which in turn bounded with the datable, Here I want to update/edit the value …

Software Development vb.net
0
224
Member Avatar for tukky

I was wondering how i would be able to validate a textbox for the E-MAIL address of a person. For example it cant have anything like "`#[]-=+-></~| etc. it MUST have an @ and a .com or .co.uk at the end of the e-mail. anyway i was wondering how i …

Software Development vb.net
Member Avatar for ndeniche
0
116
Member Avatar for moorekwl92

Hey i'm [B]trying[/B] to write code for a word utility program for a uni project and it is bugging the hell out of me. [CODE]#include <stdio.h> #include <string> #include <iostream> #include <fstream> #include <Windows.h> #include <string.h> #include <cctype> #include <algorithm> #include <vector> using namespace std; const int size=300; int a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,i1,option,Mirrorimage,spacenumber=0,characternumber=0,averagelength=0,Uppercase; …

Software Development algorithm c++
Member Avatar for rubberman
0
173
Member Avatar for AngelicOne

I got an error saying "There is already an open DataReader associated with this Command which must be closed first". I have only used datareader once while using the same connection for my dataset. Would that make some conflict? Need help.

Software Development dataset
Member Avatar for OnePostWonder
0
96
Member Avatar for slygoth

I have this code but the floats wont print to the file. Everything else prints and works well but the floats i see 0.000. Can someone tell me where im going wrong. I already declare them in the struct as float apaid; float tpaid; [CODE] customer customerinfo(customer info) { FILE …

Software Development c file-system
Member Avatar for gerard4143
0
290
Member Avatar for mkab

Hello everyone, I'm programming genetic processes in java for my project and I want simulate the mitosis of a human cell. A human cell contains 23 pairs of chromosome. Mitosis is basically a cell division, or reproduction, in which a cell gives rise to two genetically identical daughter cells. You …

Software Development java
Member Avatar for mkab
0
234
Member Avatar for errorlog2

Hello Programers, web designers, reverse engineers, coders, game coders [COLOR="Red"]other...[/COLOR] What Language Do i First learn to master all? i have a small knowledge in VB6 and vb.net but what do i need to learn first to master all language im dedicated to study hard and master the languages and …

Software Development c++
Member Avatar for ntrncx
0
191
Member Avatar for msnasiri

Hello, I need to a webservice that could be use in c++ and php and easily work on linux and windows compilers (my windows compiler is visual c++ 6) can anyone help me on this?

Software Development api c++
Member Avatar for msnasiri
0
120
Member Avatar for tunlinaung

When i run the Java's window applications with default settings, theme is automatically changed from Aero theme to Window 7 basic theme. However, I wish to run Java's window applications without changing theme. I want to run this with current theme. How can I do for this? Please help me.... …

Software Development java
Member Avatar for JamesCherrill
0
228
Member Avatar for hness1

Hello! I have a little project of my own to convert a memory game puzzle from VB.Net into Delphi (Not a big Delphi fan). I was doing fine so far until a control would not be recognized (outlined in red and green). It is an imagelist containing 8 images. [LIST=1] …

Software Development delphi pascal puzzle
Member Avatar for Wolfgan
0
148
Member Avatar for android_sylph
Member Avatar for Fbody
0
104
Member Avatar for Kath_Fish

hi..who knows how to append the list box to the exist text file? [CODE] FileStream fs2 = new FileStream(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt", FileMode.Append, FileAccess.Write,FileShare.Write);//create text file StreamWriter sw2 = new StreamWriter(fs2, Encoding.Default); string writetext = ListItemCom2.SelectedItems.ToString(); sw2 = File.AppendText(@"C:\Users\Fish\Desktop\fyp-coding\Combine.txt"); // write to the text file sw2.Flush(); sw2.Close(); [/CODE] this is my coding.But,it contain …

Software Development file-system
Member Avatar for Mitja Bonca
0
179
Member Avatar for hohoho89

Hi! I've been googlin' quite awhile now, and I haven't got any luck finding a C GUI library functions and explanations. Do anybody have a link for this? Or even better? a link on pdf file of GUI for C programming?

Software Development c c# c++ gui pdf user-interface
Member Avatar for rubberman
0
176
Member Avatar for stupidbumbum

Mary plans a round-world trip in which he would like to visit a number of friends at each city she stops at. She sorts the cities according to the number of friends so she can visit P friends at Pth city of the trip, where k = 1, 2, ...., …

Software Development java
Member Avatar for jon.kiparsky
0
91
Member Avatar for amari ♥

the goal is to add, delete, display dota heroes, and display specifics, and exit. thanks!! :) #include<stdio.h> #include<conio.h> #include<string.h> #define N 3 typedef struct{ /*Place fields here.*/ }name; typedef struct{ /*Place fields here.*/ }hero; typedef struct{ /*Place fields here.*/ }hero_info; typedef struct{ /*Place fields here.*/ }hero_rec; void displayMenu(void); void initialize(hero_rec …

Software Development c
Member Avatar for gerard4143
0
117
Member Avatar for JB Audio

Hi all. I hope this is the right place to post this. I am a music technology student and I've recently picked up learning C++ as it would greatly help my career knowing a programming language, especially this one since it is used in the video games industry. Anyways onto …

Software Development audio c++ career data-structure ide
Member Avatar for rubberman
0
642
Member Avatar for jshoot

Hi everyone, My question is: I have two vectors, for example vectorA and vectorB, vectorA is filled with randomics values, like 23, 43, 54, etc, and its have 1000 members, like vectorA[0], vectorA[1], etc. My vectorB descending of vectorA, I use the "push_back" function to take the values of vectorA, …

Software Development c++
Member Avatar for jshoot
0
273
Member Avatar for sj5536
Member Avatar for jwenting
0
65
Member Avatar for margeaux54

Hello. I have a two [B][COLOR="Red"]structure[/COLOR][/B] arrays that are sorted. ı wanted to put these arrays into third array as a sorted. and then ı wanted to put these values into the file. into my array one and array two , there is no same number so ı thought something …

Software Development c++
Member Avatar for margeaux54
0
244
Member Avatar for Nitin Daphale

I use following code to get all existing sql servers. [CODE] using Microsoft.SqlServer.Management.Smo; DataTable dt = SmoApplication.EnumAvailableSqlServers(false); if (dt.Rows.Count > 0) { cmb_servers.Items.Clear(); foreach (DataRow dr in dt.Rows) { cmb_servers.Items.Add(dr["Name"]); } }[/CODE] In first attempt it's not loading any servers at all but in second it is. I know it's …

Software Development sql
Member Avatar for Nitin Daphale
0
133
Member Avatar for shack99

Hi everyone, I'm new to c# ( I've done java before) and I'm having a problem with one of our tutorials. We have to read some data from an XML file. When doing it with a console application it turned out fine, but when doing it with a Windows forms …

Software Development xml
Member Avatar for shack99
0
125
Member Avatar for sdhawan

Hi Guys i am getting error directory name is invalid.My codeis as follows : [code] private void toolStripButton1_Click(object sender, EventArgs e) { OpenFileDialog dialog = new OpenFileDialog(); parser = new GrammarParser(); parser.showStep += new GrammarParser.ShowStep(parser_showStep); if (dialog.ShowDialog() == DialogResult.OK) { string[] names = Directory.GetFiles(dialog.FileName); for (int i = 0; i …

Software Development
Member Avatar for ddanbe
0
211
Member Avatar for stevanity

Guyz, I have been using codeblocks IDE (Latest Version GCC 4.x) for sometime now. For some weeks now Im facing some problem in it. When I build a program for the first time, it runs smoothly. Then I make changes and I build again, then it gives an error saying …

Software Development c ide os-x
Member Avatar for GDICommander
0
122
Member Avatar for Swiftle

Hello, I need a way to wait for threads and I don't think that pthread_join works in my case. Here's the problem. I'm currently working on a very basic space game. We have vehicles that collect resources and must bring them back to the HQ. In order to do this …

Software Development c++ client-server
Member Avatar for L7Sqr
0
115
Member Avatar for TheWhite

"ps aux" outputs the following as the first line: USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND how can I preserve this line if I do a "ps aux | grep <someuser>" so that I can still see the header for each column? In essence, I want …

Software Development shell-scripting
Member Avatar for thekashyap
0
119
Member Avatar for vasuv

Hi , I have a excel sheet.in that one column called hardcoded. we have sheet as folllows. Name EMp_ID Hardcoded ---------------------------- ABC 1987870 1. EMP_SAL_CD : "2000","1300","Avg100" 2. DEPT_CD : "Manager","clerk","anlyst" 3. DNAME : "SALES","HR" STU 1909890 1.EMP_SAL_CD : "6000","300","A100" 2. DEPT_CD : "Manr","cle","ant" 3. DNAME : "SALES","HR","STUD" --- --- …

Software Development shell-scripting
Member Avatar for thekashyap
0
97
Member Avatar for luke710

hey guys ive been working on this script for this game for like 3 weeks now i just cant get it can someone plz fix this for me its not to far off SetActiveWindow Naruto New Flames 2.8 constants k1 = 0 uparrow = 1 leftarrow = 2 rightarrow = …

Software Development shell-scripting
Member Avatar for thekashyap
0
150
Member Avatar for rajeevpareek

Hi, I am trying to pass a string to a MACRO using -D option in gcc. I am not getting desired output, below is snippet, please let me know what I am missing. $ gcc -o finame -D CORE="op1_log.txt" finame.c [CODE] #define STR(x) x int main() { FILE *fp; char …

Software Development c c++
Member Avatar for thekashyap
0
7K
Member Avatar for inni2626

[COLOR="Green"]Hey Everyone, Started Java for couple of months now and still struggling to put things together.Any assistant will be highly appreciated. I wanted to display an initial menu screen with the following set of options: 1. Display the current score for each possible response. 2. Vote 3. Quit the program. …

Software Development display java java-swing
Member Avatar for inni2626
0
1K
Member Avatar for rannamaa

Ive got some quetions and hope someone has the answere. When I create a project i vs and want to have one gui what do I chose, console application or what? When I in the same project want to add a class do I then chose "add class"? If I …

Software Development c# gui visual-studio
Member Avatar for rannamaa
0
124
Member Avatar for gunnerone

I am trying to create a simple banking system that reads in data from a text file. Attached is a copy of the text file and another text file explaining the layout. How would i read this information in. I need a class for customers, accounts and transactions and an …

Software Development
Member Avatar for neoic91
0
257
Member Avatar for chriselectrix

Hi All I have the following XML (which is generated automatically and cannot be modified): [CODE]<ExportQuery> <ELEC01_SOWaitingParts3> <OrderDtl_PartNum><![CDATA[UK MUNSTD 20 BOX OF 100]]></OrderDtl_PartNum> <JobOper_OprSeq><![CDATA[10]]></JobOper_OprSeq> <Part_PartNum><![CDATA[UK MUNSTD 20 BOX OF 100]]></Part_PartNum> <OrderDtl_OrderNum><![CDATA[18432]]></OrderDtl_OrderNum> <OrderHed_OrderNum><![CDATA[18432]]></OrderHed_OrderNum> <JobHead_PartNum><![CDATA[UK MUNSTD 20 BOX OF 100]]></JobHead_PartNum> <JobHead_JobComplete><![CDATA[Yes]]></JobHead_JobComplete> <JobOper_JobNum><![CDATA[018957]]></JobOper_JobNum> <JobOper_OpCode><![CDATA[GB STORE]]></JobOper_OpCode> <JobOper_OpDesc><![CDATA[GET BATCH STORES]]></JobOper_OpDesc> <JobOper_OpComplete><![CDATA[No]]></JobOper_OpComplete> <JobOper_QtyCompleted><![CDATA[0.00]]></JobOper_QtyCompleted> <FalseJobNum><![CDATA[18957]]></FalseJobNum> </ELEC01_SOWaitingParts3> <ELEC01_SOWaitingParts3> …

Software Development display xml
0
115
Member Avatar for krishnisilva

hi, i have a two datetime picker in a C# form, when i select a earlier date (before today date) there is a caparison i have addded to the validateing event in the date timepicker.below is the code. Question 1: for some reason say that i add 10th may, the …

Software Development c# session
Member Avatar for kheddy
0
2K
Member Avatar for Kapilxcb

I have to add 2 polynomial equations. Each are stored in linked lists. eq_1 and eq_2 linklists are added and the total is stored in eq_1 linklist. But the problem is when im trying to add both equations, the 2nd for loop(eq_2) is looping once only. I mean when eq_1 …

Software Development c linked-list
Member Avatar for jonsca
0
147
Member Avatar for C.Cen

Hey guys, I need to make a program that lists out an average, highest and lowest stock price over a one month period. I'm focusing on the average first but it's already giving me problems. [url]http://omg.wthax.org/error_4.png[/url] Here's what I have so far. [CODE] # include <iostream> using namespace std; int …

Software Development c++
Member Avatar for DHEERESSAA
0
244
Member Avatar for HerecyOfTheMind

Hi guys, keep getting an error: Cannot find the deceleration of element test when writing the xml. I have declared the element test in the schema but it appears to ignore it. The schema is as follows: [CODE]<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="Test"/> <xs:simpleType name="Stringtype"> <xs:restriction base="xs:string"/> </xs:simpleType> <xs:simpleType …

Software Development xml
Member Avatar for mrame
0
137
Member Avatar for sreekiranws

Hello I need to do a line by line compare between two Msword 07 documents. I've tried the conventional way of using getline and compare but it doesnt work. While step by step execution, the program is unable to recognise the format of the sentences in the word document. I …

Software Development c++
Member Avatar for jonsca
0
213

The End.