199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DaJoker

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 …

Member Avatar for dickersonka
0
118
Member Avatar for uim_1977

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 …

Member Avatar for uim_1977
0
180
Member Avatar for mrjoli021

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; …

Member Avatar for ddanbe
0
90
Member Avatar for pinkfloyd

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 …

Member Avatar for pinkfloyd
0
77
Member Avatar for askhan

[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 / …

Member Avatar for dickersonka
0
82
Member Avatar for BestJewSinceJC

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 …

Member Avatar for Ezzaral
0
110
Member Avatar for ferretwoman

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 …

Member Avatar for dickersonka
0
99
Member Avatar for pinkfloyd

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

Member Avatar for eggi
0
97
Member Avatar for uim_1977

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?? …

Member Avatar for uim_1977
0
187
Member Avatar for tytyguy

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) …

Member Avatar for gravyboat
0
519
Member Avatar for cicigirl04

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 …

Member Avatar for DaJoker
0
283
Member Avatar for onilu

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 …

Member Avatar for cellus205
0
136
Member Avatar for aashish.raina

Hi All How should i go about finding the complexity of a finding a minimal spanning tree in a Graph...

Member Avatar for Ezzaral
0
73
Member Avatar for Fiorentino01^

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 …

Member Avatar for Baradaran
0
97
Member Avatar for NotThereAnymore

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 …

Member Avatar for dickersonka
0
98
Member Avatar for panpanf
Member Avatar for luvingmana

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.......

Member Avatar for Jugortha
0
94
Member Avatar for thanatosys

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 …

Member Avatar for thanatosys
0
133
Member Avatar for cproud21

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 …

Member Avatar for Ezzaral
0
153
Member Avatar for Tank50

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) …

Member Avatar for LizR
0
118
Member Avatar for Achupa

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 …

Member Avatar for orko
0
132
Member Avatar for deraj8

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 …

Member Avatar for dickersonka
0
88
Member Avatar for Loki421

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 …

Member Avatar for Loki421
0
182
Member Avatar for sarriss2

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 …

Member Avatar for sarriss2
0
223
Member Avatar for Achupa

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 …

Member Avatar for ~s.o.s~
0
132
Member Avatar for vmars

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 …

Member Avatar for sneekula
0
539
Member Avatar for eqalizer

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, …

Member Avatar for eqalizer
0
91
Member Avatar for gp04lch

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 …

Member Avatar for gp04lch
0
140
Member Avatar for something else

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; …

Member Avatar for grumpier
0
127
Member Avatar for cam875

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 …

Member Avatar for cam875
0
110
Member Avatar for oldSoftDev

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 …

Member Avatar for jlm699
0
94
Member Avatar for hobbz86

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 …

Member Avatar for jlm699
0
94
Member Avatar for IMtheBESTatJAVA

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 …

Member Avatar for IMtheBESTatJAVA
0
517
Member Avatar for joshmo

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 …

Member Avatar for joshmo
0
141
Member Avatar for rstkw

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 …

Member Avatar for selvaganapathy
0
130
Member Avatar for naeem1986

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 …

Member Avatar for naeem1986
0
128
Member Avatar for ranam

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

Member Avatar for ~s.o.s~
0
115
Member Avatar for cwarn23

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 …

Member Avatar for cwarn23
0
474
Member Avatar for ABKTECH

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

Member Avatar for LizR
0
124
Member Avatar for l_23

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 …

Member Avatar for LizR
0
347
Member Avatar for realnsleo

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 …

Member Avatar for realnsleo
0
97
Member Avatar for yusufmiko

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 …

Member Avatar for yusufmiko
0
91
Member Avatar for ming97

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 …

Member Avatar for darkagn
0
94
Member Avatar for uim_1977

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 …

Member Avatar for mitrmkar
0
160
Member Avatar for kenji

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 …

Member Avatar for kenji
0
84
Member Avatar for msashley09

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 …

Member Avatar for Salem
0
127
Member Avatar for traza786

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] …

Member Avatar for traza786
0
213
Member Avatar for ukey.nilesh

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 …

Member Avatar for khaleekcool
0
122
Member Avatar for uim_1977

Hello everyone!!! Whow know how to determinate which Field in DBGrid is active???

Member Avatar for uim_1977
0
264
Member Avatar for Scottietrek

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 …

Member Avatar for WantedScottWagn
0
186

The End.