132,726 Archived Topics
Remove Filter ![]() | |
Hello there folks, I'm trying to make myself more C# literate. I've decided to branch myself towards the GUI subject for the moment and get myself more familiar with dialog boxes and what not. So for the moment, I've created a form which has a RichTextBox. And I've added a … Software Development gui | |
Hi guys, i have a String time 23:00, how do i subtract it against a String today's time and get the remaining minutes? do i parse the String into a date type? any ideas is appreciated, thanks. [CODE] public String getTime() { SimpleDateFormat sdf = new SimpleDateFormat("kk:mm"); Date s = … Software Development java | |
I need to convert text to image, using specified fonts, size, etc. Looks like everything is ok when using standard DrawString method but, when I'm trying to do it under Windows 7 I have my picture blurred this is a screenshot from Windows XP / Windows 2008 server [url]http://testmyblog.ho.ua/pictures/xp.png[/url] and … Software Development | |
Hi guys. I've just installed libnetty-java package on my ubuntu $ sudo apt-get install libnetty-java and then try compile this code [CODE] import org.jboss.netty.channel.ChannelHandlerContext; import org.jboss.netty.channel.ExceptionEvent; import org.jboss.netty.channel.MessageEvent; import org.jboss.netty.channel.SimpleChannelUpstreamHandler; ... [/CODE] It throws this error: javac QuoteOfTheMomentClientHandler.java QuoteOfTheMomentClientHandler.java:1: package org.jboss.netty.channel does not exist import org.jboss.netty.channel.ChannelHandlerContext; ^ QuoteOfTheMomentClientHandler.java:2: package org.jboss.netty.channel … | |
I'm working on an application that has a slew of database connections throughout. The application is being developed on a system which is 100% disconnected from the server on which it will run. Every time I open a form object or attempt to compile, I have to wait n seconds … Software Development visual-basic | |
hello , i used an array using aggregration in OOP in order to insert multiple datatypes in the array and i wanted to convert it into dynamic array , so as to edit the entries and here is the code of the 2 classes and the main function [CODE]#include<iostream> #include<string> … | |
Hi, I'm currently trying to create a program that will log into the web page given to it if supplied with the user name and password. but the problem im having is sending the POST request to the website and then retreiveing the URL it sends back to load in … Software Development html-css java web-browser | |
Hi, I've been using VB.NET for quite a while now, and would definitely consider myself beyond a beginner. However, I have never attempted to use Data binding before, and have read [I]lots[/I] of stuff online about it, but I [I]still[/I] don't understand quite how it works. I have a form … Software Development vb.net | |
hello everyone, i need a tips about "search coding" im using adodc connection: [CODE] Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\sistempengurusanrumahsewa.mdb;Persist Security Info=False" Adodc1.RecordSource = "Select * from Owner" Set DataGrid1.DataSource = Adodc1 [/CODE] im trying to make "search" button to search a Name in my datagrid1. can anyone … Software Development visual-basic | |
Hi, I am developing a new Application and am getting the below error Error Description: When I click the record in DataGrid, then the values should be populated from DataGrid columns to respective Text boxes. However if i click in the datagrid when there is no record then there should … Software Development open-source visual-basic | |
Hi I am displayed a HTML file in web browser. Now i want to edit the matter which are displayed in web browser. e.g. font style ,color etc. I am used vb.net 2008 Can anybody help me! Software Development vb.net web-browser | |
i want my data can be used over every function, so i need a class to capture them, am i correct?? here is my outline, im not sure if i use it correctly, please help!! [code=c++] class CLASS { private: int * (something) string * (something) public: void (function) () … Software Development c++ | |
Hi I am trying to compile and run my prog3.c program, but I am getting the compiler errors below. I have tried to reference the information by doing #include "node0.c" etc., but no luck. Any ideas on how to fix this problem? I attached the files below that I am … Software Development c | |
[CODE]#ifndef _EMPLOYEE_H #define _EMPLOYEE_H #define _ProductionWorker_h #pragma warning(disable: 4996) #include <cstring> #include <iostream> #include <cstdlib> using namespace std; //const int SIZE = 40; // Array Size class Employee //Definition of Employee Class { private: //char employName[SIZE]; char *employName; int employNum; int hireDate; public: Employee(); //Constructor Employee(char *e) {employName = new … | |
I use visual baisc 2008 if i use "mouse click" or "use arrow keys " in the datagridview1 then i want that [COLOR="Red"]always the focus [/COLOR]in on the textfield => [COLOR="Green"]Number_Pieces.text[/COLOR] Is use this code : [CODE] Private Sub Datagridview1_CellMouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles Datagridview1.CellMouseClick [COLOR="green"] … Software Development vb.net | |
I am using Windows XP 32-bit, VC++ 2008 with OpenGL and the Windows API. When I run my program, it seems to work fine, but whenever I click anywhere on the title bar of the window, the program exits. I have no idea where to start to look for the … Software Development api c opengl windows-api | |
Im trying to make my program to either open or create a file if it does not exist, in "C://". [code] printf("Filename: "); scanf("%s",filename); FILE *fil; fil=fopen(filename,"a+");[/code] This code opens or creates a file in the same folder as the program. What i want is something like this: [code] printf("Filename: … Software Development c file-system | |
Q1: CommissionReport class JavaAuto is a used car dealership that pays its sales associates by sales commission. Your application will produce a sales commission report as shown in the example screen shots. Your solution will contain three classes. The MyArrays class will contain several static methods for searching, sorting and … Software Development java | |
hi, I would like to load data from sql to datagrid. But there is a problem at highlighted place. [CODE] Sql = "Select [KioskID] As [KioskID], " _ & "[KioskLocation] As [KioskLocation], " _ & "[TransactionNo] As [TransactionNo], " _ & "[SerialNo] As [SerialNo], " _ & "[TransactionDateTime] As [TransactionDateTime], … Software Development data-structure vb.net | |
I need help! The Python program I need to write accepts the price of an item, the amount paid for it, and then calculates the change in the smallest number of bills/coins. I'm so lost! Can anyone help? Thanks! Software Development python | |
Hi is there an accepted way to calculate the number of times a specific day would come round in a given timespan? For example if we have 32 as a variable that represents the number of weeks I would then need to find out how many times the first of … Software Development | |
how do i transfer the contents of a string array to an int array in relation to my code below: string[] sample= { "J♦", "3♦", "4♥", "Q♦", "9♥" }; convert(sample) [CODE] void sample(string[] straight) int[] straight2 = new int[straight.Length]; for (int i = 0; i < straight.Length; i++) { if … Software Development | |
I need help the word class for a hangman program here is the code i have so far: /** * File: Word.java * */ package csc212project05; import static java.lang.System.out; import java.util.ArrayList; import java.util.Scanner; public class Word { private static java.util.ArrayList<String> wordlist = null; private char[] lexeme = null; // the … Software Development java | |
![]() | I need to change this from a bubble sort to a selection sort but i don't know where to start. Also I don't understand the difference between the two sorting methods, and which one would be more efficient. Thanks [CODE] import java.io.*; import java.util.Scanner; public class phase1 { public static … Software Development java |
hello all i m new to shell scripting.i have seen th code substitution like a=`ls -l` and a=23 R=$(a/23/bb) first time we use ` ` and second time we use $ . can anyone tell me Why so? Software Development shell-scripting | |
Okay so I have been debugging for hours and I don't understand any of this...I'm kinda mad about not knowing and when I research it all I find how it works but not really how to implement it. I know the general theory of a binary search tree but I'm … Software Development c++ | |
Hello, i'm new to this forum and this's my 1st time posting a code. my issue is that i have a code that should read from a file called ( ex: word or text), but it does not read the file it jUst gives me the error (could not open … Software Development c file-system | |
[CODE]#include <iostream> #include<string> using namespace std; class Book { private: string title; double price; public: Book(); void setTitle(string s); void setPrice(double p); string getTitle() const {return title;} double getPrice() const {return price;} bool hasKeyword(string key); }; Book::Book() { title="None"; price=0; } void Book :: setTitle(string s) { title=s; } void … Software Development c++ | |
Hi, I have am building an uninstall program and can't get the process to stop so that the files can be deleted. I am using code that I copied from a sample and it works fine with any process as long as there is no space in the name. works … Software Development vb.net | |
I am working vb.net application vs 2005,I am using culture ("ja-JP") japan in my application but i need to display date in this format("dd-MMM-yyyy") how to change it? Thanks Software Development vb.net | |
[B]label10 displays which is the highest number label12 displays which is the lowest number label14 displays which is the number that is duplicated pls help my codes don't run 100% correct.:'([/B] [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Label6.Text = Val(TextBox1.Text) Label7.Text = Val(TextBox2.Text) … Software Development vb.net | |
hi, i am final year student and i need to start on my project in 3 weeks time. Wel i love programing with java and i need to learn more on the depth area's.So doing a project using java will help me a lot. So what i am asking u … Software Development java | |
Hi there, I am getting a 'Cannot find symbol error' on an array in my "ViewContact" Class. The array has been created in the "MainScreen" class. Below I have pasted the code for both classes as to provide you with as much information as possible: The MainScreen Class: [CODE] package … Software Development gui java java-swing | |
[B]When the textboxes are 49 below or 100 above the message should be "Invalid Grade Input". When the textboxes are blank the message should be " No Grade Input". When the textboxes are 49 below or 100 above and there are some textboxes that are blank it should be " … Software Development vb.net | |
Hi there guys, how the hell i am able to create a UNIX window, I mean i am pissed off from that console, and how can I use GTK ? Thanks in advance! | |
Hi everyone! Im trying to fill up a tree with the entries from a text file and I can read the file and I know how to make a tree object. I just dont know how to combine these two to populate the tree. Any ideas are appreciated! Software Development java | |
[CODE] bool isSame=false; do { bool isSame=false; for (int i=1; i<=corners; i++) { cout << "Please enter the cordinates for corner " << i << ':'; cin >> x[(i-1)] >> y[(i-1)]; } int k; for (k=0;k<(corners-1);k++) { int j; for(j=(k+1);j<corners;j++) { if ((x[k]==x[j])&&(y[k]==y[j])) { isSame=true; } } } if (isSame==true) … Software Development c++ | |
i just got an exercise i am asked to do and i have no idea what to do. I am asked to use recursive to print a pattern without using loop: * ** *** **** **** *** ** * And also : **** *** ** * ** *** **** Any … Software Development c++ | |
#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () { int Count= 0, oldCount, lineNo= 0, pos; string searchStr, testStr, testSearch, fileName, intStr; cout << "File name? "; getline(cin,fileName); ifstream fin(fileName.c_str());; if (!fin) { perror(fileName.c_str()); exit(1); } cout<<"Search string? "; getline (cin, searchStr); testSearch = … Software Development c++ | |
Hello, first time here.This program reads in a file of different names and uses void options to put them in various order. On line 111, 116, 121, 126, 131, I am not sure what to put inside the parenthesis. [EX: option1(NotSureWhatToPut)]. I have tried to put 'nextStudent' and get a … Software Development c c# c++ data-structure open-source | |
[CODE] #include<iostream> #include<cstddef> using namespace std; typedef int* IntArrayPtr; void getSize(int& size1, int& size2);//Function declaration for getSize void createArrays(int& size1, int& size2);//Function declaration for createArrays void fillArrays(int& size1, int& size2);//Function declaration for fillArrays int main() { int size1;//Variable that will be passed from one function to another int size2;//Variable that … Software Development c++ | |
Hello, My assignment is to create a christmas tree using methods with defined parameters. 1) Print the tree at position 50 (50 spaces in) 2) Call the following Triangle (2,6) (six rows without the first 2 printed) 3) and the 1st row of these cut off triangles with the symbol … Software Development java | |
I am currently in a C++ class. We have using Python and my assignment is to do a lab that I have done in python 2.5 in C++, although I have no idea where to begin besides opening Dev C++ or Bloodshed. Could anyone please tell me how I begin … Software Development c++ | |
I'm working on a really basic text editor to save and open txt files. On my text area setLineWrap, it's giving me a "misplaced constructs" and "delete token" for the period and (true) For why? [CODE]/**Matthew Schrum *11/18/2010 */ import java.awt.*; import javax.swing.*; import javax.swing.border.*; import java.awt.event.*; import java.io.File; import … Software Development java java-swing oop | |
I'm curious on how would one accomplish event driven programming from a language like python (or other, but for simplicity sake, python will do.). By that I mean providing a system that allow programmer to hook functions to certain events, and fire those events when triggered. (Basically the APIs behind … | |
I am in need of an explanation on how to pass information from my input file to my program. This is what I'm trying: [CODE]#include <cstdlib> #include <iostream> #include <fstream> #include <string> using namespace std; struct BevInfo { char bevName[11]; float bevPrice; int bevLeft; }; int main(int argc, char *argv[]) … | |
Hi! Could someone please explain me the difference between the following three approaches to inserting nodes in JTree? I cannot understand why the insertNodeInto method doesn't work in the recursive procedure (Approach Nr1), but it works if it is executed from JButton (Approach Nr2). So, Recursion itself (Approach Nr1) works … Software Development java | |
hi guys, good eveningn, ive been trying for two days now and i haven had no luck with this, im trying to compare 3 arraylists to filter by town, and age and show all the peoples names specifically from that town, heres my code any help would be appreciated. heres … Software Development java | |
How can I go about padding an array of a certain size so that it will align with another one? For example I have an addition problem I am working out and cannot find the solution to. When my program prints it out it will look like this: 1234567 should … Software Development c++ |
The End.