43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Mr.Wobbles

i have this code to check and make sure that I wont be inserting duplicate records into my table. i take whatever is in the dr variable and if it is 0 then I go ahead, if not I don't do anything with the variables, I am using Excel, and …

Software Development open-source vb.net
Member Avatar for Mr.Wobbles
0
103
Member Avatar for new_2_java

Hi all, I am writing my first servlet, and facing some troubles. I have my servlet: [code] package com.example.servlet; // other imports... public class Hello extends HttpServlet{ public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException{ res.setContentType("text/html"); PrintWriter out = res.getWriter(); String name = req.getParameter("name"); out.println("<HTML>"); out.println("<HEAD><TITLE>Hello, " + name …

Software Development apache html-css java xml
Member Avatar for new_2_java
0
552
Member Avatar for priyamtheone

Hi everyone, can anybody give a code example of how to manipulate CD/DVD ROMs of a machine using VB.Net 2005; .Net Framework 2.0 (e.g. determining which one of my local disk drives is a CD/DVD ROM and especially how to EJECT/CLOSE the CD/DVD ROMs). Any example will be of great …

Software Development vb.net
Member Avatar for priyamtheone
0
158
Member Avatar for Shveetis

Hello everyone.. I need some basic help in the monitoring of a website.. Can anyone out here help me with the retrieving of the URL of a website..?? Thanks a lot in advance..

Software Development java
Member Avatar for Shveetis
0
83
Member Avatar for technogeek_42

can anyone help me how to create or to make my program a self running and don.t not be open to run.

Software Development visual-basic
Member Avatar for technogeek_42
0
239
Member Avatar for Tommms

Hello everyone! I have a specific C question that I have not been able to solve. How do you count the number of particular numbers inside an integer variable? For example: int variable; The user inputs 22222 into the variable. The program displays "You entered five twos". How do you …

Software Development c
Member Avatar for rhish.franks
0
219
Member Avatar for shaikh_mshariq

Hi to all the posters. I have come up with new problem using crimson parser to parse an xml file. I am creating xml file using crimson parser and DOM object. I have created a xml file using xmldocument object and i am setting nodes value according to tag name …

Software Development apache java xml
0
80
Member Avatar for yoyoman3000

