199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for midnite11

I receive large pre-formatted XML files. Each XML is formatted the same way - in that they all have the same Parent Nodes and Child Nodes. Each Parent node has at least one Attribute (sometimes 3 or 4) and some fields also have attributes. In my opinion, the formatting of …

Member Avatar for ChrisPadgham
0
257
Member Avatar for kyklops

Hi everyone! I'm currently designing a database for an inspection body that performs controls and inspections of wiring systems. The price for the inspection depends on the power of the wiring. I'm experiencing some problem in the design of the price list for the DB. The actual price list has …

Member Avatar for ChrisPadgham
0
214
Member Avatar for DazedanConfused

Hello forum, I need help with my first assignment regarding classes. I have no clue where to start so if possible could you please walk me through the best logical process to solve this assignment. I have no clue where to start so any information will help. Here is what …

Member Avatar for Zvjezdan23
0
346
Member Avatar for gdubz

Im trying to take input data from a user as a string of number or letters and store each char on a different array, whats the proper syntax fro this?

Member Avatar for Zvjezdan23
0
227
Member Avatar for Ararat

Hey guys I'm having a little problem with reading from a text file, here's how the text is formatted: [QUOTE]random string$52$44$5$abc random string$52$44$5$abc_def random string$52$44$5$abc_defgh[/QUOTE] this code is what I use to read the text [CODE]#include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> char name[100][100]; char position [100][100]; …

Member Avatar for WaltP
0
150
Member Avatar for sirlink99

