132,726 Archived Topics

Remove Filter
Member Avatar for
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) …

Software Development dataset
Member Avatar for LizR
0
119
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 …

Software Development java
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 …

Software Development sql
Member Avatar for dickersonka
0
88
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 …

Software Development java
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 …

Software Development python
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, …

Software Development
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 …

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

Software Development c++
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 …

Software Development c++
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 …

Software Development python
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 …

Software Development python
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 …

Software Development java programming-construct
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 …

Software Development java
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 …

Software Development visual-basic
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 …

Software Development c
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

Software Development java
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 …

Software Development display java
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

Software Development delphi pascal
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 …

Software Development pascal
Member Avatar for LizR
0
347
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 …

Software Development java
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 …

Software Development c++ dataset ide
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 …

Software Development c++ visual-studio
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 …

Software Development c++
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] …

Software Development algorithm c++ file-stream ios
Member Avatar for traza786
0
213
Member Avatar for uim_1977

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

Software Development c++
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 …

Software Development vb.net
Member Avatar for WantedScottWagn
0
186
Member Avatar for JackDurden

Im having trouble seeing this recursion function through. Say I have an 8 by 8 array how would I get the search function to "see" into the middle of the 8 by 8 array. Positions (4,4), (4,5),(5,4),(5,5). [CODE] #include <iostream> using namespace std; struct matrix { int size; int row; …

Software Development c++
Member Avatar for skatamatic
0
68
Member Avatar for NinjaLink

Hello, I am trying to get the stock count to print for each of the toys: ps3, elmo, and wii. I don't have any clue on how to do it. To print the stockcount, i created the function getStock to try to do the job. Can someone help me get …

Software Development c++
Member Avatar for NinjaLink
0
135
Member Avatar for unleashedvigil

I am needing to have this program choose between two options randomly. The program all works except that when I use this line of code: int x= rand() % 2; it seems that it's not random but rather follows the same pattern every time. I have searched and found things …

Software Development c
Member Avatar for unleashedvigil
0
86
Member Avatar for sudokusolver

i designed this tic tac code in c bt there is sum prblm wid the part where program has to decide the winner it dosent seem 2 workin im posting the code any help is greatly supported #include<stdio.h> #include<conio.h> void main () { int go=0; int i =0; int player; …

Software Development c
Member Avatar for WaltP
0
118
Member Avatar for greenvader

i need to open a msword file using vb6, read the data and insert a new data. could someone please help me with this. thanks in advance

Software Development visual-basic
Member Avatar for greenvader
0
79
Member Avatar for Boudou

[code=cplusplus] #include <stdio.h> #define SIZE 3 void swaparrays(int* a, int* b); main () { int a[3][3]={{0, 2, 3}, {1, 5, 7}, {3, 9, 4}}; int b[3][3]={{2, 8, 5}, {4, 7, 1}, {3, 9, 2}}; } void swaparrays(int* , int* ); { //How I can impement swap arrays Function???// } [/code]

Software Development c++
Member Avatar for uim_1977
0
117
Member Avatar for uim_1977

People what do i do wrong, i'm new to the forum, but for some reason i'm not gettig any ansfers to my questions, please tell me what do i do wrong???? Thank you.

Software Development c++
Member Avatar for VernonDozier
0
92
Member Avatar for Boudou

//I have done Until.. But it seems to have many problem with compiler// #include <stdio.h> #define SIZE 3 void swaparrays(int* a, int* b); main () { int a[3][3]={{0, 2, 3}, {1, 5, 7}, {3, 9, 4}}; int b[3][3]={{2, 8, 5}, {4, 7, 1}, {3, 9, 2}}; void swaparrays(int* a, int* …

Software Development c++
Member Avatar for Boudou
0
98
Member Avatar for akbar002426

You are to implement a very simple distributed text editor. For this purpose, each user must be provided with a simple workspace where she can either read or write plain text. You must implement the system in such a way that, at any given point of time, only one user …

Software Development algorithm c
Member Avatar for thanatosys
0
113
Member Avatar for Liszt

How could it be possible to synchronize the computertime to ex: GMT or any timeserver on the internet ?

Software Development c++
Member Avatar for Liszt
0
166
Member Avatar for StephanJos

I have one *.cpp file but I cant it compile with MS VC++ ! How to compile signle .cpp file in VC++? Please help me!

