199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dogwood705

Hi, I am new to C++ and am getting stuck with just reading in data from a text file into an array. I have looked at lots of examples online, but can't find one that matches what I am trying to do. The data consists of two variables, date and …

Member Avatar for dogwood705
0
364
Member Avatar for PixelExchange

Hello everyone. I have recently finished a Winsock Server, and a Winsock Client. The problem is, I do not know what type of a domain/and or server I would have to buy to be able to connect my Winsock Server, to it. I already know that Winsock uses the inet_addr() …

Member Avatar for Aranarth
0
131
Member Avatar for judithSampathwa

Hi there, Am calling a form from a button in another form. And then I am calling the form as frmSubCDetails subDetails = new frmSubCDetails(); subDetails.Show(); in a button which is in the View Submit form.What I want is how can I make the items in the from frmSubCDetails disable …

Member Avatar for judithSampathwa
0
201
Member Avatar for saintboy

hi...following code is for postfix evaluation.....after executing the code i am getting segmentation fault error....can u help me to solve this error and what is segmentation error? [CODE=c++] #include<iostream> #include<string.h> using namespace std; class post_evaluation { public: int val; post_evaluation *nxt; void push(int i); void add(); void sub(); }; post_evaluation …

Member Avatar for mike_2000_17
0
153
Member Avatar for beluga

Hello, I am little stuck with . It is not populating the errors for me, rather it is loading the page without . Attaching my code: [CODE]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "struts-config_1_2.dtd"> <struts-config> <display-name>CSV File Upload</display-name> <description>CSV File Upload</description> <form-beans> <form-bean name="FileUploadForm" type="example.struts.FileUploadForm"> …

Member Avatar for java_programmer
0
138
Member Avatar for frmsasp

Hello there, Currently I am working with the project which needs dynamically generated checkboxes and i have generated dynamic checkboxes but i am facing problem with getting the vaue of selected checkboxes. Problem is described below in detail to easily understood, so please let me know if you come to …

Member Avatar for nathantownsend
0
783
Member Avatar for JAN811

Hi every one i would like some help on my project for software development that will mark my end of year and am really trying to figure out what i should work on. Any one please with cool ideas help me. It should be in java and Databases we have …

Member Avatar for tong1
0
75
Member Avatar for walter307

I just got my java project (beginner). . and its like this Output: What is my grade in Java? ([I]part where you input a grade[/I]) My grade in Math? ([I]input math grade[/I]) ([I]the next screen shows the grades i input, gets the average, then the shout out of my grade[/I]) …

Member Avatar for walter307
0
176
Member Avatar for Dartz654

Hai, i'm new to cookies/sessions, so i'm not sure how to do this. So, theres a row in the user account table called 'online'. When their online, the value is 1. When their offline, the value is 0. I'm not sure how to do this, like to store a cookie …

Member Avatar for mschroeder
0
109
Member Avatar for prussell

I have a simple vb.net webservice which accepts a string parameter. the function appends the passed value to a string, then returns it back. (See code below). My client uses ksoap2 on an android platform to invoke & consume the service. I can connect to the service fine, and while …

Member Avatar for balazs.kelemen
0
184
Member Avatar for jmaddy10

I am trying to set up the code so that the it takes the user from one form to a thank you page, then to another form and have some of the info from the first (last name, first name, email) into the second. I managed to get the code …

Member Avatar for jmaddy10
0
235
Member Avatar for nizuya

I set the min-height of an object on my page based on the size of the window. It works perfectly in all browsers but IE (of course). How can I fix it? [CODE] function resize() { document.getElementById('container').style.minHeight = window.innerHeight + "px"; } [/CODE] The function runs on body load and …

Member Avatar for nizuya
0
154
Member Avatar for tonyeveland

To access MySql tables from PHP, I use the PHP code and the function below. If I make these changes, would this code work for SQL Server 2008? mysql_fetch_array to mssql_fetch_array mysql_connect to mssql_connect mysql_select_db to mssql_select_db mysql_query to mssql_query PHP code -------------------------------------------------------------------------------- $sql = "SELECT mast_id FROM district_mast WHERE …

