199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shinsengumi

Hello all. I'm trying to compile a socket program in DevC++ but everytime I do it I get a lot of linker errors like these: [CODE] [Linker error] undefined reference to `WSAStartup@8' [Linker error] undefined reference to `htons@4' [Linker error] undefined reference to `inet_pton' [Linker error] undefined reference to `socket@12' …

Member Avatar for shinsengumi
0
899
Member Avatar for cjoyce

hi guys... i can connect now to the mysql database and is able to display the database names (because i have 3 databases) in a combo box.. i was stuck up in displaying tables from mysql in a listview.. please help me solve this.. here are my codes: [code] Public …

0
399
Member Avatar for Ron2794

I am making a program on library management but in my program I am getting the error when I am extracting the date from MySQl(my database). Below is the short piece of code where I am getting the error. [CODE] Calendar c1=Calendar.getInstance(); ResultSet rs=stm.executeQuery("Select AccessionNumber,Name,Fine,DueDate from issuer natural join classinfo;"); …

Member Avatar for Ron2794
0
631
Member Avatar for el3ashe2

hello my first thread to as for something here but i like daniweb a lot i'm trying to save data from listview to sql server [CODE] Dim iCount As Integer Dim iLoop As Integer Dim query3 As New SqlCommand Dim lvitem query3.Connection = New SqlConnection("Password=sasa;Persist Security Info=True;User ID=sa;Initial Catalog=Tel;Data Source=HA-PC") …

Member Avatar for el3ashe2
0
2K
Member Avatar for ticktock