When I run my code, and advance from level to level it works correctly, but when I would like to restart my program I cannot get the frame to reset. Here is my code [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Frame implements KeyListener{ GraphicsDevice vc; Player p …

Member Avatar for sirlink99
0
143
Member Avatar for cangan

Hi people, I need to change return type of a function. So function should return array values.In here, data type of the array values are not int,char or double. The data type of the array values are a kind of custom type. So confused. Please help:scared::idea::( [CODE] [COLOR="Red"]void [/COLOR]DataType_Class::insert_rowData_into_array() { …

Member Avatar for cangan
0
258
Member Avatar for atp_mqk

Hi everyone how are you? I want to share my php problem with you. Please! help me if you can. I am making a database for employees’ record. I want to keep Experience head just one time, and if anyone wants to add more experience, he/she just click on add …

Member Avatar for cereal
0
280
Member Avatar for Warl30ck

Hello, fellow programmers. Today I encountered a problem getting the 2d array length. By this I mean How many x values are filled, that all the x's sub values are filled {y}. ex x-> 1, 2, 3 ,4, 5, 6 y 1, 1, 1 | 2, 2, 2 3, 3, …

Member Avatar for Warl30ck
0
165
Member Avatar for Valex

Please help me! I have to make dictionary in py tkinter and i don't know how to do definition this is my code: from Tkinter import * j=("slo", "ang", "nem") def pretvori(): if(b.get()==j[0] and c.get()==j[1]): slo_v_ang() if(b.get()==j[0] and c.get()==j[2]): slo_v_nem() if(b.get()==j[1] and c.get()==j[0]): ang_v_slo() if(b.get()==j[1] and c.get()==j[2]): ang_v_nem() if(b.get()==j[2] and …

Member Avatar for Valex
0
2K
Member Avatar for zacharysr

I am building a search engine and trying to get the title to be a link and in the code it looks like this [CODE=php]echo("<img src='$Thumbnail' width='90' height='75> <a href=\"watchvideo.php?ID=$id\">$title</a><br /> $description<br />");[/CODE] and i want the "watchivideo.php?ID=$id" to have the ID of the video in the database, and the …

Member Avatar for broj1
0
168
Member Avatar for dennysimon

Hi all I tried todo javac command on two classes (one after another) the problem is when I javac the first it gives me error ,because class of the second not already exist,the same happen when i javac the second ,class of the first also not already exist. how to …

Member Avatar for dmanw100
0
115
Member Avatar for Greg_R

I'm writing a small app to do automated testing of a console application. It needs to repeatedly run the app with various options and handle when the app being tested crashes. I started with system(), moved on to spawn() and have since been trying CreateProcess(). It doesn't lockup when the …

Member Avatar for Greg_R
0
430
Member Avatar for behemothdave

My assignment is as follows: Create aJApplet that contains twoJTextFields, aJButton, and threeJLabels. When the user types an employee’ s first and last names (separated by a space) in a JTextField, the employee ’ s job title is displayed in a secondJTextField. Include two JLabels to describe theJTextFields used for …

Member Avatar for NormR1
0
520
Member Avatar for Xufyan

I've the following code for the two radio buttons but it isn't working i don't know why :S If 'On' is selected it displays 'ON is selected' and so on but it isn't working :S and i want one button to be selected at a time but when i run …

Member Avatar for aadesh.aakash
0
1K
Member Avatar for VB 2012

Ive got a listbox here i add a process but sometimes with its size but for some reason here on framework 4 (framework 3.5 it worked if im right) its not getting the same size as in task manager so anybody who can help will get point :) And plus …

Member Avatar for Reverend Jim
0
214
Member Avatar for azzdog_dev

it took me ages to find it. i googled "add controls at runtime" and not one single result gave me the intstructions on how to add code to the controls. kinda useless with no code, ehh? all results only told me how to add the control, that's it. well, this …

Member Avatar for VB 2012
0
266
Member Avatar for fvere

Hi there, I am very much interested in learning vb.net or programming. Can someone help me how I can go about and learn basic? Thanks' Fvere

Member Avatar for VB 2012
0
129
Member Avatar for debasishgang7

Hi all, I wanna extract a certain link from a web page using python regular expression. The scenario is like this.. The code: blah... ... .... <div class="test" src="[B][url]http://www.test.com/file.ext[/url][/B]" style="top:0px;width:100%;" .... blah blah blah I wanna extract the url "http://www.test.com/file.ext" from the page using python regular expression. Thanks in advance!

Member Avatar for snippsat
0
286
Member Avatar for laklaker

So hello everyone! This is my school project but I'm having a problem in my code. So here is the program i want to create. I want to create a program that can generate 5 numbers from 1-9 then user will guess it. My problem only is on the generating …

Member Avatar for DavidKroukamp
0
238
Member Avatar for BobFX

I need to override the Close button an a C++/CLI Form application, allowing the user to cancel the close. This must have been asked a zillion times, but I can't find an example specific to C++/CLI Form applications. My Form class starts with: [code]namespace TR31Forms { using namespace System; using …

Member Avatar for AmrFouad
0
2K
Member Avatar for Alex_2011

Hi, I'm totally new in using VB and I want your help. I need a sample code that has a (combobox) and an (add) button that makes the user clicks on the (add) button to add text to the (combobox). Thank you.

Member Avatar for Reverend Jim
0
110
Member Avatar for asif49

[url]http://feeds.bbci.co.uk/news/rss.xml[/url] ^^ I'm extracting data from the above website. I can extract most actual elements using the following code: [CODE] $xml="http://feeds.bbci.co.uk/news/rss.xml"; $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); //get elements from "<channel>" $channel=$xmlDoc->getElementsByTagName('channel')->item(0); $channel_title = $channel->getElementsByTagName('title') ->item(0)->childNodes->item(0)->nodeValue; $channel_link = $channel->getElementsByTagName('link') ->item(0)->childNodes->item(0)->nodeValue; $channel_desc = $channel->getElementsByTagName('description') ->item(0)->childNodes->item(0)->nodeValue; [/CODE] ...but I can't read the attributes …

Member Avatar for asif49
0
1K
Member Avatar for SeniorAlexandro

Hello, I have a login form which accesses to my website by WebBrowser. You have to put Username and Password in the two Textboxes to login... It works fine and it loggs me in to my site...but how can I tell if the password is wrong or not? How can …

Member Avatar for SeniorAlexandro
0
131
Member Avatar for OVOXO

So I'm looking for a way to assign a set of numbers in a random way in a 2d array. The array is {1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10} How would I assign these values randomly in a 5 row and 4 column array? Or is there a way to generate a random number for …

Member Avatar for dmanw100
0
121
Member Avatar for YourGamerMom

I am working on an OpenGL project in C using Xcode 3.2.6. It is a tutorial program and yet I am having problems with it. When I double-click Project.app, it opens for a quarter of a second then closes. The source is: [CODE]#import <Cocoa/Cocoa.h> #include <GLUT/GLUT.h> int main(int argc, char …

Member Avatar for YourGamerMom
0
340
Member Avatar for VernonDozier

I have a base class and a derived class. The base class has an int called a that needs to be initialized. I want to create an instance of the derived class, so I call its constructor and pass it an int. I want that to call the base's constructor …

Member Avatar for VernonDozier
0
118
Member Avatar for Xufyan

Ok, I have two radio buttons 'A' and 'B' and user have a choice to select anyone of them, by default button 'A' is selected but when user come to my website and selects 'B' then selection changes to button 'B' however the problem is, when the user move to …

Member Avatar for diafol
0
174
Member Avatar for Allander

I'm trying to pass a list from a function to another using templates but get this error message: [QUOTE]/home/mattias/CodeBlocks/SpelBeta/src/player.cpp|64|undefined reference to `void Ground::bulletsCollition<Bullet>(std::list<Bullet, std::allocator<Bullet> >)'|[/QUOTE] Here is the code: [CODE] //In the function calling the template function (*blocks).bulletsCollition(player_bullets.getList()); //In header that the getList is declared #ifndef BULLETLIST_H #define BULLETLIST_H #include …

Member Avatar for mike_2000_17
0
11K
Member Avatar for gourav1

my question is that can we send e-mail through code written in java? i know that it can be made in php but don't knoe about java...if answer is yes, then can u give me hint that how to proceed means what to use(API, servlets or jsp or link from …

Member Avatar for stultuske
0
375
Member Avatar for cangan

Hi all, I just need the array type of Person object. So it will be an array object. Please some help. [CODE] void SomeOtherFunction() { MyDataType ^Person = gcnew MyDataType(); // simple Person object (C++/CLI) } [/CODE]

Member Avatar for cangan
0
328
Member Avatar for zismad

Hi all, I had a program all built up in C# using visual studio 2008. I also used a deployment project to install it. this program runs on several computers with several OS for a while. Recently I installed it on windows 7 starter. A first weird thing is on …

Member Avatar for zismad
0
216
Member Avatar for sling blade

I have a GDI component I use for creating graphical objects on my form. This component contains a Transformation_Matrix class. When I populate these matrix objects I have the ability to multiply them together to obtain a new transformation matrix. E.g. Transformation_Matrix matrix1, matrix2, matrix3 ... do stuff to populate …

Member Avatar for ddanbe
0
198
Member Avatar for Narayanan87

Hi i am new to JSP. I am setting a boolean value for session attribute in the java class. Now i am getting the same in the jsp using session.getAttribute("session attribute") method. Now i want to remove the session value in jsp. How could i achieve this??? Plz Help..

Member Avatar for laxmipriya22
0
97
Member Avatar for phplover

Hello, I am going to be building a blog and have rattled my brains out on this but could someone please explain in much detail as possible how i would go about building a blog archive ? I don't mean i want the php code just the logic behind it. …

Member Avatar for phplover
0
156
Member Avatar for terence193

well i am trying to pass this parameter in a function -->[ICODE]char*[I]filename[/I][/ICODE] [CODE] [U][B]//i just wrote this as an example to explain clearer my question[/B][/U] #include<stdio.h> #include<stdlib.h> void try (char *[I]filename[/I]) //[B] the question is how can i use the pointer to refer to a file? [/B] { printf("try"); } …

Member Avatar for terence193
0
254
Member Avatar for lxXTaCoXxl

I recently obtained an HP Touchpad 32 GB, and I'm wanting to develop applications for it. I'm currently downloading the webOS SDK/PDK installer, and have finished downloading Virtual Box. I have the latest version of Java installed as well. What I'm wanting to know, is that I've read that we …

Member Avatar for lxXTaCoXxl
0
113
Member Avatar for nyaneshi

I am a first year I.T student. We haven't really been taught PROPERLY about throws Exceptions and FileReaders. So I need help, why my program keeps telling me I have a InputMismatchException? Netbeans doesn't show any errors in my codes. and i just added a Method for Lowest Grade[since that's …

Member Avatar for NormR1
0
120
Member Avatar for Majestics

Its a simple problem... I placed the socket code under a button, if server is present it respond very quickly if not it takes time to respond.... I want to shorter that time , is there any way?

Member Avatar for ~s.o.s~
0
826
Member Avatar for karthikh87

Dear frnds i am new to this and please help me grow and gain knowledge on asp.net i want to know how to send contact form to gmail i wanted code please do the need full i wanted code in C# asp.net

Member Avatar for vimit
0
216
Member Avatar for moroccanplaya

hi created a simple python program that reads the source code of a url and stores into a variable then saves the sourcecode into a file on the computer but the problem that i have that is when python reads the sourcecode it stores it all in one line in …

Member Avatar for moroccanplaya
0
87
Member Avatar for jbutardo

Just want to ask, how can i create a log file on vb.net, what libraries should i need for this to work,. thanks

Member Avatar for jbutardo
0
19K
Member Avatar for vivekanandaan

Hi, This is my situation. I am entering a value in textbox and click the find button. In the button click i've written the following code, but it does not yield any result. Kindly help. [CODE] dbprovider = "PROVIDER=Microsoft.Jet.OLEDB.4.0;" dbsource = "Data Source = D:\sprrg.mdb" con.ConnectionString = dbprovider & dbsource …

Member Avatar for vivekanandaan
0
145
Member Avatar for Despairy

i tested the following code as my teacher told me but it wont do what i want it to [CODE] vector<GameObjects*> blockers; blockers.push_back(new Wall(pictures,i,j)); vector<GameObjects*>::iterator k = blockers.begin(); for(;k != blockers.end(); k++){ cout << typeid(**k).name() << endl; } [/CODE] what i want to get is "Class Wall" but i only …

Member Avatar for Despairy
0
121
Member Avatar for MrsHeard

[CODE]#include <iostream> #include <cmath> #include <iomanip> using namespace std; int triangleType(double x1, double y1, double x2, double y2, double x3, double y3); double distance(double a1, double b1, double a2, double b2); int main() { double x1, y1, x2, y2, x3, y3; cout << "Enter vertices for the triangle." << endl; …

Member Avatar for MrsHeard
0
392
Member Avatar for teambiohazard

hello all, how can I add a user to a table in a mysql database without datagridview ? I already have this: [CODE]Dim conn As MySqlConnection 'connect to DB conn = New MySqlConnection() conn.ConnectionString = "server=localhost; user id=root; password=test; database=test_addtable" 'see if connection failed. Try conn.Open() Catch myerror As MySqlException …

Member Avatar for adam_k
0
149
Member Avatar for tarunfuture

Hello Friends I am using the two forms on asingle php page form1 and form2. i am inserting the value from form1 and retrieving it into form2 into a dropdown. but in form2 it shows me second last inserted data rather than last inserted data. but after refresh the page …

Member Avatar for diafol
0
114
Member Avatar for diafol

Hi all, I've been using ajax for a while and I've been storing my trivial php include files in the public directory tree. Then I thought, I really should be putting my classes and includes above the public document root (as I used to do before I started dabbling with …

Member Avatar for diafol
0
1K
Member Avatar for sharpsplit

Hello i need to write a program read a text file and store the data with text in the format of : name 14 6 name2 15 26 However i cannot use fopen() scanf() getline() or fgets(), it has to be done with only open() read() and strtok() i have …

Member Avatar for savoie
0
162
Member Avatar for gcarvalho

Hey, DaniWeb friends! I've a problem with my login.php: When an error occurred, the [CODE]mysql_error();[/CODE] doesn't appear the error. Tested the [CODE]mysql_errno()[/CODE] also, it appears as 0, saying it doesn't have any errors. Take a look at the script: [CODE] <?php $username = $_POST['username']; $pass = $_POST['password']; require "conf/connection.php"; require …

Member Avatar for diafol
0
452

The End.