43,549 Solved Topics
Remove Filter ![]() | |
hi! well, i'm just a beginner in visual basic and i have this problem in coding the calendar control. I want to reserve the dates and store it on a database. so when there will be another reservation, i can easily know if the date is already taken. I don't … Software Development visual-basic | |
Hello everyone, I am currently in a C class and I am having trouble with the following exercise. I have started but I am stuck, can anyone help? You are developing a database of measured meteorological data for use in weather and climate research. Define a structure type measured_data_t (which … Software Development c data-structure | |
Hi, Can anyone advise on how I can convert a string to a hex string? [B](And subsequently perform an AND operation on two hex strings.)[/B] I have a string value passed in (e.g., 1006), and I want to turn that into hex (0x1006). I have tried the following: [CODE] [B]// … Software Development c | |
[CODE]import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.io.*; import java.sql.*; public class RefHistTest { public static void main(String args[]) { int iw2, ih2; Image img2; int pixels2[]; double[] hist2 = new double[256]; int y; ResultSet r; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection c=DriverManager.getConnection("jdbc:odbc:CBIRS"); Statement st=c.createStatement(); r=st.executeQuery("select Images from ImageTable"); byte[] bytes=null; while(r.next()) … | |
I got an assignment to be done.. Given a sequence of positive integers. You need to find the number of triples in that sequence. For this problem, (x, y, z) constructs a triple if and only if x + y = z. So, (1, 2, 3) is a triple, where … Software Development c++ | |
hello guys...i have a LPTSTR variable and I want to show that on console how do I do that..Here is what I have but, off course it does't work..if it is tooo simple question, plz excuse me...thanx [code=c] lpszDevName = (LPTSTR)((LPBYTE)lineDevCaps + lineDevCaps->dwLineNameOffset); printf("%s",lpszDevName); [/code] Software Development c++ | |
im getting this error messages "end of statement expected" Public Class Form1 [U]Inherits System.Windows.Forms.Form[/U] that is what is causing it Please help me fix it thanks Adam Software Development vb.net | |
hello can you help me how can i print asterisk to form triangle like this [CODE] * *** ***** ******* [/CODE] here is my code [CODE] int main() { for(i=0;i<10;i++) for(j=0;j<i;j++) { printf("*"); } printf("\n"); getch() return 0; } [/CODE] please help me hoping for your positive responds...thank you in … Software Development c | |
I'm stuck on the fifth stage of my assignment, the question is; 'Add in code to the key-press event handler so that the 'person' is constrained to move within the array and cant' walk through a wall.' I'm not sure how i'm supposed to update the curindex, i really need … Software Development python | |
I have a datagridview control on a form that I'm trying to select programmatically. My problem is, it's selecting the row in the grid when I use Datagridview1.rows(Index).selected = True However there is a margin on the left side of the datagrid that only get's the focus (or the little … Software Development vb.net | |
hi, Does anyone knows on how to update records from 1 text file into 2 different sql database. Name of the sql Table is Payment2SQL_Success_P() & Payment2SQL_Success_E() is the code below is on the right track. [CODE=vb.net] Select Case "AGENCIES" Case AGENCY_AV Or AGENCY_SR Or AGENCY_IP Or AGENCY_TM Or AGENCY_MS … | |
everything worked for me in turbo c++ but not in g++. tell me why do i always have to use "using namespace std;" while compiling with g++? also there is no conio.h, so how do i use the command: getch () then? Software Development c++ | |
Can someone help me solve this! thx Conditional structure , include also the console result. 1. Using switch case design and write a java application that takes as input a single letter and displays the corresponding digit on a telephone. The letters and digits on a telephone are grouped this … Software Development java | |
Hello Members, I am trying to multiply two matrices using multithreading. I get a NullPointerException on the line that is commented in Bold. Following is the entire code. Any input is much appreciated. [CODE]import java.lang.*; import java.io.*; public class Matrix_Mult extends Thread { static int a[][]; static int b[][]; static … Software Development java multithreading | |
I am using this code to clear a form but it is throwing an error. Any help is appreciated. [CODE=c sharp]public static void ClearForm(Control parent) { foreach (Control ctrControl in parent.Controls) { if (object.ReferenceEquals(ctrControl.GetType(), typeof(TextBox))) { ((TextBox)ctrControl).Text = string.Empty; } else if (object.ReferenceEquals(ctrControl.GetType(), typeof(RichTextBox))) { ((RichTextBox)ctrControl).Text = string.Empty; } else … Software Development | |
Hi im writing a function in a program that lets the user delete a specific record in a file, the user is also able to recover this record. The easiest way i found is when the record is deleted, the record will be set to deleted using bool. Then in … Software Development c++ file-system ios | |
Hi! I've searching for python IDE's and I've not found anything like NetBeans for java. I downloaded Dr Python but was too simple, I tried to install PyDev on Eclipse but I got some errors. I saw some screenshots about SPE and I said whoa! that seems good, but I … Software Development gui ide java-netbeans python | |
Alright, making a dice roller...because I need a dice roller. Anywho, in the process of testing it came across an exception that I can't figure out how to remedy. The exception gets thrown at line 33 below: Source code: [CODE]import random #PUT FAILSAFES IN THIS FUNCTION. #gets dice information def … Software Development python | |
so i wrote this small piece of code. it simply waits for the user to enter a command, and then, depending on the command, a different message appears. when i enter the simple words like debug and execute, it does what i want it to do. now, when i try … Software Development c++ | |
I'm trying to write a code for class and after compiling the first half with g++, just make sure it'd work so far, I get all these errors. After looking them all up I don't understand why i'm getting these errors or how to fix them. If anyone could please … | |
Hi everyone I have a project that I have created in Netbeans. I would like to deploy it as a JAR file, so i have "build"'ed it and I have a jar which runs nicely in the /dist folder. Problem is, the program in question requires reading from and writing … Software Development file-system java | |
[CODE]/* Name: Copyright: Author: Date: 14/09/10 21:17 Description: */ #include<iostream> #include<istream> #include<ostream> #include<string> int c_f_fraction(); int c_f_decimal(); int c_f_percent(); int convert_to(); int convert(); int help(); std::string convert_code(""); float c_f_fraction_1(0); float c_f_fraction_2(0); float c_f_result(0); float c_f_decimal_1(0); float c_f_percent_1(0); int help_code(0); int main() { std::cout << "\nWhich would you like to convert, … Software Development c++ | |
Hi, everyone! I'm in search of an associative container that does not need an implementation of operator< for the key type. std::map and std::set requires that, so I think that I need another kind of associative container. I can always implement my own contained using a vector of pairs, but … Software Development c++ | |
Hello, everyone! I am unable to start a OSGI bundle. I'm using Apache Felix and this is my bundle: 1) Activator.java [code=java] package Example2; import java.util.Properties; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import Example2.Service.IDictionaryService; /** * This is the bundle. * @author Pierre-Alexandre * */ public class Activator implements BundleActivator { public … | |
I designed to look like that picture click here: [url]http://i195.photobucket.com/albums/z285/boiishuvo/eg.jpg[/url] But I got two errors shown below: Pizza.java:150: cannot find symbol symbol : constructor Labels(java.lang.String) location: class Labels localJPanel5.add("North", new Labels("PIZZA")); ^ Pizza.java:187: cannot find symbol symbol : constructor Labels(java.lang.String) location: class Labels localJPanel12.add(new Labels("PRICE")); ^ Can anyone fix that … Software Development java java-swing | |
Hello, i was trying to generate a series as follows: 111 112 113 121 122 123 131 132 133 and this is what i tried: [CODE]#include <stdio.h> int A[3]; void func(int k) { static int level = -1; A[++level] = k; for(int j = 1; j <= 3; j++) { … Software Development c | |
Dear guys, Can anyone help me out to open up a windows default dialog box in C# to browse folder and the folder path be displayed in the lab/edit box. Regards, Ali Software Development | |
Ok. This is kind of a weird problem. I have a form in my program that I add more controls to in order to allow users to enter more data if need be. I also have a button that clears the form and resets it to its initial state. The … Software Development | |
I'm trying to program Tic-tac-toe. When I run my program, the X's and O's pop up in all sorts of strange locations, and they don't "settle" into their proper positions until the very last move of the game. Here is my code: [code]'''Tic-tac-toe. ''' from Tkinter import * SQU_SIZE = … | |
I am trying to create a switchboard button in Access 2007 that will open a password input box as a security for a form. The switchboard button calls a macro which will then invoke a macro to run the following code: [CODE]Public Function Password() Dim stDocName As String Dim stLinkCriteria … Software Development microsoft-access microsoft-office visual-basic | |
Hi, I wanted to created a java file base on the given javadoc below. I am currently stuck on the embezzle method. First, i don't understand what's the "BankAccount" in 'public void embezzle(BankAccount other)' do or is. Second, How can i add funds from the other account to the other … Software Development java | |
hi all, i am am working on a tax software that computes tax and gives the amount.since different goods have different tax percentages i would like when one customer buys goods with different tax percentage i can use the subtotal button to temporarily hold the tax value as he computes … Software Development visual-basic | |
So I'm looking to create a function that prompts the user to enter 'Y' for "Yes restart the program" and 'N' for No, do not restart. I know this should use the boolean operator, I'm just unsure as to how to implement it. I also know to encase the body … Software Development c++ | |
I want to create an application for ad-hoc network. I have a little bit good knowledge of java But I cant decide from where to start. Please Help me to start Software Development java | |
How do I a add a copy and paste function in a Tkinter text widget? | |
This is the code for a fractions program that is to add and subtract(i know it does not subtract yet) I am having error messages that I dont understand. [CODE]// File Fraction.h #ifndef FRACTION_H #define hbg_cmpsc122 #include <iostream> using namespace std; namespace hbg_cmpsc122 { class Fraction { private: int num; … Software Development c++ | |
please help me to install fonts in my website. can i put fontfile in my server and use in webpage. thanks in advance. jack Software Development vb.net | |
I am trying to write a function that calculates the sine of a given angle. The code works fine if the angle in degrees is less than 100...once the angle becomes greater than 100..the result is a large value. I don't know what I am doing wrong. Can someone point … Software Development c | |
So I have opened a file with the "open" command and I get a file descriptor. That means I have to use lseek rather than fseek, which is fine by me. But what if I want to know how long the file is or what if I want to know … Software Development c | |
[CODE]#include <iostream> #include <iomanip> using namespace std; void StartUp(void); void WrapUp(void); char ProgramName[] = "Assignment_3.cpp"; //Used to hold the program name void sentenceOne (); void wordOne (); void wordTwo (); void wordThree (); void wordFour (); void wordFive (); void wordSix (); void wordSeven (); void wordEight (); void sentenceTwo … Software Development c++ | |
I am doing this silly program as practice but am having problems with the condition in the if loop... Please help me. The condition after the color question goes directly to its condition without accepting an answer. [CODE]// Add directories #include <cstdlib> #include <iostream> #include <sstream> #include <fstream> #include <iomanip> … Software Development c++ | |
Hello all, I am writing a toString() i know how to do the basics off this but what im looking to know is how to put a line break between each set of information to get this public String toString() { return "ball pos:" + this.ball + "keeper pos:" + … Software Development java | |
Is it possible to write to the windows dos screen and display the results in a GUI? eg; [CODE] Console.WriteLine("ipconfig"); Thread.Sleep(1000); for (int i = 0; i < 5; i++) { textBox1.Text = Console.ReadLine().ToString(); } [/CODE] Software Development gui | |
Recently I have been writing my own Python editor for fun. I have came pretty far but now I have some issues. My editor object is in my notebook but wont go to the bottom of my window. I can get it to expand across the screen but not down. … Software Development python | |
Hi guys, i have a problem here i have a situation where i need to save all the images opened using PIL I have no idea how to do without displaying images on screen one by one and saving them Can anyone please help how to save them without switching … Software Development python | |
the question is this. suppose that i have got rowstart=8 rowend=6 columnstart=8 columnend=8 b=0 [CODE] while(pieces[rowStart-b][columnStart]==null && pieces[rowStart-b][columnStart]!=pieces[rowEnd][columnEnd] && pieces[rowEnd][columnEnd]==null){ // CHECKS THE UPPER ROW. b++; }[/CODE] Software Development java | |
I have a promblem with following case : i have a properties.txt that included: 10 Napier St. Palm Cove 350000 47 Darkien Cl. Smithfield Heights 265000 i want to write: On start-up, the program is to prompt the user for the property listings filename (the sample file provided is called … Software Development c++ | |
Hello, I have a problem with compiling my code... Platform: [b]Ubuntu Linux 10.04[/b] Compiler: [b]gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3[/b] IDE: [b]Netbeans 6.9.1[/b] My C program is required to exclusively deal with Unicode. I can use these functions just fine: [b][COLOR="Green"]wcscpy(), wcslen(), mbstowcs(), wcstombs(), snprintf()[/COLOR][/b] The problem seems to only be when … | |
I'm learning perl, been reading some pdfs and such which doesnt really help sink the info. So i decided to do what I did to help me with python, build something of a poker game. The cards are successfully dealt, now im working on splitting up the card terms to … Software Development perl |
The End.