Member Avatar for tonyeveland
0
197
Member Avatar for abcdr

I need to write a loop that traverses the list and prints the length of [B]each element[/B]. So far I have this: [code] def countEachElement(): elements= ["spam!",'1',['Brie','Roquefort','Pol le Veq'],['1','2','3']] i=0 while i < len(elements): print len(elements[i]) i=i+1 [/code] But it's not counting each element of the lists inside the list. …

Member Avatar for jcao219
0
101
Member Avatar for hasrule

Hi, I was working on thread pool, which I used std::vector to implement the pool. [CODE] private: std::vector <handlerthread*> _pool; handlerthread* temp; void threadpool::addWorker() { handlerthread *temp; temp = new handlerthread(this); int x=_pool.size(); temp->start(&x); _pool.push_back(temp); } handlerthread* threadpool::getIdleWorker(){ int idx=-1; for (int i=0;i<_pool.size();i++){ temp=(handlerthread*)_pool[i]; //SIGSEGV HERE if(temp->isIdle()){ idx=i; break; } …

Member Avatar for mike_2000_17
0
693
Member Avatar for jjiceman

Hi, I'm developing an application, with a main GUI and another GUI that gathers some information. Upon clicking a button in the main GUI, it initializes a second GUI object that has fields for input and then an "OK" button. I need to be able to return the information in …

Member Avatar for JamesCherrill
0
225
Member Avatar for sidmendiratta

Hello All, I am trying to add data from a dataset to an access table(.mdb). I am getting this error when I try to insert the values in the table. This is the code [code]DataSet ds = new DataSet(); Console.Write("The NAME IS: " + FileName.Text.ToString()); ds.ReadXml("C:\\Dallas_Test\\Offense_7_1_2010\\" + FileName.Text.ToString()); ADOX.Catalog cat …

Member Avatar for nick.crane
0
136
Member Avatar for Naveed_786

Dear All, How can i auto generate number in vb.net Please help thanks in advance for your help

Member Avatar for Naveed_786
0
125
Member Avatar for Jesi523

Alright after working on a login page and completing it, the requirements for my project have changed. I am no longer using FormsAuthentication to see if someone is logged in. Instead I am putting a passcode as the query. If the passcode exists then I let them continue to the …

Member Avatar for Jesi523
0
190
Member Avatar for selflearning

I am self learning c#. and want to display predefined image/text on screen. Please this is not within any frame or window this messages dislays some where on desktop / screen. Like screen saver we see only images and text flashing Similar way I want to display it on screen. …

Member Avatar for selflearning
0
108
Member Avatar for vavazoom

I'm having an issue with the elimination portion of my Gaussian Elimination problem. The program crashes while running, I can't figure out what is causing the wrong rows to switch, and why it is not eliminating correctly. [CODE]void Matrix::gaussianElimination() { int i, j, max; for(j = 0; j < N; …

Member Avatar for mike_2000_17
0
216
Member Avatar for manavsm

I have passed values from one page to another using query but it is not accepting the update i.e When i click on update button nothing happens [CODE] SqlConnection con = new SqlConnection("Data Source=SNSS1\\SQLEXPRESS;Initial Catalog=Employee;User ID=sa;Password=eLog!234"); int empid = Convert.ToInt32(Request.QueryString["ID"].ToString()); string strSQL = " UPDATE Tbl_Employee SET FirstName=@FirstName,LastName=@LastName,EmpID=@EmpID,PhoneNumber=@PhoneNumber,Salary=@Salary WHERE ID="+empid …

Member Avatar for manavsm
0
108
Member Avatar for rje7

I want to arrange the number 1 - 12 like shown below. like the numbers on the clock. [code] 12 11 1 10 2 9 3 8 4 7 5 6 [/code] arrived with the following code: [code=c] #include<stdio.h> int main(){ int e = 11; int count = 10; int …

Member Avatar for Adak
0
104
Member Avatar for AngelicOne

[CODE] SqlCommand cmd = new SqlCommand("SELECT MAX(Register_ID) AS Register_ID FROM EnrollTbl", con); SqlDataReader reader; con.Open(); reader = cmd.ExecuteReader(); if (reader.HasRows) { while (reader.Read()) { RegisterID.Text = (Convert.ToInt32(reader["Register_ID"]) + 1).ToString(); } } else { RegisterID.Text = "10000"; } reader.Close();[/CODE] It says [B]Object cannot be cast from DBNull to other types.[/B] I …

Member Avatar for Geekitygeek
0
983
Member Avatar for ekseks

can some tell me what's wrong i tried putting the $date in my textfield from my MySQL. can someone pls correct my code :) thanks [CODE]<?php $username="root"; $password=""; $database="dbdate"; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die("Unable to select database"); $query = "SELECT * FROM `cdate` WHERE 1 LIMIT 0 , 30"; $result = …

Member Avatar for katarey
0
107
Member Avatar for Indianblues

Hi I am very new to C#. Below is the program which i am trying. { string connstring = "Data Source = .\\SQLEXPRESS;Initial Catalog = SAMP; Integrated Security = True"; SqlConnection conn = new SqlConnection(connstring); SqlCommand comm = new SqlCommand(); comm.Connection = conn; SqlDataAdapter myadapter = new SqlDataAdapter(comm); DataSet myset …

Member Avatar for adchopra
0
89
Member Avatar for daudiam

I used the following code to download HTML files and subtitle files over the Internet. But when I give the url of a Youtube video, the download stops very quickly and though some file IS downloaded, it doesn't open. Why ? [CODE]class read { public static void main(String aa[])throws IOException …

Member Avatar for NormR1
0
261
Member Avatar for mooseguy

I'm trying to write a small text editor in wxWidgets, using wxDev-Cpp. So far, all is well. However, for the life of me I can't work out how to print (As in, onto paper). As far as I can deduce, I need to use the wxPrinter class. Browsing the wxWidgets …

Member Avatar for allq
0
363
Member Avatar for steventaal

I am using wxDevC++, because I hate code::blocks and litecode doesn't do it for me, so the error I get when I try and compile is: cannot find -lwxmsw28 ld returned 1 exit status C:\Dev-Cpp\Makefile.win [Build Error] [Output/MingW/Project1.exe] Error 1 I've looked high and low, and I cannot find wxmsw28.lib …

Member Avatar for allq
0
169
Member Avatar for rajwant51

:confused: friends can you give any idea about making screensaver in c language:

Member Avatar for karthik_udt
0
259
Member Avatar for Bijaya123

I have a login form(Form1). Which has two text box(textBox1,textBox). when i clicked the Login Button another new form(Form2) is opened.This new form is a MDIPARENT form. I want to set the text of a lable of a new child form of this parent form which is same as the …

Member Avatar for Geekitygeek
0
272
Member Avatar for AndreiDMS

Hi, I have a printable class that needs to print some text only on 1 page. The thing is that when I hit print the printer prints 3 pages: page 1 - with correct content page 2 - empty page page 3 - page with content translated some how then …

Member Avatar for queen123
0
784
Member Avatar for sadhawan

Hi Guys, i have parsed an xml file below and want to create another class with data structure and pass these values to those data structure. [code] using System; using System.Collections.Generic; using System.Collections; using System.ComponentModel; using System.Data; using System.Data.Sql; using System.Data.SqlClient; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; using …

Member Avatar for Geekitygeek
0
164
Member Avatar for prasannapower
Member Avatar for raul8

I have 2 java Servlet files EmpRecord & Delete. Employee has a button of delete, on clicking it....page will be redirected to Delete.java Here the record will be deleted. Now, I want to redirect Delete.java back to EmpRecord.java where the message "Record deleted" will be displayed. How can I pass …

Member Avatar for fxm
0
104
Member Avatar for PEFCa

I am learning VB and am working on a tutorial on databases. The recordset is a disconnected set. I am getting a concurrency exception. I might have 3 records. I delete all 3. Then I add a record, it adds it. Then I attempt to delete it and it fails. …

Member Avatar for deathrock
0
102
Member Avatar for ekseks

So basically guys, the datepicker is connected to three fields (drop downs for..) [Month]/[Day]/[Year]-[Datepicker(Calendar)] now I just wanted to get the dropdowns' values and pass it on a textbox (namely: selectedDate - you can see below) having a format of [[U]mm/dd/yyy[/U]] thanks for the help experts. Code from [url]http://keith-wood.name/datepick.html[/url] [CODE]// …

Member Avatar for madkat3
0
149
Member Avatar for theighost

Hello, I made a script that fetches the HTML of a remote page, on another server: [CODE=php] // $URL[$i] has the value of a url, ex. http://www.google.com $lines = file($URL[$i]); $the_file=''; if($lines) foreach ($lines as $line) { $the_file .= $line . "<br />\n"; } //if I echo the variable $the_file, …

Member Avatar for theighost
0
196
Member Avatar for R.DanielRaj
Member Avatar for peter_budo
0
490
Member Avatar for NejiHyuuga

im having a problem...i have a program to count number of senteces one inputs..the words and asking for a letter. The end of "\\close count" works fine...but for some reason the sentence and word programs doesnt work. could anyone please check this out. I think Iam missing something. I have …

Member Avatar for manali04
0
189
Member Avatar for just-tam

Hi, I'm having a problem with my login control where whenever I try to login using the correct username and password i set up (in debug mode) and click enter, nothing happens. It doesn't even respond with an error message, its jus like the button doesn't work eventhough the code …

Member Avatar for dnanetwork
0
74
Member Avatar for navi17

Hello friends, I am working on e commerce site these days. Every goes well but now i am stuck on discount functionality. My client wants to have following functionality in the site 1)- i want to offer simple discounts: 10% off, 20% off with voucher or code number 2)- i …

Member Avatar for navi17
0
2K
Member Avatar for PixelExchange

Hello all. I've completed both a Winsock server, AND a Winsock client using C++. The problem comes in when I attempt to bind a socket to a remote IP address. I get the message "Unable to bind to "IP address" port 80. I know for a fact that both the …

Member Avatar for Ketsuekiame
0
709
Member Avatar for Varinor

I have an "input" page that allows someone to check a box which activates a datetime function, the page then returns to a display. My problem is that the input page can be relaoded and the box reticked, overwriting the displayed datetime. As the page reloads with the box showing …

Member Avatar for madkat3
0
216
Member Avatar for Tenaciousmug

Alright, the register/login system is fully working with sql injection, BUUUT now I want to store their IP Address. WHOLE new function that I've never dealt with before. So I need some help. Am I doing something wrong? I have the IPadd in the database as INT(10) and then I …

Member Avatar for manzarr
0
584
Member Avatar for bleedi

Hey! I was writing my code, and just became wondering if I get a memory leak here. The program has a function which checks and creates a "Time" object, which simply includes integer values for hours and minutes. It returns the Time-object created to the main code. The thing is, …

Member Avatar for bleedi
0
186
Member Avatar for mark0420
Member Avatar for darrylle
0
244
Member Avatar for johmolan

I use the code [CODE]Dim Selvk As New Selvkost2 Selvk.PassedText = TextBox29.Text Selvk.Show()[/CODE] in mainform and the code [CODE] Private _passedText As String Public Property [PassedText]() As String Get Return _passedText End Get Set(ByVal Value As String) _passedText = Value End Set End Property [/CODE] in my second form and …

Member Avatar for Teme64
0
89
Member Avatar for Designer_101

Hi, Im just starting to use the codeIgniter framework and Im developing a blog application. However I need a textarea where the user can change text to bold or change the colour just by selecting it and clicking a button above the area. Much like the daniweb reply form but …

Member Avatar for raju_boini525
0
929
Member Avatar for geoNeo_

Hey guys! Does anyone out there know of a way to debug a windowsservice? Fanx and happy coding! :)

Member Avatar for geoNeo_
0
84

The End.