132,726 Archived Topics
Remove Filter ![]() | |
I am working on condensing my code for a project. Is there a way to print multiple primative types of arrays with the same method? I know you can with using "Object" but these are primative. Should I change them to Integer, Double, Boolean, etc and do it that way? … Software Development java | |
Hello ,,, am having trouble while making a drag and drop label i wrote a code i'v seen on youtube , but after compiling i had punsh of Exception and i don't know why !! can any one help me writing a drag and drop code , i'll post the … Software Development java java-swing | |
Hi All, I would like to know how to create freight invoice.. In invoice we want a table with 3 columns first column wil include type of charges second column will include taxable charges with amount in rs third column will include non taxable charges with amount in rs Then … Software Development vb.net | |
Hi. I am wondering if a log file can be created in a header which is associated with a try-catch block. Below is my stripped down code for the log_header.h and log_test.cpp Here is log_header.h #include<fstream> #include<iostream> using namespace std; class thrower{ fstream myfile2; public: void errormessage(); }; void thrower::errormessage(){ … | |
Is there any way to create a button which basically clears a entire table in your database? I was hoping to have 2 buttons, 1 to empty a table 1 to fill the same table again. The idea is to store a year long values, and at the end of … Software Development vb.net | |
Good morning, hopefully I have this in the correct topic! I have a need to delete a specific URL shortcut that would be located on users desktops before copying out a new shortcut to the 'All Users' desktop. I have found the vbscript code below to delete a .lnk from … Software Development vbscript visual-basic | |
/* * @author JDickerson * Created on 4 Aug 2008 */ package com.jjpeople.addressbook.gui; import com.jjpeople.addressbook.lineformatter.LineFormatter; import com.jjpeople.serviceworker.gui.GuiException; /** * This application uses a Service to Worker pattern which is located in the * package: com.jjpeople.serviceworker * <p> * This interface models the Gui. * * @author JDickerson * Created on … Software Development gui java user-interface | |
We have a programming assignment for my Java Programming class and I can't figure out to fix my output. Here's the code: class Box { double width; double height; double depth; double w2, h2, d2; double v2; Box() { } Box(double w, double h, double d) { width = w; … Software Development java | |
What should I be using? Should I be using _T? or L? Or Neither? I know some functions end with the A for Ansi and some end in W for the Unicode version but I have no clue what I want to use. if I use _T would I have … Software Development c++ | |
1] One Windows Form: datetimepickers to accept fromdate and todate respectively. Crsyatl Report Viewer Button to show the Crystal Report. 2]Crystal Report How to do the coding? I tried from my side and also some1 in this forum also helped it but still not able to do it. | |
Hai i need help in C++.. this is my code. By using this code I have to alter it and do Evolutionary Text/ Poem. The poem is : **“Berburu ke padang datar, Dapat rusa berbelang kaki, Berguru kepalang ajar, Bagai bunga kembang tak jadi.” ** **There are 3 files.. Evo0.cpp(below … Software Development c++ | |
we need to solve the following question. Write a program that asks the user for a word, and then prompts a user for a letter. Your program should count the number of times the letters entered appear in the word, and then continue prompting for new letters. The program should … Software Development c++ | |
How to share variable between multiprocessing and Pyside application. I am a newbie.Can anyone help me?Any suggestion will be appreciated.Thanks very much. This is my demo: #!/usr/bin/env python #coding:utf-8 #demo:pyside gui application communicate with multiprocessing.Process() import sys,time import multiprocessing as mp import logging,logging.handlers from PySide.QtCore import * from PySide.QtGui import … Software Development gui python queue window-manager | |
Hello. I was searching on how to copy the string from the first point in the file to the index of comma -1. I have a .mrk file that i would be reading. My idea is that the loop will go through the file and find the comma. There will … Software Development c | |
how to create a java program that ask the user to input a string and to input a number of how many times you want to reverse it at right to left? please help me with creating this program.. sample: Enter word: computer enter number of rotation: 3 output: tercompu Software Development java | |
Hi. I need help with the code for a fish race The question I was given is as follows: *You are asked to design a “Fish Race” game. Two fishes of different colors and shapes will race until one of them reaches the race’s end line. Your program should display … Software Development assembly | |
![]() | Hi, I'm experimenting with A Star pathfinding. I'm having a problem with a function. I'm getting the next error after running it: > Unhandled exception at 0x76ec15de in A Star Pathfinding.exe: 0xC0000005: Access violation reading location 0x08e463a8. the function's code is: void addAdjacent(list* oList, list* cList, int tileMap[][40]) { node* … Software Development c++ ![]() |
![]() | I'm coding a calculator with display and controlls in separate forms. I've hit a block on several bugs but the most promenient one is: - The calculator couldn't process more than ONE operator (2+2=OK but 2+2+2=4=NOT OK) - sqrt function is quite broken [Sollution and related files (VC# 2010)](http://www.mediafire.com/?fpwt38lohw98n4o) It's … Software Development display ![]() |
Design a Java Application project for maintaining Employee Information in a company. Follow the instructions below for further details. (i) Create a class named EmpDetails. (ii) Declare variables emp_name as String (To hold employee name), emp_id as Integer (To hold employee id), emp_desig as String (To hold designation of the … Software Development database-design java | |
I have a very long code line in ASM (a very long array declaration). Is it posible to break it into multiple lines? thanks! Software Development assembly | |
hi, how can I find the adress of all connected machines to the network,with InetAdress and thanks for any help Software Development java | |
double a [3]={1.1,2.2,3.3}; cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl; a[1]=a[2]; cout<<a[0]<<" "<<a[1]<<" "<<a[2]<<endl; ans to the above is 1.1 2.2 3.3 1.1 3.3 3.3 I am new to array. Please expalin why a[1]=a[2] gave me 3.3 3.3. thank you Software Development c++ | |
Hi there, I'm new to this site. I wish to know if someone knows how to change the DOS prompt screen size in C#, as it can be done by right-clicking the Command Prompt window handle > Properties> Layout. I want to at least initially set the screen/buffer size to … Software Development | |
Dear all, How to read a file with particural encoding like UTF -8 or UTF- 16. Do I need to use some special library? Software Development c++ | |
Hi all, I have a rather basic C/C++ question about the priority of the ++ operator in regard to pointers. Note the following code (joining two strings): #define LENGTH 255 void mystrcat (char *base, char *add) { while(*base) ++base; while( *(base++) = *(add++) ); } int main() { char name[LENGTH]="Feline"; … Software Development c++ | |
Hi All I am working on a html parser 'selenium webdriver' and on one of the pages I found an image with text on it.The page contains other information as well. I tried to see the page source if I can extract the text on image using webdriver but I … Software Development image open-source python | |
int Finish()//outputs stored values to file { ofstream walletfile; walletfile.open("C:/accounts/wallet.acnt", ios::trunc); walletfile << wallet; walletfile.close(); ofstream accountfile; accountfile.open("C:/accounts/account.acnt", ios::trunc); accountfile << account; accountfile.close(); ofstream savingsfile; savingsfile.open("C:/accounts/savings.acnt", ios::trunc); savingsfile << savings; savingsfile.close(); return 0; } I am a brand new programmer, just learning from the web, i wrote this function as … | |
Hello. I can't seem to figure out why the following code is producing a NullReferenceException. I have checked, and have confirmed that the arrays are in fact not null, all of the elements contain data. So why does VS think something's null? Thanks for your help. // This line produces … Software Development | |
I have my form checked if it's dirty when a user goes to close it. If its dirty is true, the user is asked if they would like to save the data. When they click yes, the 'save event' is called. The problem I'm having is trying to get the … Software Development vb.net | |
hello all I try to store DateTime to mysql , but when i open the table in mysql command line I see that the hour is decrease 12 by it self , why this can happen ,? my insert command is insert = "Insert into Table1(DtIn)values('"+ hin.ToString("yyyy,MM,dd,HH,mm,ss")+"')";; hope someone help … Software Development mysql | |
I am experimenting with sendmessage from a simple form to control the various buttons in iTunes. The problem is some sendmessages appear to work just fine and others don't. Now before we get into "do you have the right handles child windows etc." Heres whats weird, I can take my … Software Development vb.net | |
Is it necessary to seperate the headers from the source? For example I don't know why but I love to do: //Foo.H class Foo { Foo(){} ~Foo(){} void Func() { //......... //......... } void Func2() { //........ //........ } }; Instead of doing: //Foo.H class Foo { Foo(); ~Foo(); void … Software Development c++ | |
Hello everyone, can some one help me with the code to create a folder by code in vb6? The scenario I have is that I have an application that allows users to login but waht I need specific is to create users forlder during registration so when logged on can … Software Development visual-basic | |
I'm trying to learn how to implement a LinkedList by hand and I notice that when the LinkedList needs to be traversed with a for loop that instead of the usual for loop structure used for traversing arrays.... for (int i = 0; i<length; i++) what is used instead in … Software Development java | |
Hi, Can you tell me how can I make my application recognizes when the user presses a button on keyboard? *For example*: presses 'S', application prints "Hello.". I need this information for BorlandC++, but it would be useful even though you provide the same for VC++ :) *(I am not … | |
Could someone tell me why I get the error "Operation failed:Index and lengt must refer to a location within the string Parameter:Length". It happened at this line: TheDataGridView.Rows[j].Cells[i].Value = tmpStr.Substring(0, 709); tmpSize = g.MeasureString("Anything", tmpFont); RowsHeight.Add(tmpSize.Height); tmpSize = g.MeasureString(TheDataGridView.Rows[j].Cells[i].EditedFormattedValue.ToString(), tmpFont); if (tmpSize.Width > 710) { string tmpStr = TheDataGridView.Rows[j].Cells[i].ToString(); TheDataGridView.Rows[j].Cells[i].Value … Software Development c# | |
Im making a program in wich I need to monitore (import) a variable (number from an other program window every time the variable changes. There are very much other information in this window but I only want this number that is occuring at a sertain position in the window. How … Software Development c++ | |
How can i ready physical layer of osi through c language? Is there any other language to perfom this task? Software Development c | |
Hello, I'm sorry about this being a kind of a raw question, but I'm just not really even sure which direction is right to head at. Anyway, let me explain the problem; I have a game, written in C++/SDL for PC, and I'm looking at possibilities of integrating Facebook activity … Software Development api | |
I have an inventory system I am making for my business. I have a form that has a listbox control that lists all the orders that have been submitted. I also have a datagrid that lists the items in the order based on what is clicked in the listbox. I … | |
So I have been working on this dice roller for a while but am stuck. My form looks like this, a comboBox1 where you can pick numberOfSides on the dice, a textbox1 where you type the numberOfTimes it shall roll the selected dice, a button1 and a richTextBox1 to display … | |
When i compile my java programs (.java) they all compile into .class file. when i try to run the class file with this command : " java C:\Users\User\Desktop\JavaProgram" It gives the following error: "Error: could not find or load the main class" how do fix this and how do i … Software Development java | |
I have ecidentaly set the .class files to open with notepad everytime. How do i set them back to defualt? i have tried to manually browse to find with what it should open but i dont know with what it should open? Thanks... Software Development java | |
hello I am following this tutorial on how to scrap website information http://www.newthinktank.com/2010/11/pyt ... -scraping/ this is my code: EDIT: do not post off site, moved here #! /usr/bin/python from urllib import urlopen from BeautifulSoup import BeautifulSoup import re def cleanHtml(i): i = str(i) # Convert the Beautiful Soup Tag … | |
need some help on the coding can some plz help the question is: A year is a leap year if it is divisible by 4, unless the year is a Century, in which case it is only a leap year if it is divisible by 400. Write a function which … Software Development python | |
I've run into a couple of errors within my program which reads a text file. When a user clicks a button to read the textfile and an exception is thrown, i have it displayed as a string in a message box, but an additional message box related to runtime error … Software Development vb.net | |
I am developing an java application for for login autentication form, I have pre saved username and password in my database. When admin enter his credetials, it validates to my DB and gives access to actual application Now, my application is used by admin and database is managed by DBA. … | |
i have a program that converts a text string into a hash sequence using parseInt(). but parseInt() keeps throwing a NumberFormatException. any ideas why? is it becuase i'm using <= instead of = in my for loop? EDIT: ingnore r. it's not being used. sorry. package test; import java.util.Random; import … Software Development java | |
Hi, I need to write a program which can decrease the free disk space. For eg, if the free disk space is 5GB, the application should ask the user how much space do you want occupy. Application should take the input eg, 2GB and decrease the disk space to 3GB. … Software Development java | |
Can anyone explain to me why this simple program won't print anything? #include <stdio.h> #include <ctype.h> char * mkUpperCase(char *); int main(void) { char name[] = "information"; printf("%s\n", mkUpperCase(name)); return 0; } char * mkUpperCase(char *s) { while(*s != '\0') { *s = toupper(*s); s++; } return s; } Software Development c |
The End.