132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for lxXTaCoXxl

Can anyone help me with this little problem I have? I'm trying to get the IPv4 address of the network interface is being used to access the Internet, but I'm having issues with this. Here is my source code. I am using a network interface class method Get All network …

Software Development
Member Avatar for mcriscolo
0
168
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 …

Software Development vb.net xml
Member Avatar for ChrisPadgham
0
257
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 …

Software Development c++
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?

Software Development c++
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]; …

Software Development c
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 …

Software Development java java-swing
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() { …

Software Development c++
Member Avatar for cangan
0
258
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, …

Software Development java
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 …

Software Development python tkinter
Member Avatar for Valex
0
2K
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 …

Software Development java
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 …

Software Development c
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 …

Software Development java java-swing
Member Avatar for NormR1
0
520
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 …

Software Development vb.net
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 …

Software Development gui vb.net
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

Software Development vb.net
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!

Software Development python regex
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 …

Software Development java
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 …

Software Development c++
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.

Software Development vb.net
Member Avatar for Reverend Jim
0
110
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 …

Software Development daniweb-feedback vb.net web-browser
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 …

Software Development java
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 …

Software Development c opengl
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 …

Software Development c++
Member Avatar for VernonDozier
0
118
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 …

Software Development c++
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 …

Software Development api java java-jsp
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]

Software Development c++
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 …

Software Development visual-studio windows-vista
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 …

Software Development matrix-multiplication
Member Avatar for ddanbe
0
198
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"); } …

Software Development c microsoft-access
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 …

Software Development c++
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 …

Software Development java java-netbeans
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?

Software Development java
Member Avatar for ~s.o.s~
0
826
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 …

Software Development python
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

Software Development vb.net
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 …

Software Development open-source vb.net
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 …

Software Development c++ display
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; …

Software Development c++ mathematics
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 …

Software Development vb.net
Member Avatar for adam_k
0
149
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 …

Software Development c c# c++
Member Avatar for savoie
0
162
Member Avatar for subbudaita

Hi! "OBJECT is an instance of a class" then where is the object in the following code please........ [CODE]class A { int a; int b; public: void display() { cout<<"where is the object?"; };[/CODE]

Software Development c++
Member Avatar for tomtetlaw
0
129
Member Avatar for Jigs28

Hello, how to set label location in top middle at run time according to the text length. For example i have one panel control of size 316,162 and one label at top it displays the security que from the database like what is your pet's name? Or who is your …

Software Development
Member Avatar for Jigs28
0
256
Member Avatar for new_2_java

Hello folks, I am trying to add a JFrame object into JTabbedPane, but I am getting a java.lang.IllegalArgumentException. Here's my code snipt. [code] // other codes... JTabbedPane tabs = new JTabbedPane(); tabs.addTab("Flight Information",flightInfoPane); <-------------- line 28 // other codes... private FlightInfoPane flightInfoPane = new FlightInfoPane(); [/code] Here I have flightInfoPane …

Software Development java java-swing
Member Avatar for test.tracker
0
852
Member Avatar for iraj.jelo

Hi my friends , i have written a program that in client section in error occures frequntly , i think the error comes from socket function in client . what i have to do? [code] # This is my server code , this code has not problem import asyncore import …

Software Development client-server python socket-programming
Member Avatar for Gribouillis
0
3K
Member Avatar for RASHIDDDDD

Hi everyone, hope u all be fine ..i just have a question that how to print Prime no frm 1 to 100on screen in vb 6 without use of msgbox or title box etc ... if any 1 having an answer then PLEASE share the code :)

Software Development visual-basic
Member Avatar for WaltP
0
139
Member Avatar for sinatra87

I've search the forums here and found a few other people with the same problem I have, but I'm not sure I understand the solutions that have been presented. I have a simple geometry calculator I'm working on as C++ practice. My program displays a menu and asks for the …

Software Development c++
Member Avatar for sinatra87
0
224
Member Avatar for hondros

Essentially, I'm learning how emulators work. I've got the core down, but I wanted to know if I'm actually doing this the right way, or if I should be doing it differently. [CODE]#include <stdio.h> // Opcode + Argument Retriever #define GetOpCodeControl1(x) (x>>14) #define GetOpCodeControl2(x) ((x>>12)&0x3) #define GetOpCode0Arg(x) (x&0x0FFF) #define GetOpCode1Arg(x) …

Software Development c++
Member Avatar for hondros
0
151
Member Avatar for sirlink99

I was watching a video on how they made Watson (the robot that was on jeopardy), and another one where a person made a simulation where triangles (animals) learned when to get food, and such, and then taught their offsprings, and then they learned more, and then the intelligence developed. …

Software Development java
Member Avatar for harinath_2007
0
177
Member Avatar for shubham.joy

What is the error in this simple code: [CODE]#include <stdio.h> int main() { char a[100]; int c; int i = 0; int x = 0; while( ( c = getchar() ) != '\n' ) { a[x++] =c; } a[x] = '\0'; while( ( a[i] != '\0' ) || ( a[i] …

Software Development c os-x ubuntu
Member Avatar for zeroliken
0
115
Member Avatar for vlaskiz

Basically I dont even know if I named the thread properly but lets get on the story. I've got a list of wares (in text file) with its name, date it was brought to store, date it was sold, amount and price. [CODE]Pigema //name date it was brought sold amount …

Software Development app-store c++ ios
Member Avatar for Ancient Dragon
0
179
Member Avatar for stereomatching

compiler : visual c++ 2005 os : win7 64bits The more I study about our source codes, the more dense fogs surround my head. According to what I know, memset can't be used to initialize POD This is the snippet of our codes(The problem of encapsulation? there are too many …

Software Development c++
Member Avatar for mike_2000_17
0
2K

The End.