Software Development c++
Member Avatar for tonief
0
164
Member Avatar for jase728

I need help. How do you encrypt multiple lines of a text file? /********************* *Made by Jase Inc * *Made in 10/22/2008 * *Boolean Cryptography* *Using ^ operator * *********************/ #include <iostream> #include <fstream> #include <string> using namespace std; int main () { string line; ifstream myfile ("text.txt"); char key[65]="jaf#$%skl%#ajlf^%dlkfhasjlk@#dsgsfsfrtw"; …

Software Development c c# c++ encryption
Member Avatar for dumparun
0
165
Member Avatar for thanatosys

I have a homework assignment for a c class I am in currently, the assignment is to write a simple spell checker. I am having a bit of trouble understanding how to write a trie in c. A trie would be composed of nodes, which contain the following I believe: …

Software Development c
Member Avatar for thanatosys
0
265
Member Avatar for Spartan552

Hello everybody, I have various components that I want regroup in the same category. I found numerous screenshots on the internet using some sort of frame surrounding items. For instance : [url]http://www.vieartificielle.com/images_robot/e70d6615e7b9c9ecfacdc7e977425d6d/cache_500_wifi_robot_photo_gui.jpg[/url] (the frame surrounding "Joystick information" section) and [url]http://bp3.blogger.com/_45gEBj4xUTA/RwefQvOgIjI/AAAAAAAAACQ/pKezYz2qQCQ/s320/RobotUI.jpg[/url] (the frame surrounding "Current data" section). I dont know how …

Software Development java java-swing
Member Avatar for Spartan552
0
99
Member Avatar for rstkw

There is a website that makes highly optimized VB code available. Something like VBSpeed or something like that. Does anyone have a link to it?

Software Development visual-basic
Member Avatar for rstkw
0
98
Member Avatar for bodocz

Hi! I expect the next program wait 1 sec. and exit but doesn't work. Could anybody help me? Private Sub Command1_Click() Timer1.Interval = 1000 Timer1.Enabled = True aaa = 0 lo: If aaa < 1 Then GoTo lo Else End End If End Sub Private Sub Timer1_Timer() aaa = 10 …

Software Development visual-basic
Member Avatar for rstkw
0
258
Member Avatar for joshmo

I was reading a tutorial about 2D arrays and I decided to construct something. I managed to construct something but when I compile I get "null" as my output. I cant seem to figure out the problem. Here is the sample code. I have also higlighted in red a line …

Software Development java
Member Avatar for ~s.o.s~
0
594
Member Avatar for vbdave

Hi, I made a small Access DB that has a Date field in it (DUEDATE). The DB is used for demonstration purposes to show current orders. I need a function that would randomly update the orders due date in the table (orders). I would like to input a starting date …

Software Development visual-basic
Member Avatar for rstkw
0
103
Member Avatar for dhandb01

hi there guys!!!! Could u plz help me with this program. I hav done quite a lot but there still are some problems. here is a brief overview of ma project The aim of this project is to design and develop a useful utility program, named duplicates, to locate and …

Software Development c encryption storage
Member Avatar for dhandb01
0
157
Member Avatar for jjskywlker

Ok, so I need to enhance the functionality of my existing Loan class to be able to calculate any of the 4 missing elements in a Loan, whether it is the Principal, APR, Term, or Payment. I already have the necessary calculations to get the monthly Payment, but I need …

Software Development java
Member Avatar for stultuske
0
4K
Member Avatar for jianna

Hello all I have been learning C for about 3 - 4 weeks now and I'm in need of some help. I am trying to write a function that will give you the sum of selected integers in an array with a value of 20. I can make it give …

Software Development c
Member Avatar for jianna
0
461
Member Avatar for goodmuyis

Hello can anybody recommend a book for a lazy reader like me, I've try "Thinking in C++, Volume 1, 2nd Edition Bruce Eckel, President, MindView, Inc" but i find it difficut to understand the basic there. So can anybody recommend any simple book for lazy lad

Software Development c++
Member Avatar for ddanbe
0
247
Member Avatar for Entropy1024

I have a .mdb database that contains various records. One of the fields is date, ie '19/10/2008 00:00'. How do I sort the database by date? I an a beginner and currently learning with the 'Visual Basic in easy steps' by Tim Anderson. On page 104 he has an example …

Software Development visual-basic
Member Avatar for Entropy1024
0
303

The End.