Hey all I am currently a java beginner and I would like to ask how would I return control to my main if ever I encounter an exception created by me? For example: [CODE]public void checkIn(int roomNumber, String occupantName, int day) throws ExceptionHandler { int checkValue = this.employingHotel.checkIn(roomNumber, occupantName, day); …

Member Avatar for ticktock
0
203
Member Avatar for Khodz

I've been writing a piece of code that will use a brute force approach to find 50 exponential equations that fit 5 points (x,y) that i've entered. The code is fine and works without a glitch.. The problem is when i try to make it keep a record of the …

0
110
Member Avatar for hughser

Please could i have some code for my c# 2010/ .NET 4 web browser. I always recieve an out of range exception for my progress bar- could i have some working code for a web browser to make a progress bar to work properly!

Member Avatar for Mitja Bonca
0
199
Member Avatar for myk45

Hello, im trying to implement a generic double linked list, and i have added just one function(insert). But im getting some errors. Here is the code: [CODE]#include <iostream> #include <cstdio> #include <string> using namespace std; template <typename T> class doubleList { private: struct Node { T info; Node *leftPtr; Node …

Member Avatar for griswolf
0
160
Member Avatar for clmirand

Hi everybody. Am new here and new using PHP as well. Hope you could help me. I encountered this error Error when deleting: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables …

Member Avatar for parasp2003
0
372
Member Avatar for kuchick32

How do I write a a recursive function that counts the number of sequences that sum up to that number (user input)?

Member Avatar for frogboy77
0
132
Member Avatar for NettSite

I am trying to get the win32service PHP extension working. I have installed PHP 5.3.4 on my Windows XP SP3 box, and downloaded the php_32winservice.dll file and listed it in my php.ini file as instructed in the manual. However, there is obviously a version mismatch between the dll and the …

Member Avatar for NettSite
0
167
Member Avatar for rajesanthu

[COLOR="Red"]NB:Excuse me Experts,,,This is only for beginners......[/COLOR] [COLOR="Green"]JAVASCRIPT FOR CHECKING WHETHER THE TEXT FILED IS FILLED OR NOT[/COLOR] Be noted that 1.The form given above is just for example 2.You can add your own form,,please dont forget to chenge the names in assignments as you are going on your own …

0
212
Member Avatar for fettucine1

I have a problem printing the winners in my Voting Program. Please help me finish it. [CODE]#include <iostream> using namespace std; void DisplayOptions(); //void DisplayOptionsVice(); int InputVote(); int UpdatePoll(); void DisplayPoll(); //void DisplayPollVice(); int VoteArray[5]; //----------------------------- void main() { int option; int loop; int ctr=0; for(loop=0; loop<6; ++loop) { VoteArray[loop]=0; …

Member Avatar for fettucine1
0
1K
Member Avatar for frankchester

I've found how to convert a char to its ascii value (toascii) but I want to do it the other way round! I'm aware you can use putchar() but that doesn't really work so well for what I'm doing, or at least I'd like to find a quicker way if …

Member Avatar for bambrah jai
0
160
Member Avatar for mcmc1212

My text file is delimited (2 fields (text & numeric)). I'm trying to get the output into columnar format and include a count of the # of records following the columnar format. My text file is separated by commas. So far I can only read the text file. Here is …

Member Avatar for Mitja Bonca
0
169
Member Avatar for udigold1

Hi, I have a form with tab control in it and in on of the tabs I got a datagrid. On runtime, whenever I try to display data on the datagrid from a database, the datagrid "jumps" from the tab to the form itself so the tab hides most of …

Member Avatar for Mitja Bonca
0
1K
Member Avatar for smrati.katiyar

i am not sure why the value of b is coming out as 0 according to me it should come out as 3 [CODE]#include <iostream> using namespace std; void read(int a[],int n) { for (int k = 0;k < n;k++) { cout << "enter the " << k << "th …

Member Avatar for VernonDozier
0
86
Member Avatar for rena0514

For class I have to use a stack to find if a word entered by the user is a palindrome... [CODE]#include <iostream> #include <string> #include <stack> using namespace std; int main() { char *word; int count; stack <char> mystack; stack <char> rev_stack; cout<<"Enter a string "; cin>>word; while(*word!=NULL) { mystack.push(*word); …

Member Avatar for thelamb
0
253
Member Avatar for dpreznik

Dear friends, I need to make a report that would let the user to pick which columns he wants to see. I found how to do it here: [url]http://www.c-sharpcorner.com/UploadFile/uditsingh/CR1111022006055359AM/CR11.aspx[/url] This works, but I still have two problems: 1)When you start the report, you see a page with several comboboxes (according …

Member Avatar for amit121
0
378
Member Avatar for bearcatFulton

I am looking to create a message with several lines, but when I put my string into the mailto statement I can't find a newline character that works.[CODE]$MESSAGE_BODY .= "Message: " . nl2br($_POST["message"]) . "\n"; print_r($MESSAGE_BODY); echo "<a href=\"mailto:bearcatFulton@gmail.com? subject=Angus and Alfalfa Contact& body=$MESSAGE_BODY\">Send this message</a>[/CODE] I've tried \n\r, <br>, …

Member Avatar for bearcatFulton
0
93
Member Avatar for sumit_indian

Hello Friends , I m new in Javascript i m trying to validate two date coming in the format `DD-MON-YYYY` coming through `PopUP-Calendar` in two textboxes but unable to get required result I musing following function: <script type="text/javascript"> function check(){ var SDate = document.form.previous_date.value; var EDate = document.form.next_date.value; if (SDate …

Member Avatar for sahayata4u
0
237
Member Avatar for Vindal

I have made... well attempted at making a unique random number generator using arrays and functions, but it still will not work and I cannot find my error at all. Can someone please help? T_T [CODE]#include <iostream> #include <ctime> using namespace std; // *****Function prototypes**** void displayArray(int randNum[], int elements); …

Member Avatar for Vindal
0
6K
Member Avatar for Vindal

My problem is to make a program that stores a High temperature and a Low temperature within a two dimensional array and then displays the Average. I can get the numbers to be stored(I think, but the average doesn't work at all it seems to display the last number entered …

Member Avatar for Vindal
0
2K
Member Avatar for tofugamer

Hi, I'm having to write Conway's game of life for school and I'm having a little trouble with it. Whenever it runs through the code, all of the 'cells' move to the left a bunch and warp around the screen.. I'm not sure why.. Any help would be great! Thanks! …

Member Avatar for tofugamer
0
245
Member Avatar for erum

i have exception Conversion from string "System.Web.UI.WebControls.TextBo" to type 'Integer' is not valid. on these line [CODE] Dim no_single_room As Int32 = CType(DirectCast(dataItem.FindControl("txt_single"), TextBox).ToString(), Int32) Dim no_double_room As Int32 = CType(DirectCast(dataItem.FindControl("txt_double"), TextBox).ToString(), Int32) [/CODE]

Member Avatar for reach_yousuf
0
102
Member Avatar for wonder_laptop

Dear All, im given a hard copy of a form that is used by a hospital to gather information about its patients ! the form is divided into sections and each section has A LOT of YES/NO check boxes. [B][U] For example, one of the section is the History section …

Member Avatar for griswolf
0
147
Member Avatar for darkace69

I need to create a ResistorClass overloaded logical OR operator function which shall do the following: Overload the logical OR operator ( || ) to calculate the equivalent parallel resistance of the nominal values ( m_dptrRes[0]) of two Resistor Class objects. The formula for calculating parallel resistance is: NominalValue1 * …

Member Avatar for darkace69
0
227
Member Avatar for lttleastig

As the title goes how can i transfer a table from one DB to another but first i need to delete the table1 from DB1 coz table2 from DB2 has the same name as table1...

Member Avatar for lttleastig
0
127
Member Avatar for sunny124

Hi, The program compiles and executes with no errors but its not saving the category that the users enters as one of the constants listed in the enum 'ItemCategory'. So if the users types 1, it should save category as 'Women', if users types 5, the program should save category …

Member Avatar for kvprajapati
0
131
Member Avatar for prathameshz

hi i want to make asp mail script with attachment.. can any one send me the code for that

Member Avatar for ArtistScope
0
83
Member Avatar for rutherfordln

Hi I need help!! My program is supposed to count word occurences from a text file and the output is supposed to look like this a 2 count 1 hello 1 test 2 this 1 words 1 but instead it does this : a 2 a 2 count 1 hello …

Member Avatar for Clinton Portis
0
1K
Member Avatar for lee94

hi i am trying to learn programing by myself as i am not old enough to take the subject at school i have tryed to use tutorials but i am stuck in my attempt to make a game of life. i have seen some examples but am getting confused at …

Member Avatar for kvprajapati
0
152
Member Avatar for judithSampathwa

hi there, i have a question in giving access to separate table to users. i have a database call Admin and in that there are some tables that the one user should not aloowed in viewing, how can i restric that user in avoing looking at that table i am …

Member Avatar for buddylee17
0
320
Member Avatar for Philosophy

I have created a histogram program that has the user enter the lower limit of the range, then generates a 20 number array with that number at array[0] and the lower limit + 20 at array[20]. It then does a random number generation where 85% of the randoms are within …

Member Avatar for Philosophy
0
146
Member Avatar for Eekhoorn

I have this litle problem: I have inserted a lot of data into a excel form. After that I wish to do a bit of sorting and all that stuf before I actually create a chart. So I used the subtotal routine. Somehow this routine ignores my first row of …

Member Avatar for el3ashe2
0
133
Member Avatar for ravzn

Please can someone assist me. I have data stored in mySQL. If i want to allow the user to view this data (say his/her profile information), and at the same time, when it is displayed, it is editable to allow the user to change certain fields and then save. Hope …

Member Avatar for lyrico
0
100
Member Avatar for prvnkmr194

Please help on creating my own operating system ............. I try too much to search on google but I did not get any help for me.......... I hope some good enough too help.... I have knowledge about c/c++. Thanks.

Member Avatar for michaelrules
0
188
Member Avatar for JOSheaIV

Okay so after many hours I finally figured out how to read data from an excel file but now I am running into a problem here is how I read in data [CODE] Microsoft.Office.Interop.Excel.Application excelApp = new Microsoft.Office.Interop.Excel.Application(); Workbook excelFile = excelApp.Workbooks.Open(filePath, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, Type.Missing, …

Member Avatar for JOSheaIV
0
311
Member Avatar for ppetree

It's been many, many years since I have written any ASP code and I dont recall this functionality being present in the past BUT: In php we have a serialize() that takes an array of data and creats a single string representation of that data. The single string can then …

Member Avatar for ppetree
0
155
Member Avatar for riahc3

Hey Im having a hard trouble drawing in a Java window so if there is a plugin that shows the coordinates in a Java window when I hover my mouse over that spot it would make my coordinate easier.

Member Avatar for adams161
0
189
Member Avatar for Tellalca

Hey; I am having problem with the read and write functions in fstream. They need to have a const char * to read or write from/to buffer. I need to work with integers. Here what happens: [CODE]for(int i = 0; i < numberOfValues; i++) { int random = rand() % …

Member Avatar for Tellalca
0
158
Member Avatar for jonnypixel

Hi, I have 2 tables i am querying. The first table has 2 columns, one for folder ID and the other for Category ID. I want to query that table to get a loop of all the folder ID's based on the category ID chosen. Then i query the second …

Member Avatar for jonnypixel
0
160
Member Avatar for judithSampathwa

hi there i have a question i have created the login in C# deshtop application and when the application ruins i have amde the cursor to be focused to the username textbox now the thing is soemtimes the user adds the username and then adds the password a and then …

Member Avatar for judithSampathwa
0
121
Member Avatar for Joe Hart

In the following code, a selection in excel is selected. All of this information is then transfered to The DestFile. In this case the DestFile is Firm_ATC0.asc. I would like the program to put all the information from the A colum in the Firm_ATC0.asc file, and all the information in …

Member Avatar for Joe Hart
0
112
Member Avatar for pato wlmc

Well, i'm really new to this programming thing, but i don't have a teacher or anything like that, i'm an autodidact so I really have a lot of questions on this matter. I'm trying to do a project using Augmented Reality. As far as I know, there are two main …

Member Avatar for myk45
0
308
Member Avatar for dinners

[CODE]cout << "The sum is " <<sum<<endl<<"The sumCheck is "<<sumCheck<<endl; if (sum==sumCheck) { cout<<"Is a polygon"<<endl; } else { cout<<"Is not a polygon"<<endl; } [/CODE] The sum is correctly displayed as 360 and sumCheck is correctly displayed as 360 yet the message "Is not a polygon" is displayed. I can't …

Member Avatar for dinners
0
87
Member Avatar for david cashin

Hi, looked around but i couldnt find much on this. I need to redirect every 3 visitors that visit my url to different sites. so visitor 1 would go to xyz.com, lets say visitor 2 comes along and he gets redirect to xzy.com then the last visitor comes along and …

Member Avatar for diafol
0
124
Member Avatar for waleed.makarem

Dear All , I have a device with upon serial communication , it send the data as HEX values , (eg, C020042ABD0F91A103E400F929EBC) . I use the following code to get data from the serial port. [code] Dim fStream As New FileStream(sFileName, FileMode.CreateNew) ' creates new file Dim bw As New …

Member Avatar for Unhnd_Exception
0
1K
Member Avatar for dusty_tomorrow

I really need help with a project that I have to write for my intro to Java programming class. I have absolutely no idea what to do or how to do it. I would appreciate any help or starts on the code or maybe, just maybe, a code for this …

Member Avatar for griswolf
0
136
Member Avatar for Ana D.

Hi, In my page I have the following code: [CODE=ASP.NET]<asp:TextBox ID="SearchCriteriaTextBox" runat="server" Text="Enter Search Criteria" Width="150px" ForeColor="GrayText" OnClick="this.value = ''; this.style.color = 'black'" OnBlur="javascript:changeText('<%=SearchCriteriaTextBox.ClientID %>')" />[/CODE] And for the javascript: [CODE=javascript]function changeText(txtB) { var textBox = document.getElementById(txtB); var txt = textBox.value; if (txt = "") { textBox.value = "Enter Search …

Member Avatar for yamanshr
0
467

The End.