199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for renzlo

Hi Java Developers, I don't know if this is the right place to ask but I hope It is. First of all this is not my programming language, I am an intermediate .net developer, I just came up with this problem that I need to solve which what the thread …

Member Avatar for renzlo
0
328
Member Avatar for sunny124

Hi, I am trying to return a ref cursor from a stored function but I keep getting this error message 'Specified argument was out of range of valid values'. The reference cursor does point to correct data, I used a anonymous block in oracle to test it out. How can …

0
100
Member Avatar for bhawna_5nov

here is the following code in java applet.. [CODE]//this is one applet which has to be opened when button is clicked... import java.awt.*; import java.applet.*; import java.awt.event.*; public class Order_info extends Applet implements ItemListener { private Label l,l1,l2; private TextField t=new TextField(); private Choice list; String s,selection; public void init() …

Member Avatar for NormR1
0
1K
Member Avatar for pritish.kamath

i wanted to display a pattern like this 4444 333 22 1 i used the following code import java.util.*; public class PatternExp { public static void main (String args[]) { Scanner src=new Scanner(System.in); System.out.println("Enter the number of lines needed"); int n=src.nextInt(); for (int i=n; i>0; i--) { for(int j=n; j>0; …

Member Avatar for pritish.kamath
0
129
Member Avatar for sing1006

`Public Class login Dim cnn As New OleDb.OleDbConnection Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim cmd As New OleDb.OleDbCommand If Not cnn.State = ConnectionState.Open Then cnn.Open() End If cmd.Connection = cnn If cmd.CommandText = "SELECT UName FROM Account WHERE UName =" & Me.UsernameTextBox.Text Then …

Member Avatar for adam_k
0
143
Member Avatar for rotten69

Hey people, I am wondering what a good editor is that supports HTML5, CSS3, cakephp and a few other plugins ? I'm using Eclipse for php which supports HTML5... At the same time, I trying Aptana Studio3 which supports CSS3 ... I need one that supports all.. Or even Plugins …

Member Avatar for rotten69
0
174
Member Avatar for prerit

I have a project on image processing. I have a picturebox with an image loaded in it via a openfiledialog box. I was trying to zoom an image in the picturebox by certain pecentage i.e **50%, 100% 150%** and **200%** . All this is done when a user clicks on …

Member Avatar for prerit
0
8K
Member Avatar for sam pinto

can anyone tell me examples of 3 mouse events(which will be easiest to create) and 3 keyboard events(which will be easiest to create) please! ASAP

Member Avatar for Hilal2009
0
114
Member Avatar for abhimanipal

Hi everybody, Please excuse the noob question as I am new to STL in C++. I am trying to write a very basic program which uses iota. However my compiler is complaining that iota does not exist in algorithm. Some other forums suggested including <backward/algo.h> as iota could have been …

Member Avatar for mike_2000_17
0
2K
Member Avatar for c++bob1234

Define a base class person that will contain universal information, including name, address, birth date, gender and identification (student, worker etc). Derive from this class the following classes: Student Worker Student_worker Add variable school to student and company to worker class. Write a program that asks user to input information …

Member Avatar for c++bob1234
0
128
Member Avatar for vizz

![MySite11](/attachments/small/2/MySite11.png "align-left") ![MySite2](/attachments/small/2/MySite2.png "align-left") I'm trying to achieve this animation from last week. Please help me. What I want to do,- 1. How to draw centered position circles with small cut at different angles 2. When clicked on logo display menus to bottom or right to circle 3. When clicked …

Member Avatar for vizz
0
175
Member Avatar for aecha

Hi.. I need some help from all of you. My link cannot go to the next page when i include index.php?page= in my line.Like the example below.. <td><div align="center"><a href="index.php?page=view_user.php?ref1=<?php echo $row['user_id'];?>">View</a></div></td> If I remove the index.php?page= , the page can link to the page that i want to go. …

Member Avatar for aecha
0
133
Member Avatar for m1n1m3

Hi, I have a simple usb device that i can plug into a PC. The thing im looking for in user interface that is: 1) Multiplatform 2) Manages it own drivers (for plug in USB device) 3) No install file, a executable. The thing im looking for is like this …

Member Avatar for jackmaverick1
0
299
Member Avatar for geneh23

Hey everyone I'm trying to create a blog using php and for a certain page, I am "including" an "init.php" file that doesn't seem to recognize...I have three folders within another folder called "test5" and within that folder I have the folders called: "func" "resources" and "simple". Now in the …

Member Avatar for Shark8000
0
300
Member Avatar for pclovechristian

I have to create a program that will prompt a user radius and keep adding them until user says no. Then, the program gotta able to hold those numbers and calculate two things: Surface area and Volume. The program also gotta able to Sort the numbers by its volume(low to …

Member Avatar for Lerner
0
135
Member Avatar for kiail

Hello everyone. I'm trying to write a phone number word generator. I have the basic form setup and a dialing pad. The dialing pad dials just like a phone, except it only has keys 2-9. I'm trying to print out all the possibilities a phone number could produce using streamwriter. …

Member Avatar for kiail
0
323
Member Avatar for jackmaverick1

I've got a game, and I'm trying to do it right. I've got a spritesheet (which is really just a class that loads images for easy access. It seems to work, but then my tile system starts, and it fails in an interesting way - it loads only the foreground, …

Member Avatar for jackmaverick1
0
198
Member Avatar for dany12

Hello How can you store a theme(css jquery html) in a database and retrieve it using php and jquery ajax Can this be done in json and what advantages are with this tehnology,I am new to json and don't know that is why I am asking any ideas will be …

Member Avatar for diafol
0
117
Member Avatar for c++bob1234

#include<iostream> using namespace std; #include<string> #define INT_MAX 100000 #define INT_MIN 0 using namespace std; class Automobile { public: Automobile(); void read(); bool is_cheaper_than(??????) const; bool better_mileage_than(???????) const; bool better_finanace_than(??????) const; void print() const; private: string name; float price; float mileage; float finance; }; Automobile::Automobile() { name=" "; price=INT_MIN; mileage=INT_MAX; } …

Member Avatar for Saith
0
300
Member Avatar for FraidaL

I'm getting an error with this code. Both the findMax and findMin lines in main say "Invalid conversion from 'int' to 'int*'". What does it mean? #include <iostream> using namespace std; int findMax(int[],int); int findMin(int[],int); int main () { int max, min, x; findMax(max,x); findMin(min,x); return 0; } int findMax(int …

Member Avatar for Saith
0
255
Member Avatar for abhimanipal

Hi Folks, Here is another noob question. I am trying to write a simple predicate for the find_if function in STL. Here is my code #include<iostream> #include<vector> #include<algorithm> #include<iterator> using namespace std; class InRange{ const int& low; const int& high; public: InRange(const int& l, const int& h): low(l), high(h){} bool …

Member Avatar for Saith
0
412
Member Avatar for dariaveltman

please tell what am I doing wrong. #include <iostream> using namespace std; int main() { char name[3][30]; int i, j; for(i=0;i<=2;i++) { cout << "Please enter name: "; cin >> name[i]; } for(i=0;i<=1;i++) { for(j=i+1;j<=2;j++) { char temp; if(name[i] > name[j]) { temp = name[i]; name[i] = name[j]; name[j] = …

Member Avatar for Sahil89
0
183
Member Avatar for Andy90

I have created an application which requires double value processing, I want to add trackbar so that user can select any double value he wants. But I m unable to set min and max value as double for trackbar. Help me.

Member Avatar for d.hussain
0
320
Member Avatar for skatamatic

I am trying to remember a bit of bitwise math to deal with some CAN bus stuff in c#. Basically, I am trying to create a class that takes in an integer that represents an identifier portion of a CAN frame. They look like this: Priority - 3 bits EXT …

0
104
Member Avatar for CWoods22

I am having trouble getting this to run. It compiles just fun, and it will let you click one button but does not recognize a second button click. What am I doing wrong? /* Chapter 6: Telephone Keypad Programmer: Charlene Wood Date: April 8, 2012 Filename: TelephoneKeypad.java Purpose: This program …

Member Avatar for NormR1
0
419
Member Avatar for fka
Member Avatar for Venom Rush

Hi there I'm new to soap and I'm using the NuSOAP library. I'm trying to send xml to a soap server and then receive a response. I'm getting nowhere with this and it's beginning to frustrate me. Here is what I was provided with: First Snippet POST /Submit.asmx HTTP/1.1 Host: …

Member Avatar for diafol
0
5K
Member Avatar for apanimesh061

I want to extract unique elements from a string. import java.util.HashSet; import java.util.Iterator; import java.util.Set; import java.util.StringTokenizer; /** * * @author Animesh Pandey */ public class Main { /** * @param args the command line arguments */ public static Set getUniqueTokens(String str, String separator) { StringTokenizer tokenizer = new StringTokenizer(str, …

Member Avatar for NormR1
0
158
Member Avatar for don't give up

hello please help me first question : how can send email for users if him register in my website"i saved email in database" ,, send one Time a day Automatic .. second question : how can search in database then display for user thanks alot

Member Avatar for diafol
0
176
Member Avatar for zachattack05

I don't work with ASPX or whatever it is now very much at all. I work with WinForms and DLLs most of the time, but I was asked by a client to make a portion of an application available online so that their clients can access certain information without calling …

Member Avatar for skatamatic
0
158
Member Avatar for nixufix

Hi, To start with I'm new to Java and this is my second project: to create a graphical TicTacToe game with MVC pattern. View and Control will be in the same class for this project. The goal is to learn about interfaces and to split your problems into seperate parts. …

0
374
Member Avatar for ckugblenu

We have learnt programming concepts with python and have now acquired the skill. What are the stuff we can go in and what areas are awesome to be in. Need help

Member Avatar for m1raEbrah1m
0
122
Member Avatar for latortuga42

Hi, I have a JavaScript validation function that worked before I changed the sendmail file to a php version (had to becfause of host's linux server). The sendmail code in the php file has some validation checking, but I would prefer to use the validation.js file with the form's onSubmit …

Member Avatar for ddymacek
0
703
Member Avatar for phorce

Hello, I have 2 vectors, and I'm trying to search/scan the first vector for the second vector. Let's say I have this vector/Matrix: M1 = 0 1 1 0 0 1 1 1 1 0 1 1 0 0 0 1 M2 = 0 1 0 1 Then I will …

Member Avatar for histrungalot
0
178
Member Avatar for nexocentric

I'm having a small problem with a variable in one of my PHP scripts. The variable is `$isSubMenu`. It gets set using a function that runs recursively called createNavigationMenu. However, even though I have set it, the interpreter keeps telling me that the variable is undefined. I really don't know …

Member Avatar for nexocentric
0
575
Member Avatar for riahc3

Hello Im doing this code for every form Ive doing (you have have seen it so I wont explain it) protected override void WndProc(ref Message m) { const int WM_MOVE = 0x0003; switch (m.Msg) { case WM_MOVE: return; default: base.WndProc(ref m); break; } } How can I do this so …

Member Avatar for riahc3
0
90
Member Avatar for abhimanipal

Hello everybody, I am trying to teach my stl and after writing some basic programs I have hit a road block. I have an iterator which I am trying to pass to a function template Here is my function template template <class T> void display(typename vector<T>::iterator start, typename vector<T>::iterator end){ …

Member Avatar for abhimanipal
0
178
Member Avatar for Tortura

Hi, it is jinxed. I don't find another solution. The code which doesn't work is very simple. While watching it with a breakpoint, IT WORKS! Otherwise it doesn't. I don't know why and it's driving me crazy. There are two comboboxes. The choosen item is the title of the x/y-axis …

Member Avatar for Tortura
0
455
Member Avatar for shandoosheri

hi i have an outer div which contains alot of inner divs like this '<div id="wrapper"> <div id ="1" class="hoverme">sometext</div></div> so what i nedd to do is that i need to detect the on hover stat of ever hoverme class in tthe wrapper div and return the id number of …

Member Avatar for shandoosheri
0
162
Member Avatar for blackmagic01021

I have a class that has a text area. the code is as follows package view; import java.awt.Font; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.ScrollPaneConstants; public class LabelStatus extends JPanel { /** * */ private static final long serialVersionUID = 1L; …

Member Avatar for blackmagic01021
0
172
Member Avatar for Panathinaikos22

I have 2 files writen in java, if someone can please covert them in C# and give it. The problem is with type of variables and operators, many operators are not overloaded like in java, idk what to say... This one will not work in C# as integer result |= …

Member Avatar for wilen
0
280
Member Avatar for wilen

this is my csharp code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.SqlClient; using System.Configuration; namespace MutlitableDatasetApp { public partial class MainForm : Form { //form wide dataset. private DataSet autoLotDS = new DataSet("AutoLot"); //Make use of command builders to …

Member Avatar for ChrisHunter
0
248
Member Avatar for jj.amonit

Can anyone help me figure out why my dialog won't go away when clicking the x? When I click it with modal = true, the modal portion disappears, but the dialog remains. With it off, the dialog still remains. I have tried multiple things, but it won't go away. I …

Member Avatar for fobos
0
3K
Member Avatar for MasterHacker110

i have tried to write this hexdump code for dumping the contents of a tex file. #include <iostream> #include <fstream> #include <string.h> using namespace std; int main() { string line; string finline; char infile[100]; char ofile[100]; char chars[750]; cout<<"Enter input file: "; cin.ignore(); cin.getline(infile, 99); cout<<"Enter output file: "; cin.getline(ofile, …

Member Avatar for MasterHacker110
0
728
Member Avatar for Majestics

Its not a new question, i already searched many forums and found many answers but the builders i found arent able to compete with builder of vb.net and c#.net, so i thought to take some decision from some experience people , please give me some of your suggestions. I already …

Member Avatar for CrazyDieter
0
347
Member Avatar for jarograv

I am getting a null pointer exception on line 36 of this code, I do not understand how any of my values are null because they should all be filled with data from the text document. What am I doing wrong? import java.io.BufferedReader; import java.io.DataInputStream; import java.io.FileInputStream; import java.io.InputStreamReader; public …

Member Avatar for BumHunter
0
122
Member Avatar for memomk

well i have two questions: 1-hey i was wondering is there a library or namespace in c# for creating databases? like anydbm with python?or anyway to do it? 2-witch faster? getting data from huge database or getting it from like a huge database devided to multi database i mean witch …

Member Avatar for faizan11
0
206
Member Avatar for heshanm

I want to retrieve records in my database in order to manage details. The below error message displayed when i trying to do that. Can anyone help me out? ( ! ) Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\Student registration\manage student details\manageStudentDetailsForm.php on line 250 …

Member Avatar for Venom Rush
0
122
Member Avatar for cresenia1988

Inside the infile.txt, I'm suppose to convert into outfile.txt. Unforunately, I'm unable to get the correct aglinment for outfile. As you can see, France and Vietnam have an extra "\t". char ch; switch (n) { case 'F': stud.type = n; infile >> stud.st.fs.country; infile.get(ch); infile.getline(stud.st.fs.name, MAX); break; case 'S': stud.type …

Member Avatar for muze
0
134
Member Avatar for roboxslt

|Input :::: <gtdt> <name>Construction 2012</name> <edition>120</edition> <ISSN>1473-0065</ISSN> <jurisdictions> <jurisdiction name="Albania"> <topics> <topic> <name>All Questions</name> <questions> <question> <number>1</number> <title>Joint ventures</title> <full>Must foreign designers or contractors enter into a joint venture with a local contractor to design, build and be paid for their work? Does the law require that the local contractor …

Member Avatar for Mike Askew
0
102

The End.