199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mrk

Hi, I am debugging an application developed by another programmer. AxInterop OCW11 excel component is used. The following code is giving an error "Input string was not in a correct format", "object reference was not set to an instance of an object". strTest = axSpreadsheetASCIIop.ActiveCell.get_Range( (Convert.ToChar(Col1)).ToString() + longRow1.ToString(), (Convert.ToChar(Col1)).ToString() + …

Member Avatar for mrk
0
150
Member Avatar for azket

Hey everyone, let me get straight to the point: For my program I developed two custom classes that extend jPanel and have some text fields and check boxes in them. (public class ServicePanel extends java.awt.Panel) Now I've encountered three problems. 1. When add those panels to the GUI Palette and …

Member Avatar for azket
0
120
Member Avatar for xilovemusic123x

Hi, I have a question about Java. I'm really new to Java so this is not something I'm familiar with.. My question is, how do I get the values of pos.offsetTop and pos.offsetLeft to show up in my input box?? Here is the java code: [code=JavaScript] function getPosition(element) { var …

Member Avatar for nav33n
0
260
Member Avatar for karthikRaju

I am doing online examination project, in that my requirement is to set one question in one page,the maximum time limit for the question is 60 seconds, count down. pb is if the user click refresh and back button the time get reset to 60 seconds again in this way …

Member Avatar for javaAddict
0
172
Member Avatar for theimben

I want to use $_GET['error'] to fetch error messages from an array. Heres my array: [code=php] $errormessages = array( 'nosearch' => 'Your search returned no results - <a href="guide?t=search">Click Here For Search Tips</a>', 'captcha' => 'The captcha you entered was incorrect, please try again.',); [/code] So if I did [ICODE]echo …

Member Avatar for Shanti C
0
201
Member Avatar for rayda

[ICODE]import java.util.Scanner; public class Simple { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("How many number?"); int numNumber = scanner.nextInt(); int sum = 0; int []numbers=new int[numNumber]; int highest=numbers[0]; int lowest=numbers[0]; for(int i = 0;i< numbers.length ; i++) { System.out.println("Please input number" + i + ":"); …

Member Avatar for javaAddict
0
100
Member Avatar for cevion

Hello I am trying to write a program that removes spaces before and after and reduce to one between words and capitalize the first letter of each world and the other letters lowercase but I'm getting errors which I can't make heads and tail of. |12|error: expected primary-expression before ')' …

Member Avatar for siddhant3s
0
110
Member Avatar for ephums

I'm trying to create a program that will sum all of the numbers from 1 to n, which the user inputs. I have to use recursion to calculate the sum. For example if the user inputs 5 it will return the sum of 1,2,3,4,5. Here is what I have so …

Member Avatar for siddhant3s
0
96
Member Avatar for curtissumpter

Hi, I currently use Eclipse as my IDE. I'm looking for instructions on how to integerate my Java code with HTML in the Eclipse enviornment or what IDE I can use in conjunction that will allow me to do so. Any advise would be appreciated. -- LiveWire

Member Avatar for peter_budo
0
70
Member Avatar for IMtheBESTatJAVA

Hey guys I just ran into some pretty interesting java problems on a different website and thought some of you might get a kick out of this. Determining on how well this goes I may post some more. So here comes problem 1. Determine the following output with the use …

Member Avatar for verruckt24
0
167
Member Avatar for Fouly

Hi, I'm writing MFC code and i got an error after writing this command line: [code] CFile f(_T("E:\\testHMM.txt", CFile::modeCreate|CFile::modeWrite)); [/code] the error is Debug Assertion Failed!!! Thanks, Mostafa Fouly

Member Avatar for Fouly
0
162
Member Avatar for newbie_here

hi all i am a newbie want to know how to get values from two tables in database. I hae two tables one is the personla information and the other table is the salary table .Both tables have id number which may join them to gather. But what i need …

Member Avatar for Ramy Mahrous
0
150
Member Avatar for vedmack

Hi. I got a page on which on the left side there is a Tree with branches, on the right side of the page i got an <EMBED> tag that shows a pdf file, User can click on tree branches to expand them and can click on the leafs to …

Member Avatar for vedmack
0
366
Member Avatar for shasha821110

Really new in PHP So don't know what to do now?? I have a form which have one select button have different catalog. And i want to do when i choose one catalog, my page will show what's that related. here is my form code: [CODE]<form action="index.php" method=GET name=chcat > …

Member Avatar for cwarn23
0
519
Member Avatar for ox99racer

this is my code... not too sure what im doing wrong but its probably something small. im getting errors too. #include <iostream> #include <fstream> #include <string> using namespace std; // void functions void nameFile(ifstream & infile); void openfile(ifstream & infile); void displayScores(int scores); void getData(ifstream & infile, int scores[], int …

Member Avatar for Comatose
0
108
Member Avatar for theimben

On my MySQL search what I want to do is redirect a user to another page and show an error message if the search returned no results. But for some reason the user never gets redirected. Can you spot my problem? :| [code=php] $sql = "SELECT * FROM `list` WHERE …

Member Avatar for vinothkumarc
0
82
Member Avatar for kvdd

I am working on a site that must drag and drop items, I use scriptaculous 1.8.2, effects, dragdrop.js. See the picture of the website: [url]http://http://www.freeimagehosting.net/uploads/a5e185062a.jpg[/url] or [url]http://img11.imageshack.us/img11/4913/myplansite.jpg[/url] [I](each number 1..8 is an drag and a dropable)[/I] But now I am lost, I kan drag, i can drop and invoke the …

Member Avatar for kvdd
0
111
Member Avatar for anbuninja

so im starting the second half of my c++ class and we are getting into functions. are first assignment and im already stuck -__- the teacher gives us the code for above main so we just need to write the prototypes. heres my code so far (prototypes probably wrong) it …

Member Avatar for vmanes
0
174
Member Avatar for localp

my OS is Windows XP, i have installed apache server (2.0 X) .. i am writing a script to send an email via php mail function. [code=syntax] <?php $to = "myAddress@hotmail.com"; echo "1"; $subject = "Hi!"; echo "2"; $body = "Hi,\n\nHow are you?"; echo "3"; if (mail($to, $subject, $body)) { …

Member Avatar for cwarn23
0
216
Member Avatar for shankhs

I dont know whether this is the right place to post this question but I think you guys have huge experiences so... I had a course on both algorithms and software engineering , and now I feel that I can devote my time to only one of these( as these …

Member Avatar for shankhs
0
102
Member Avatar for Robins Antony

Hi Friends, Does anybody know How to Export data from a GridView to MS Access using C #. Any help would b greatly appreciated. Regards Robins

Member Avatar for Robins Antony
0
98
Member Avatar for geetajlo

Hi i want to prevent the user from entering number and special charaters in a textbox and another textbox from entering alphabets and specials characters ..... Need it quickly coz 2moro have to submit my project...

Member Avatar for sabeerpasha
0
1K
Member Avatar for chiurox

Hi, I'm doing an assignment, where we need to use a class Domain and correctly output the URL address. The given class Domain is like this: [ICODE]class Domain { public: Domain(string lbl) : m_label(lbl) {} string label() const { return m_label; } const vector<Domain*>& subdomains() const { return m_subdomains; } …

Member Avatar for chiurox
0
99
Member Avatar for Dell XPS

i need to save some text in a file in utf-8 format but have no clue how to do it... any help appreciated...

Member Avatar for Ramy Mahrous
0
111
Member Avatar for DeadJustice

I'm doing this minesweeper assignment and I need help. I tried to test the findMineValues() function and it completely scrambles up my board. Can someone help me pinpoint what I am doing wrong? [CODE=cpp] #include <string> #include "Cell.h" using namespace std; Cell::Cell(){ label = 0; mine = false; flag = …

Member Avatar for DeadJustice
0
2K
Member Avatar for vmars

When I try and run xrced.py, I get the following errors in IDLE: Please, what am I doing wrong? Thanks! IDLE 2.6.1 ==== No Subprocess ==== >>> Traceback (most recent call last): File "C:\Python26\wx-2.6-msw-unicode\wx\tools\XRCed\xrced.py", line 23, in <module> from globals import * File "C:\Python26\wx-2.6-msw-unicode\wx\tools\XRCed\globals.py", line 7, in <module> from wxPython.wx …

Member Avatar for vmars
0
441
Member Avatar for tyoung4@runner

The following is the complete code. Can you give me a hint as to why the program is reading the "mph" instead of "hours"?? The program should only display the "Distance Traveled" according to how many hours the user inputs, not 40 separate calculations. The user inputs 40 mph and …

Member Avatar for tyoung4@runner
0
305
Member Avatar for AGU.Jessica

Hi There :) I purchased and downloaded this flash gallery from Mmfiles.com <- Good site. Now, of course I'm looking to insert this versatile resizable flash gallery, into my website that was designed in Dream-weaver cs3. [B]Are there any good tutorials you might know to help me do this ?[/B] …

Member Avatar for andrewsCWD
0
130
Member Avatar for JoannaMeier

Hi all. I wrote a small sequence to read data into a dynamic array of structures, which seems to work just fine so far as I can tell. Unfortunately a friend with somewhat more experience than I do pronounced it 'hairy,' but wasn't good enough to explain why. I'm simply …

Member Avatar for Ancient Dragon
0
103
Member Avatar for cali_dotcom

hi, i'm creating the admin section for a multi-level category search/navigation system. i mean like, when a visitor comes to the site and they are looking for data, first a list of categories appears. for example ..... states....departments......etc. so when a user clicks on states, he gets another list of …

Member Avatar for death_oclock
0
127
Member Avatar for ttony

Hi, can somebody explain why am I getting segmentation fault on this program. It seams that the list that is initialized in clstouchcontext.h does not get recognized in clstouchcontext.cpp Makefile is attached. main.cpp: [code=cplusplus] #include "clstouchcontext.h" #include <iostream> int main () { clsTouchContext* pContext = 0; //= GetContext ( iContextId …

Member Avatar for Rashakil Fol
0
103
Member Avatar for chris5126

Hi guys, Im trying to create a console app that will read from a text file and import the file into a sql database. I have completed the following already: Read from a text file and put out to console Read from sql database and put out to console Now …

Member Avatar for LizR
0
205
Member Avatar for asafoatse

am starting to learn use delegates ,but am having a problem to solve this code ,can u help , solve it and say what am doing wrong, thanks. here is what i did. namespace DelegateHello { class Program { public delegate void Hello() static void Main(string[] args) { Hello greetings …

Member Avatar for asafoatse
0
123
Member Avatar for binamy1

I have been developing my own compression algorithm for my school project.It is like LZ77 but uses fixed blocks,and a dictionary containing the position of the repeating block (dic.inpos)& where it is to be copied(dic.charpos);I am using Gnu C++,The program crashes or gets stuck on initializing in.. Also the program …

Member Avatar for binamy1
0
140
Member Avatar for Bojox

Hello everybody, I've been working in my college project which is a simple movie database. My problem is the following, 1) The user has to input a keyword in a textbox and then select a field (Title, actors, director, rating, release year and category) after that the user has to …

Member Avatar for Rashakil Fol
0
143
Member Avatar for tyoung4@runner

Hello everyone. I am having a hard time getting this program to run w/o an infinite loop. I have been in my C++ class for a month. I think my test expression is incorrect, but I've tried what I think it should be. Problem: Write a program that asks the …

Member Avatar for tyoung4@runner
0
267
Member Avatar for Rashakil Fol
0
129
Member Avatar for GadiK

Hi Guys. I wrote a nice MFC application. This app uses a number of threads and is meant to manage rs232 communication with a microcontroller. When I send or receive data Visual Studio informs me of a [B]Memory Leak[/B]: Detected memory leaks! Dumping objects -> f:\rtm\vctools\vc7libs\ship\atlmfc\src\mfc\thrdcore.cpp(306) : {184} client block …

Member Avatar for Salem
0
893
Member Avatar for shahab.burki

Hi, I am using Visula C++ and building LinkedList. But I am studk. Please look at this if goes something wrong. Please mention it. Their are are two classes I am using for it. The first it Data Class and other one is Node class. Note that both classes are …

Member Avatar for death_oclock
0
173
Member Avatar for bojomojo

Hello I need the user to input for example a time format HH:MM(AMorPM) or a complex number format: X+jY Then I want to read HH in and int and MM in another int and the same for the complex number example. I am aware I should use delimiters, but i …

Member Avatar for ArkM
0
206
Member Avatar for weblover

hi all,i have a java project, i want to read records from a data base(access) and then put them in a container with check box within each record..but my code is only displaying the last record of the table..i want each record to be displayed on a line..please help me …

Member Avatar for weblover
0
99
Member Avatar for shasha821110

Hi, all i have one project about doing pizza ordering system using PHP+XML So about the design website part i already have bunch of ideas. The part make me stuck is the XML part. The following is what required: [LIST] [*]. [/LIST]Spend some time thinking about how best to represent …

Member Avatar for shasha821110
0
636
Member Avatar for alphabetanm

My html/javascript code will not run and I am frustrated so I am not going to be able to understand why the code is not running. We were introduced to functions and here is my attempt. When I run the code in Firefox/Mozilla I receive an error stating that Grades …

Member Avatar for alphabetanm
0
89
Member Avatar for lancevo3

I am writing a program for a class and I am having a problem that seems very simple yet I can't place my finger on it. I have to decode a message and everything decodes right except what is already there and should be showing up in the output which …

Member Avatar for vmanes
0
129
Member Avatar for Dan301978

Hi guys, I wonder if you can help? I'm keen to get started as a .NET programmer. I'm half way through a book called 'Head First C#' which deals with Windows Forms programming. However, I think I need to go on a different tack in order to pass the first …

Member Avatar for ChaseVoid
0
140
Member Avatar for chris5126

Hi guys, I have a program im writing that needs to look for a file in a certain directory then when it find the file add the contents to a database. I have the program working which does this however the filename changes depending on when it was created. The …

Member Avatar for JerryShaw
0
194
Member Avatar for raghavendra83

Hi All, I am trying a simple program in PERL, but unable to get it working [CODE] $log="test.log"; open(LOGFILE, $log) or die("Could not open log file."); foreach $line (<LOGFILE>) { chomp($line); if($line eq "Raghu") { print "Found a group\n"; $var=<LOGFILE>; chomp($var); print "$var\n"; } } [/CODE] Whenever the line contains …

Member Avatar for KevinADC
0
184
Member Avatar for smoore

Okay I am writing a program that, in the end, will bring up a GUI window and ask the user what type of shape they want to make. The choices are line, circle, ellipse, rectangle, and polygon. When the user selects a shape they are then asked some key information …

Member Avatar for smoore
0
1K
Member Avatar for mona515

I seem to have done something wrong, but I can't figure out with it is. Everytime I compile I get the error `"reached end of file while parsing"`. Can anyone help me find where this error is? public class ElectricBill { private double k; private boolean s; public ElectricBill(double pKwh, …

Member Avatar for verruckt24
0
231
Member Avatar for chris5126

Hi guys, Very new to sql and my question is prob very basic. I have a table desing shown below. I will using a c# program to add new rows to the database but i only want to add a new row if the hostname doesnt currently exist in the …

Member Avatar for chris5126
0
131

The End.