199,114 Archived Topics
Remove Filter ![]() | |
Hello, I am currently working on a project for my degree using asp.net, C# and Sql. The problem I am having is with my connection.cs file that I have created, the code I have is as follows: [CODE] using System; using System.Configuration; using System.Linq; using System.Data.Linq; using System.Xml; using School.SchoolCore.Core.Domain; … | |
Hi, I have a very big vb6 project file with about 16 form modules, 3 class modules and 3 global modules. I want this to be converted into a exe file so that it could run in any system as a stand alone. I tried the make projectname.exe present in … | |
New to C and haven't had any problems until now - I can seem to get straight with passing arrays between functions. Here is what I need to do: Write a program that declares 3 single-dimension arrays named bookPrice, numBooks and totAmt. Each array should be declared in main() and … | |
I need run a c++ method from my python program but the c++ method need a few parameters what need for call that method in my python code with the paramethers | |
Hi guys , I am creating a timekeeping application to keep track of users. In my database I have a table which stores the time a user starts their break and finishes their break. I want to return the total time that the user is on break in minutes to … | |
[I][B][B][/B][/B][/I] i want to put the answer like user enter any odd number then out put will be like this one if 3 *** * * *** the even rows shows only 1st and last stars LIKE 5 ***** * * ***** * * ***** [CODE] int main(){ int num,i,j,k,l; … | |
I am trying to override setColour in the subclass callled ObjectB in the public void setColour(Colour xColour) method. So the OBjectB cannot change to purple. Can you see where I have gone wrong because the ObjectB is currently changing to purple colour. Please reply only if you know the answer. … | |
Hi, I am currently helping to create a script for a restaurant's online delivery service. The restaurant has a minimum order of £10 and i want to incorporate this into the script e.g. a customer's order comes up at £8 and clicks submit, a message box displays "Minimum order is … | |
Hello. I have a small problem in my home assignment. A neverending loop occurs, if user enters everything but digits, when I expect him to enter only digits. How do I allow only int type variables to be entered by user? The value user enters is the index number of … | |
hi I'm Maryam can you help me to draw this shape * * * * * * * * * * * * * * * ** three triangles with the same base. | |
I want to print to a word of length n in a string .Using by C ++ langues.I have not know funtions in string.h support that. i'm happy when you help me! thank you | |
[CODE]private void button1_Click(object sender, EventArgs e) { string m1; m1=cbmanganh.SelectedValue.ToString(); myds1.DSPT.DefaultView.RowFilter = "MaNganh='"+ m1 +"'" [COLOR="Red"]and[/COLOR] "Nam ='" +tbnamhoc.Text + "'" [COLOR="Red"]and[/COLOR] "HocKy ='" + tbhocky.Text + "'"[COLOR="Red"]and[/COLOR] "KhoaHoc= '" +tbkhoahoc.Text + "'"; dataGridView1.DataSource=myds1.DSPT.DefaultView; }[/CODE] error: expected ";" after each "and" Thank you so much! | |
Hi all I'm trying to figure out how to go about finding all <a> tags in a string and replacing the spaces within the <a> tag with underscores. Below is an example: Before [CODE=html]<a href="path/to/page" class="pageLink">Page Name</a>[/CODE] After [CODE=html]<a_href="path/to/page"_class="pageLink">Page_Name</a>[/CODE] Any help would be much appreciated. Thanks. | |
[code=java]package jee5study.exercise.disboard.servlet; import java.io.*; import java.net.*; import java.util.*; import javax.servlet.*; public class Board implements servlet { private String SvName; private Date Started; public void init(ServletConfig config) { SvName = config.getServletName(); Started = new Date( (java.lang.System.currentTimeMillis())); System.out.println("Servlet: " + SvName); System.out.println(" Started: " + Started.toString()); } public void destroy() { Date … | |
what is the correct declaration of pointer to a pointer to array of N elements. ( i want to store address of pointer to an array of n elements ) i am using the below declarions seperately , but getting errors. [CODE] int (*p)[4]; int (*p1) (*)[4] = &p; int … | |
hallo there... is there a way to handle data from a POST method like [CODE]$listOfItems=$_POST['listOfItems'];[/CODE] on the variable though are inserted values of an array such as( 1234|john;3455|helen;.....e.t.c.) is there a way to "brake" the variable so as to get one by one the array values... thank you | |
Hi all, I am trying to write a function which accepts a string as input and gives the integer as output, The string can be in any of these format for ex:2,500.75 or 2.500,7501 or 2'500.7513 or 2500,254 the output of function should be like 2500.56 Basically trying to get … | |
Gentle with me please, I'm brand new to VB.net !!! I have created a project with my forms & a little bit of validation logic, the basic skeleton of the project looks just fine. The data that I have for the project is currently in 2 Excel spreadsheets, so I … | |
Hello and thanks in advance for your time. Trying to learn how to throw App Exceptions. Is there any way to get this exception from properties so I can pass it to a JOptionPane? Model Resources UserException=Subscription failed. \ Please try another email address. ProfileException=Must Select a Profile \ UnenrollException=Unsubscription … | |
Hello Everyone, I am trying to work on omage compression on 12 bit image compression. I am using Rice encoding for 12 bit image. I have a complete program for 16 bit image compression. But I want to convert it to 12 bit image compression. And I also want to … | |
I'm trying to validate my xhtml page using the w3c validator, but there is 1 error: Line 103, Column 15: there is no attribute "name" <form name="checkForm" action="http://tl28serv.uws.edu.au/twainfo/form.asp" … You have used the attribute named above in your document, but the document type you are using does not support that … | |
Hi! I'm trying to use the nanosleep and sleep functions in a program I am trying to write. I first tried this - [CODE] fprintf(stdout,"Hey guys.."); struct timespec t_req, t_rem; t_req.tv_sec = 1; t_req.tv_nsec = 500; if (nanosleep(&t_req, &t_rem) < 0) return 0; fprintf(stdout,"...What's up?");[/CODE] Since the function nanosleep did … | |
I am trying to get into the course to get an advanced diploma in professional games development, and I need to present a program to demonstrate my programming skills. Can someone give me some suggestions of a program to make that demonstrates that I know C++? | |
I'm still very new to C#, but have some experience with scripting languages such as javaScript, PHP, and VB.Net. My question is how do I call a method from another method? Below is a chunk of code from my program. I want this method to evaluate a value and two … | |
Hi peeps... A good day to all of you yea~ as i know, i can retrieve only the first row by using the keyword [B]limit 1[/B]: [CODE]select * from tblTesting limit 1[/CODE] for selecting the first two rows are: [CODE]select * from tblTesting [B]limit 2[/B][/CODE] is there any solution to … | |
Hy everyone, I got a problem with doin a sum of a column where are only "int" datas, I get those data from Sql Db with a Sql Data Source and use that sds with a nested gridview. I tried with select sum() but it for each employer i get … | |
Hi guys, I'm a bit of a newbie to PHP/MySQL, so please excuse me if I seem ignorant of something seemingly obvious. I'm writing a booking system for a holiday home rental company. I'm building it up slowly. What I have so far is trying to calculate the number of … ![]() | |
Hi everyone! I wrote a Python 2.5 application, with GUI from Tkinter module. To make it short, the user has to load a file and can start to work on it. I made it Windows executable with py2exe, and installable with Inno, with a file association setting. So now, if … | |
Hi, I have an application that is going to be loading in about 30,000 files (very very small ones). These will be saved into memory (predicting about ~30MB of memory needed), and right now I just have them loaded in one at a time..I'll find a better algorithm for loading … | |
Hi, Following is the issue im having.... Im working on a checkers game using c#. ive decided to set each checker within a picturebox that will be displayed inside a panel (gameboard) however the problem comes when I have to move the checkers. I could write code to move the … | |
Hi friends I am new for the ruby language.I need to convert the yml file into csv file format by using ruby. I am using the Ruby mine2.0.1 and got the conversion script from this link: [URL="http://github.com/tokland/yaml2csv/blob/master/yaml2csv_conv.rb"]http://github.com/tokland/yaml2csv/blob/master/yaml2csv_conv.rb[/URL] i had implemented the script in ruby mine 2.0.1 but is not wotking. … | |
[code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using uDate; namespace DateDiff_timeDiff { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void timer1_Tick(object sender, EventArgs e) { string s = DateTime.Now.ToLongTimeString(); label1.Text ="London : " + s; DateTime … | |
I am New TO Programming Am HAving 2 Table One Table Having Coloum ID and NAmeOf Eventt And Other Table Having Coloumn ID and Imagepath I want To Retrive Id related the NAme Of Event and Want To Insert That ID into other Table at the same time i want … | |
I have a variable that contains the name of another variable. I intend to read the contents of the variable name. how? | |
Hi Guys I'm New to web development. i need one help. I'm having list box on my form, in form load event i will bind the list box with database value. user should be able to select only 5 items from the list box and also i want to validate … | |
hello can you help me when i click the add button it will not add to the database.it will generate an error..can you help me please hoping for your positive responds...here's my code,please see my attachment.... [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.JPanel.*; import java.sql.*; public … | |
Hi, When I assign the value of one structure variable to the other I got the error "incompatible types in assignment". The Code is the following. The Problem line is 91. [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> struct file_data{ char src_ip[18]; char dst_ip[18]; char src_port[8]; char dst_port[8]; char p2p_proto[18]; struct … | |
hello please help me on this i don't know how to trap the duplicate id_no..example if i have already added this id_no H-1010..then if i input again it should prompt that id_no is already exist on your database..please help me on this..hoping for your positive responds ..thanks in advance | |
I am having troubles getting my program to work. It is supposed to take integers from a file and put them into an array. Then it is supposed to sort them by the bubble sort algorithm. [CODE]#include <stdio.h> #include <ctype.h> #include <stdlib.h> #define N 10000 int main(int argc, char *argv[]) … | |
In C#.net, I am using form1 as homescreen,.. while running exe from Debug folder, form1.exe appears in Process tab in task manager,... The problem is: Through form1 at runtime, i may create more instances of form1 while trying to close particular instance, the instances closed,.. but still exe appears in … | |
Hello everyone! I am new to this forum (and C programming) but I hope that I will be able to master C help anyone out with problems in the coming months. But I am having trouble with my own program for an assignment. I am asked to simulate a user … | |
I am attempting to write some code that will open a sequintal file into arrays and will then can use the data to calculate monthly payment. the text file is as follows 1 5 10 20 50 2.5 4.1 5.3 7.1 8.3 With the top row being yrs and bottom … | |
So my teacher has a quiz question and his practice question for it is for us to code the strcpy function for character arrays assuming acceptable ones are passed. I have written my version and just want to see if it you see any errors in it. Or even if … | |
I'm using Python and the Python CGI module to do some web development for a system's administrative access page. The problem I have is that the current features allow you to reboot the system, power off the system and stop/start/restart system services. The system is very limited in what's running … | |
Hy again! =) Here's my problem. My AJAX doesn't want to work, and Firebug gives me this error message: "uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: [url]http://localhost/mysite/js/functions.js[/url] :: callSaveFile :: line 273" data: no]". So as u see I'm using … | |
[CODE][/CODE] def Given(rn): Given_lengths = [0] * 1000000 def rn2(n): if not Given_lengths[n]: Given_lengths[n] = rn(n) return memoized_lengths[n] return rn2 def cycle_length(n): if n == 1: return 1 if n % 2: return cycle_length(n * 3 + 1) + 1 return cycle_length(n / 2) + 1 def problem(i,j): for x … | |
My assignment is to find the sum of an array, sum of the cubes of the array (i.e. each value raised to the power 3) and the variance of the array. At the moment I'm getting compilation errors so I can't do any trial and error. My problem conceptually is … | |
I have three classes in the program. This is a part of my assignment. I am doing it for the first time; so you might find something stupid in there.. as i have just tried to get the output my way or based on the assignment requirements. I have one … | |
I'm having some trouble translating the following C++ program to Pep/8 assembly language. Can anyone help me solve this. This is what I have come up with. [code=cplusplus] #include <iostream> using namespace std; int list[16]; int i, numItems; int temp; int main() { cin >> numItems; for (i = 0; … |
The End.