199,114 Archived Topics
Remove Filter ![]() | |
I have a program and I want to know how would I put test cases on this program. its an sum and average program and so I'm trying to figure out how test it. I don't want the answer to my program but i want to see how a test … | |
I need to overload Dll Exported function, and the problem i'm getting is thet the compiller says only one overloaded function can be "C", how can i do this ? [CODE] extern "C" __declspec(dllexport) __stdcall void CreateCustomers(TComponent *Owner); [/CODE] this is the original declaration, i'm tying to overload it so … | |
I have a txt file that contains a list of files that i need to delete. so far this is what i have. how do i add the delete statement. line.delete, sr.delete does not work. class Program { static void Main(string[] args) { StreamReader sr = new StreamReader("List.txt"); String line; … | |
Hi all, I am using an if condition to compare the word count of a file to be equal to 21.If the file is equal(having 21 words),it is working correct.The problem is that if the file is having different word count than 21 also it is going inside the if … | |
[code] public int getMathInformation(int a, char op, int b) throws RemoteException { int result = 0; if(op == '+') result = a + b; else if(op == '-') result = a - b; else if(op == 'x') result = a * b; else if(op == '/') result = a / … | |
I'm confused how GridBagLayout can be used as if it was GridLayout(0,2). For example, I would like to lay out components like this: Label TextFieldForLabel Label TextFieldForLabel Label TextFieldForLabel Label TextFieldForLabel I thought by making a GridBagConstraints() Object, then setting the gridx and gridy variables, this could be accomplished (Java … | |
New to triggers and SQL programming but I'm trying to figure it out by looking at code examples. I have a table, called child. My program inserts a new child into the child table and stores the parentid as a FK. What I need to do is when a new … | |
Hi gurus, I have a script like this. echo "$file1 does not exists " | mail -s "No File found for $file1" [email]floyd@gmail.com[/email] It is sending the mail.But subject part is not coming.Only the content is coming($file1 does not exists ).Can anyone help me out? Floyd | |
Hello !!!! I'm callind a form from Dll it works jut pirfect, but i have no idea how it works, so now i need to add parameters to the function,so i can pass some parammeters to the form, and have no idea how to do this, any one can help?? … | |
Ok so here is my situation. I am generating a wordpress (blog) import file from an xml file using xslt. I am trying to add an hour to each publish date node. So for example.... <title> Post 1 </title> <pubdate>8-10-2008 5:00</pubdate> ( I realize the format may not be right) … ![]() | |
Trying to make a program that where user inputs 10 numbers (no negative numbers) and then displays the sum and average. I get a error if I don't have ; after else statement, before sum = 0. I get a warning of coversion from int to float, and warning of … | |
Can anyone help my code for updating is given an error that “[B]no value given for one or more required parameter".[/B] my code is below Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a As Integer a = period.Text If period.Text >= 0 Then period.Text … | |
Hi All How should i go about finding the complexity of a finding a minimal spanning tree in a Graph... | |
Hi, I am working on a web site using VWD 2005 Express Edition. As I wanted to host it on my own pc I followed the instructions of various tutorials and finally I succeeded in viewing it by typing [url]http://localhost/Alias/Index.aspx[/url]. Next I tried with the help of my son to … | |
I am working on modifying a BankAccount class for a project I'm doing. I am almost finished, but I am stuck on my second constructor. If a user has an existing account (i.e if there is an initial balance), then the BankAccount constructor should call a deposit method to allow … | |
| |
actually i am working on a project in ado.net and i want code for previous and next button plzzz do help me in this as early as possible....... | |
I am still working on the lovely trie project, now I am working on file input that will be passed into the trie. I receive the following errors when I compile this code. [code] $ make gcc -Wall -g -c -o spellback.o spellback.c spellback.c: In function ‘main’: spellback.c:36: warning: implicit … | |
I am trying to write an exception to throw, for an invalid testScore array. If the scores are greater than 100 or less than one. I attached the three classes I have created. I also have to return the average.... If anyone can help I would appreciate it. I am … | |
Hi guys I think this is simple question,now Iam frustrated coz i could not find the error.Below I mention the coding I wrote.I Highlighted the text where exception occurs.Exception is "Object reference not set to an instance of an object."(Null ReferenceException) Pls help me [CODE]private void button2_Click(object sender, EventArgs e) … | |
Hi, I have a Cinema class as shown in the code below. However I'm required to create my own exceptions and pass them to the controlling module (here method with scenarios). After an exception occurs the code should stop execution of current scenario and go to another one. The code … | |
how do you add data to sql database using c# variables and an sql command? I have a class of employes that i use which has values identical to my sql database tables here is the basic code of what i want to do... [ICODE] SDC.DbCommand dbCmd; //database command string … | |
Hi all! :-) I'm trying to create a quote calculator for my website, and it need to be in drop-down-list format, where basically the user will select make>model>spec>transmission etc, and that's fine, i can do that using the usual drop down options in Dreamweaver CS3, add the numeric values to … | |
im using pure API on Vista, also im experimenting with the DWM(desktop window manager) for the glass effects including extending it into the client area like windows media player (lol just for fun mind) and im having a problem with drawing buttons ontop of the glass, it appers the when … | |
Hi, I have a small question regarding arrays. I have the class Family below: [CODE] import java.util.ArrayList; import java.util.Collection; import java.io.*; public class Family { private Adult father; private Adult mother; private Child[] children; private Dog ourDog; private Cats ourCat; private Rabbit ourRabbit; int Age; public Family() { } public … | |
What's wrong with this code in Boa: [def OnMenuHelpAboutMenu(self, event) works fine if I use it to open file etc.., but won't work for Dialog2] Thanks! [code=python] #Boa:Frame:Frame2 import wx #import Dialog2 def create(parent): return Frame2(parent) . class Frame2(wx.Frame): . def OnMenuHelpAboutMenu(self, event): # if hasattr(sys, 'debugger_control'): # sys.debugger_control.set_traceable() dlg … | |
Hello, I'm trying to write my own control. I've got some code: [CODE=c#] using System; using System.Drawing; using System.Windows.Forms; namespace ImageListTest { public class ImageBar : System.Windows.Forms.UserControl { private System.Windows.Forms.PictureBox pb = new System.Windows.Forms.PictureBox(); public ImageBar(String filename) { this.SuspendLayout(); this.pb.SuspendLayout(); this.Controls.Add(pb); this.pb.Size = new Size(80, 80); this.pb.Location = new Point(10, … | |
hi guys, was tinkering around with the tab control and came up with a problem. for your information, i have relied heavily on the example shown here: [URL="http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx"]http://www.codeproject.com/KB/tabs/firefoxtabcontrol.aspx[/URL] basically what i'm doing is docking forms onto different tab pages. my problem is that after i override OnDrawItem, the xp stlye … | |
Hi, below is my code to do a Convolution. I am tryingt o convolute my theoretical data with a Gaussian? I seem to be getting a number of errors and its killing me Cheers for any help Gareth [CODE]#include <iostream> #include <cmath> #include <math.h> using std::cout; using std::cin; using std::endl; … | |
How do I use AND OR and NOT in C++, because I need to use an and statement and I thought this was right but the compiler is flagging an error with it because I think it thinks it is a pointer reference thing. if (val1 > 16777215 & val1 … | |
Hi guys I am back sorry for too late just due to business in class I was unable to visit this site. But for long time I was planning to ask this question but was too busy. I am working on graphic creation in python and I created a basic … | |
write a program that graphically plots a regression line, that is, the line with the best fit through a collection of points.First ask the user to specify the data points by clicking on them in a graphics window. To find the end of input place a small rectangle labeled done … | |
I was asked for my AP Comp Sci online course to construct a program that would calculate fahrenheit to celsius and vice versa, the volume of a sphere given the radius, and the hypotenuse of a right triangle given the two other sides. I was given a program to work … | |
Hey all. I would like to find out how i can access/ get the value of a variable in a different class. this is part of the code which shows what I was trying to do. [code] public class A{ protected int x; //missing code C obj = new C … | |
I'm not sure why I want to do this, but it seems like I used to know how. Now I cant get it to work. The code would be something like: Public Sub FormattedString() '*** I want to break the string up into an array of '*** characters and reverse … | |
Dear all, I am trying to build a code which finds a string from an opened file ,, but in order to find it it must tokenize every line first.. here is the code segment, If any of u can help plz.. [CODE] #define MAX_MSG = 100 int main (int … | |
generating triples for branching statements related to compilers lo intermediate code generation in that we have3 address code triple is one of the type of 3 address code little bit urgent can any one solve this i need to complete my assignment plz | |
Hi and I must know if this script is valid to determine if the Java console and my Java compiler need reinstalling. I have tried so many samples and my browser shows an invalid message. My file is named 'filename.class' and below is the script I have used to test … | |
SAMPLE TEXT("everyone can help") can any1 help me, write the code to count text. for example you have 2 text boxes when a user enters 2 in editbox1 and enters 5 in editbox2, the message in memo box is display as "very" CAN ANYONE HELP PLEASE | |
I am supposed to create a Pascal program that obtains 4 inputs from user and averages them. The program should enforce all inputs to be between 0 and 100, inclusive. This is for class, but more importantly I have more programs and I need to understand why I suck at … | |
hi there, i am developing software that allows insurance companies to send text messages to their clients when their insurance expires. i want to add a function that allows the system to automatically send these messages n number of days before the expiry date. ('n' being number of days specified … | |
I am about to start my final year project, my project is about "Online Appointment Booking System". I started by displaying calendar, but i have a problem displaying the calendar "WEEKLY". i want to calendar to show current week, if possible a button that allow user to view next week … | |
Dear All, I have a problem with Java Programming. I am writing a TatTicToe Program but I found a Error. It is a [B]unexpected type[/B] for [B]mark.equals("X")? currentPlayer=1: currentPlayer=0;[/B] I don't know what happen. If you don't mind , I hope that All people will give some advises to this … | |
Hello Peopel!!!! I have a problem with a definiton. I have defined a form, in dll, then i had to include the file in the same form, after compiling i'm getting worning Public symbol '_DllCustomers' defined in both module CUSTOMERDLL.OBJ and CUSTOMERFORM.OBJ here is the code [CODE] //--------------------------------------------------------------------------- //CUSTOMERDLL.CPP #include … | |
Hey guys, its past midnite so I think the programming ghoulies have gotten to me but I am having a very strange problem with a constructor [icode] Account(char c[], char num[], int b); [/icode] Everything runs fine until I reach the for loop below, which for a very strange and … | |
Hi everyone, I am a newbie here and I haven't read anything--I know I should. Sorry in advance if I break any rules in this posting. I am having a problem with this project I am working on. The assignment is to create an application that will give a user … | |
I have a written a program for Dijesktra algorithm; But I encounter the run time error when the code returns "lp" value ... Runtime check failure #2-Stack around the variable 'parent' is corrupted please see the code Could some one tell me that how to solve this prblem thanks [code=cplusplus] … | |
Hi folks i am pursuing my Dual Degree(Bachelor + Masters) from Indian Institute of Technology Roorkee(India). I am quite interested in web services and planning to do a project which states as: web service enabled appointment scheduler for universities/colleges. This scheduler may have many different functions like: given our free … | |
Hello everyone!!! Whow know how to determinate which Field in DBGrid is active??? | |
I have a webbrowser control that allows me to save username and password infromation for a proxy server and i have been successful in changing the system default proxy for my application. What i now need to accomplish is to have a seperate proxy for each instance of the webbrowser … |
The End.