Hi guys, quick question for you. [code]for (i = 0; i < NUM_EMPS; i++) { cout << "First and Last Name: "; cin.getline( names[i], 31 ); for (index = 0; index < NUM_MONTHS; index++) { cout << "Hours worked in "; cout << months[index]; cout << ": "; cin >> …

Software Development c++
Member Avatar for yoyoman3000
0
154
Member Avatar for ndrux

import javax.swing.JOptionPane; public class cafe2 { public static void main(String args[]) { String name,ch; double price = 0.00; double sum=0.00; int cho=0; name=JOptionPane.showInputDialog("Enter Customer Name:"); do{ ch=JOptionPane.showInputDialog( " Food Name "+ "\n-----------------------------------------------------"+ "\n1) French Fries $ 3.50"+ "\n2) Fish and Chips $ 5.50"+ "\n3) Goat Cheese Pizza $20.70"+ "\n4) Chicken …

Software Development java java-swing
Member Avatar for ndrux
0
141
Member Avatar for dinosaurclover

Can one of you geniuses out there help me please. They say that compiling and running hello world is the hardest bit. They're right. I've got debian on my laptop. I read a so-called tutorial that reccomended gcc hw.c OK. So I get a file called a.out. Allegedly an executable. …

Software Development c debian gui
Member Avatar for plgriffith
0
144
Member Avatar for glendavis

This is supposed to return the index of the first empty string in the array using recursion. Instead of returning the index of the FIRST empty string, this function I wrote returns the index of the LAST empty string. I have no idea how to search from the beginning of …

Software Development c++
Member Avatar for VernonDozier
0
175
Member Avatar for kako13

Hi, I'm getting this error: Asig 2.cpp In function `void ManiMatrix()': 31 Asig 2.cpp expected primary-expression before "int" Asig 2\Makefile.win [Build Error] ["Asig 2.o"] Error 1 Here is how I'm calling it from main: customMatrix.checkIfMagic(); Prototype in the class: void checkIfMagic(int**); void matrix::checkIfMagic(int **arrayOfArray) {// function began } // function …

Software Development c++
Member Avatar for kako13
0
153
Member Avatar for LoloftheRings

Hi, I created an object to create buttons in console applications. But somehow, the program doesn't do much when it's checking if the button is clicked. I got this code from the internet, I could give the original code if you want to study it. I have stripped it down …

Software Development c++ os-x windows-vista
Member Avatar for LoloftheRings
0
522
Member Avatar for rockmania

import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Calculator { public static void main (String [] args) { JFrame frame = new CalculatorFrame (); frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE); frame.show (); } } class CalculatorFrame extends JFrame { JTextField jtf; JLabel jlb; JTextField jtf1; JLabel jlb1; JTextField jtf2; JLabel jlb2; JButton jbt; JButton …

Software Development api file-system java java-swing
Member Avatar for jwenting
0
179
Member Avatar for Derice

[CODE]String str = "D:*Course 2007 Sem 2*WXET3309*WXET3309_Lab*WXET3309_Lab 2.doc"; System.out.println(str); String[] word = str.split("\\*"); int i = word.length; //length is 1 more than array i--; //last index = last string System.out.println(word[i]);[/CODE] The code above is code to get the last string separated by the symbol *. I wonder how should the …

Software Development java
Member Avatar for Derice
0
239
Member Avatar for VersEtreOuNe

[B][COLOR="Red"]Value.h[/COLOR][/B] [code=c++] #ifndef VALUE_H #define VALUE_H #include <iostream> template<typename DataType> class Value { public: Value(DataType val); Value(const Value<DataType>& aValue); Value& operator =(const Value& aValue); Value& operator +(const Value& aValue); void SetValue(DataType val) { _value = val; } DataType GetValue() const { return _value; } template<typename DataType> friend std::ostream& operator <<(std::ostream& …

Software Development c++
Member Avatar for VersEtreOuNe
0
114
Member Avatar for TheBeast32

Hi, i have been making a server for a client I made to connect to. I don't have a static IP, so I need a way for someone on another computer to connect to me without me telling the user what it is every time. I have tried to just …

Software Development c++ client-server
Member Avatar for TheBeast32
0
99
Member Avatar for Mikecool509

Hello everyone, I am trying to write a program to help a friend out with updating virus definitions. In order to update their definitions, they must manually go out and download and install the file themselves. I would like to be able to write a program that automatically downloads the …

Software Development c#
0
82
Member Avatar for VersEtreOuNe

Hi. Need to know what's the difference when using Templates between: [inlinecode]template<class T>[/inlinecode] and [inlinecode]template<typedef T>[/inlinecode]

Software Development c++
Member Avatar for VersEtreOuNe
0
252
Member Avatar for kartouss

[code=c++] // Input the plaintext in the array char d; string temp; ifstream myfile1 ("Plaintext.txt"); if (myfile1.is_open()) { do { for ( j=0; j<BC; j++) // BC=4 for ( i=0; i < 4; i++) { myfile1.get(d); a[i][j] = d; // plaintext } Encrypt(a, rk); /* strcpy(temp,a); // Code to write …

Software Development c++
Member Avatar for kartouss
0
154
Member Avatar for Derice

I am have no idea wat is wrong with my code. The system is supposed to get 3 inputs from users and display a message box to show the number in ascending order. If i were to get input from input box and display it in message box it will …

Software Development java java-swing
Member Avatar for Derice
0
201
Member Avatar for linux

Does Python have a built-in GUI kit? Meaning without using Tcl/Tk. Because, I'm developing for the iPod touch / iPhone, and I don't want to have the user need to install the Python and Tcl runtimes.

Software Development gui iphone python
Member Avatar for linux
0
152
Member Avatar for ceyesuma

pi = 4(1-1/3 + 1/5-1/7 + 1/9-1/11 + 1/13-.........- 1/(2i-1) + 1/(2i+1) ) I am starting this program to approximate pi. Would someone be so kind as to direct me to information concerning this formula?

Software Development java
Member Avatar for ceyesuma
0
1K
Member Avatar for hawisme000

i only have knowledge of connecting into a database(singel PC) but i have now idea where to start when my database needs to be centralized(1database for many PC) or (Network, LAN connected database) can any1 help me on how to make this, my code for connecting a database to VB …

Software Development visual-basic
Member Avatar for hawisme000
0
84
Member Avatar for majestic0110

I am having some difficulty finding a decent tutorial/example of C# code that delas with CHM files. Now I know there are toolkits out there that convert HTML to Compiled Help Modules but I would like to explore this deeper myself. So my question is are there any good tutorials/code …

Software Development html-css
0
69
Member Avatar for jowereya

plz any one help me to solve this two proble befor 8/2/2008 plzzzzzzzzzzzzzzzzzzzzz helpe me >>> Problem 1: Fermat’s Theorem Program: fermat.cpp Input: fermat.in Output: fermat.out Description In a letter dated December 25, 1640; the great mathematician Pierre de Fermat wrote to Marin Mersenne that he just proved that an …

Software Development c++ printer
Member Avatar for Nick Evan
0
275
Member Avatar for blcase

I am trying to overload the + and - operator for my class Collect class Collect is an array of movies (class Movie) so i need to add a movie to the array and subtract a movie from the array. the only way i know how to do code this …

Software Development c++
Member Avatar for Agni
0
172
Member Avatar for gcardonav

Greetings I just installed Virtual and I am trying to learn from it.. I was running a program which I believe to have no problems in the coding. My question is the following.. When I try to compile the program I get the following error [inlinecode]1>------ Build started: Project: Shapes, …

Software Development c++
Member Avatar for JRM
0
647
Member Avatar for Shveetis

Hello everyone.. I need to retrieve the number of classes loaded from the MBeans and I am facing problem with the same... Is there any specific package to be imported?? I am unable to work it out though it is really simple.. Thanks in advance...

Software Development java
0
73
Member Avatar for lerkei

how can i limit the textbox to input sysmbols and numbers such as 1,2,3,4,.......;'/,[]=-.... and as such pls help...

Software Development visual-basic
Member Avatar for Jx_Man
0
115
Member Avatar for Arctic

[code=cpp]/*I've actually located the segmentation fault location, I believe it is because I am trying to declare one array memory location equal to another when they are in seperate memory segments. However, if this is the case I have no idea on how to correct it. Here is my code …

Software Development c++
Member Avatar for vijayan121
0
160
Member Avatar for dragonheart

in my project i need to load another software (it is just for viewing purpose) through a Vb form . i tried to use OLE containers, but when i run d program and double-click the icon in the OLE container, it doesn't do anything, not even sends an error msg …

Software Development visual-basic
Member Avatar for x2per14
0
98
Member Avatar for werks

Hello does anyone know how to lock the system within a specified time? Like a screensaver.. Actually i want my system to automatically lock if it is unused for about 15 minutes..tnx in advanced

Software Development visual-basic
Member Avatar for werks
0
96
Member Avatar for Metalsiege

Hey everyone.. I'm having a little problem with something I'm writing for a class.. I'm supposed to use while and a nested IF statement in the solution, but every time I run it I get the following back: [quote]Run-Time Check Failure #3 - The variable 'A' is being used without …

Software Development c++
Member Avatar for Metalsiege
0
267
Member Avatar for nate12457

I'm getting 3 unresolved external symbol errors. I think it's probably syntax but I can't seem to find it. This is a class I was supposed to write based on the professors specifications. The header and implementation file are mine, while the driver file cannot be edited for this assignment. …

Software Development c++ ios
Member Avatar for nate12457
0
147
Member Avatar for andyg55

input file: 1 0 0 2 1 0 0 2 1 I would like to produce this in a 3x3 array on screen. My code: [code] #include <fstream.h> #include <stdlib.h> int i, j; int matrix[3][3]; int main () { ifstream inFile; inFile.open("input.txt"); if (!inFile) { printf ("Unable to open input …

Software Development c++
Member Avatar for VernonDozier
0
175
Member Avatar for enrgpro

I have no background with programing, but would like to start learning. Can you recomend a good book to start with.

Software Development c++
Member Avatar for Ancient Dragon
0
71
Member Avatar for mmcshmi11

I need to print out a number that begins with 7, without the seven. For example, print 71011 as 1011 or 701 as 01. I've tried many techniques and just can't get it to work. Is there a printf format that will let me print out everything left of the …

Software Development c
Member Avatar for invisal
0
117
Member Avatar for atish00

Guyz I have again got a problem with functions. [ICODE]"" Write a function to input matrices"" [/ICODE] Or how can I input using fuctions ?? is it possble ?? so far I have developed a few lines. [CODE] //fuction to input a 2D-array. int multi_array(int r , int c)//r is …

Software Development c++
Member Avatar for atish00
0
184
Member Avatar for johnRiley

Hi all, I've been searching for hours but i can't find any solutions so i hope someone can help... Is there any way of proving that the += operator is more efficient than the + operator... i.e. A += B instead of A = A + B I'm hoping to …

Software Development c++
Member Avatar for vijayan121
0
134
Member Avatar for vishalkhialani

I have learned the basics of c++ and found out that different c++ compilers behave differently especially when it comes to errors. I would like the community to advice as to which compiler is the most popular and if it can be used with .net so that once I develop …

Software Development c++
Member Avatar for vijayan121
1
200
Member Avatar for Eric132

Hi All, Would someone please help me with this problem I've been struggling with for a few days now. I am trying to convert a file from this Upper Case:- 01m-matt-01-01 BIBLOS GENESEWS IHSOU XRISTOU UIOU DAUID UIOU ABRAAM To this Lower Case into New Testament Greek:- 01m-matt-01-01 biblos genesews …

Software Development vb.net
Member Avatar for debasisdas
0
1K
Member Avatar for Ankita B

Hi, Im writin the followin code to connect with oracle `database.im` also using toad .I keep geetin errors even if i declare `private String AQC1_UID = "";` and so on.. import java.sql.*; public class Login { public static void main(String[] args) { String AQC1_UID = ""; String AQC1_USER_PWD = ""; …

Software Development java oracle
Member Avatar for Ankita B
0
125
Member Avatar for jov0708

i wrote a code to get hard disk info and used FindFirstVolume(). however, the console-based application was ok but when i made an MFC application doing the same thing, it did not compile correctly. i think the problem is with my redeclaration of _WIN32_WINNT in the MFC application. this is …

Software Development api c++
Member Avatar for jov0708
0
510
Member Avatar for dragonheart

i am trying to load data from the database to a dbcombo but i am not getting it properly i am using the following coding : [COLOR="Green"]Set db = New Connection db.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;" & "data source= " & App.Path & "\db1.mdb;" Set rs = New Recordset rs.Open " select model_no …

Software Development open-source visual-basic
Member Avatar for dragonheart
0
274
Member Avatar for preeeya

Hi, Im a novice in Python, using Tkinter for the GUI developement. I am trying to figure out how to create my frame such that you cannot exit using the title little 'x' in the corner. In fact I dont want it at all! I did try overriding it by …

Software Development gui python tkinter
Member Avatar for Duoas
0
117
Member Avatar for VIcissitude24

[code=c++] #include <fstream> #include <iostream> #include <string> using namespace std; string getFileName(); int numCharsInFile( ifstream &in, int &nLines ); int numWordsInFile( ifstream &in, int &nWords ); main () { int nLines, nChar, avgCPL, nWords; ifstream textFile; string fileName; fileName = getFileName(); textFile.open(fileName.c_str()); if(!textFile.is_open()) { cerr << "Cannot open file: " …

Software Development c++
Member Avatar for superjacent
0
119
Member Avatar for Naruse

hi all, i newbie in this forum and vb.net too. i hope i can learning much from this forum. i want to play flash on my form. does anyone know how to do this?? thx... best regards...

Software Development flash vb.net
Member Avatar for Naruse
0
129
Member Avatar for tones1986

Hey folks - i am working on an assignment for school and would like some input if possible. I am trying to declare a class object in the form of an array so that i can read info from file and then manipulate the data. I need 3 seperate c++ …

Software Development c++
Member Avatar for vmanes
0
208
Member Avatar for new_2_java

Hi all, I would like to execute an OS command like "cls" from my Java program, and am getting the following error: [code] D:\ext>java FileExtractionConsole Exception in thread "main" java.lang.NullPointerException at FileExtractionConsole.startExtraction(FileExtractionConsole.java:46) at FileExtractionConsole.main(FileExtractionConsole.java:33) D:\ext> [/code] Here's the snipt of my code: [code] public class FileExtractionConsole { public static void …

Software Development java
Member Avatar for new_2_java
0
275

The End.