132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Ferny84

I am stuck on this program that I am supposed to create. It has to ask the user for a text file where the format looks like: MATH 101 GEOLOGY 101 GYM 101 Then i'm supposed to store the information from the file in an array which then gets pointed …

Software Development c data-structure
Member Avatar for Ferny84
0
91
Member Avatar for adams161

hi, I'm having a bit of a problem. I"m simply trying to read active directory now with system.directoryservices. I have a LDAP path i think its called and i get the children and for each child i for each through and so on for like 5 for each loops. OK …

Software Development caching
Member Avatar for adams161
0
159
Member Avatar for ttboy04

Hello, My ouput is showing as... "1 2 3 (10)(23)(29)" when it should be... "1(10) 2(23) 3(29)" I don't think I am too far off. Here's the code and thanks in advance. // int[] Groups = {10, 23, 29}; in the constructor public String toString() { String tempStringB = ""; …

Software Development java
Member Avatar for ttboy04
0
107
Member Avatar for Alexpap

Hi all, I was always a bit confused about how to create a recursive function, so thats where i need you help. :) I have a treeview, in wich the user adds/removes dynamicaly nodes and a button wich should save the treeview structure in a database table when clicked. The …

Software Development
Member Avatar for gusano79
0
151
Member Avatar for Aenonar

Hey everyone! I've been trying to set up a more fool proof time trial thing for my windows application rather than checking the users computer for the time (that can easily be altered). I'm not that experienced with more advanced coding, and I just can't find any code that can …

Software Development web-server
Member Avatar for bbman
0
113
Member Avatar for epicasian

I'm looking for a good introductory book for 2D OpenGL Game Programming. The only books on OpenGL I've seen were on 3D. Does anyone know of a good 2D OpenGL Book? Thanks in advance, EpicAsian

Software Development c++ gaming opengl
Member Avatar for epicasian
0
201
Member Avatar for nearest

I am working in open gl using visual c++.I have made a quad a balls.Now i want to bounce the balls on quad repeadetly but i donot know how to do this??i thought of timerfunction to use but i donot know how to use it??which coordinates to set.here is the …

Software Development c++ opengl visual-basic
Member Avatar for daviddoria
0
211
Member Avatar for johndoe444

Hi, I am getting this exception: [CODE] javax.naming.directory.InvalidAttributeValueException: [LDAP: error code 21 - ob jectClass: value #0 invalid per syntax]; remaining name 'dc=jndiTest' at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source) at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source) at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown Source) at com.sun.jndi.ldap.LdapCtx.c_createSubcontext(Unknown Source) at com.sun.jndi.toolkit.ctx.ComponentContext.p_createSubcontext(Unknown Source) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.createSubcontext(Unk nown Source) at com.sun.jndi.toolkit.ctx.PartialCompositeContext.createSubcontext(Unk nown Source) at …

Software Development java
Member Avatar for johndoe444
0
144
Member Avatar for haseeb1431

i have created a vc++ empty project in vs 2008, then i have added a simple c++ file and code is as follows [code] #include<stdio.h> int main() { printf("abc"); } [/code] now i want to make an exe file of this, actually i have complete project and i an exe …

Software Development c++
Member Avatar for haseeb1431
0
99
Member Avatar for johndoe444

I have say a loop. At the beginning of the loop I want to fill a very large array which is an array of structures. Is there way like memcpy to fill the array without going through for loop. I figure using memcpy instead of for loop would be a …

Software Development c data-structure
Member Avatar for johndoe444
0
171
Member Avatar for catalyst491

Hello, I'm not too experienced with C++ (I know C# pretty well), and I can't figure this out. I've got two files, Form1.h and Utility.h. Form1.h is initialized when the program starts, and when the user clicks a button, it should call some functions in Utility.h. Now the problem I …

Software Development c++ oop
Member Avatar for daviddoria
0
207
Member Avatar for dilansankalpa

I have written a program to receive data from the serial port. I am doing some calculations using those data and writing results to 4 richTestBoxes real time.I have two buttons to open and close the serial port. Some times when the close button is pressed, the form get stucked.This …

Software Development
Member Avatar for dilansankalpa
0
76
Member Avatar for dzhugashvili

Hello. A while back I wrote a program called 'divvy' ([URL="http://www.cerberusgate.com/divvy.zip"]http://www.cerberusgate.com/divvy.zip[/URL]) in C++. It works fine on my system, but I have received several complaints that it does not work on other systems. This is the error: [QUOTE]Error: The Side-by-Side configuration information for "C:\DIVVY.EXE" contains errors. This application has failed …

Software Development c++
Member Avatar for dzhugashvili
0
222
Member Avatar for Ayaat Monem

Can I have an overall about game main loop, it seems to be complicated :-/ Thanks

Software Development c++
Member Avatar for Ayaat Monem
0
148
Member Avatar for queensrose

I will arrange my output in well-alligned columns, but I don't think I should use 3D char arrays since my teacher just wants us to stick with what we've learned so far. Check out my code. I'm happy about it, but I just can't get the alignment right. [CODE]//File: lab9.cpp …

Software Development c++ file-stream
Member Avatar for IrinaG
0
298
Member Avatar for dansnyderECE

I'm trying to figure out how to get a string from an array starting at some given position. Say we have an array that's arbitrarily long and my string starts at location 1000. If I wanted to get a string from a file I would simply use something like getc …

Software Development c++
Member Avatar for dansnyderECE
0
129
Member Avatar for gedaahmed

hello guys!!!!!!!!!!! please,i have tried as much as i can to sort a given name alphabetically.but,i couldn't get it.please, help me.

Software Development c++
Member Avatar for Fbody
0
73
Member Avatar for miturian

So, in the course of a bigger project, I need to generate normally distributed random numbers. I've decided to try to use the GSL rng library. From [URL="http://www.gnu.org/software/gsl/manual/html_node/Random-Number-Generator-Examples.html"] the gsl webpage[/URL] I got an example code, just to get an idea of how the interface works. The program looks like: …

Software Development c++ perl
Member Avatar for miturian
0
2K
Member Avatar for sasTReSS

Hi everybody, i want to compare between 2 vector that stored char value. I've made 2 vector: [code] vector <char*> className; vector <vector<char*> > Item; [/code] first i stored the class data in each vector, the name of class in vector className. after that i get data from the other …

Software Development c++
Member Avatar for sasTReSS
0
79
Member Avatar for pytup

Is there any VB pseudocode generator? or converter from vb code to pseudo code. I need to convert that code for pseudocode: 1) Login form: [CODE] Private Sub Command2_Click() Dim password As String Do Until password = "dawid" Or attempts > 2 password = InputBox("Please enter your password") attempts = …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
1K
Member Avatar for P00dle

Is it possible to have a client/server service that doesn't use sockets?

Software Development client-server java socket-programming
Member Avatar for masijade
0
147
Member Avatar for patishere

How to connect username and password in a database for more secure login?

Software Development visual-basic
Member Avatar for kinwang2009
0
528
Member Avatar for Mikey12345

Hi, I have a set of random numbers in a datagridview. Im trying to figure out the easiest way that each time i loop through the numbers x amount of times and it somehow stores the last value so that i can average the final number. My datagrid view is …

Software Development
Member Avatar for Ketsuekiame
0
68
Member Avatar for MrBlack

Hi i m new to java, i want to make a simple application with netbeans ,(To Learn) i want to learn how to get data from a data base(mysql database) and display to textBoxes, and also want to learn how insert delete update database, Are there any tutorials or ebooks.plz …

Software Development java java-netbeans
Member Avatar for MrBlack
0
115
Member Avatar for abctoz

HI All, I want to create one folder which should open only with my application. Is it possible through JAVA ?? Please Guide me and send the Java code if possible Thanks in Advance

Software Development java
Member Avatar for masijade
0
337
Member Avatar for programming2010

hallo evryone...i have just installed sql 2005 on winxp and i was wondering how do i access remotely the server from another computer. i want to know the softwares to download for the client computer..should i also run sql server 2005....i don't know how to access the server...kindly assist

Software Development client-server sql
Member Avatar for finito
0
166
Member Avatar for vmaxusb

Hello, I have made client server communication and I am sending and recieving Files. I am using file pointer and fread and fwrire commands to read and write file. I am able to read and write .txt,.GIF files.but I could not write .doc file. I am opening file in binary …

Software Development c++ client-server file-system
Member Avatar for victorxstc
0
250
Member Avatar for skoff

Hi i just want to know how can i display the item i selected in a listbox into a memo? Example : I selected in my listbox Item : Banana When i click it in the listbox, Banana will be added in my memo. thank you

Software Development display pascal
Member Avatar for Wolfgan
0
119
Member Avatar for BLKelsey

Hi all, Quick question: This is the only thing left I'm trying to work out on my console program. I am trying to return control back to the point where a user enters their selection after giving an invalid entry. I am using switch statements that house the selections, and …

Software Development c++
Member Avatar for avarionist
0
103
Member Avatar for Nitin Daphale

I have loaded combo as following. [CODE]cmdString = "select propertytypeid,typename from propertytype "; da = new SqlDataAdapter(cmdString, conString); dt_PropertyType = new DataTable(); da.Fill(dt_PropertyType); cmb_PropertyType.DisplayMember = "Name"; cmb_PropertyType.ValueMember = "ID"; arr = new ArrayList(); for (int i = 0; i < dt_PropertyType.Rows.Count; i++) { arr.Add(new KeyValueData(dt_PropertyType.Rows[i][1].ToString(),int.Parse(dt_PropertyType.Rows[i][0].ToString()))); } cmb_PropertyType.DataSource = arr;[/CODE] [COLOR="Red"]but …

Software Development
Member Avatar for kvprajapati
0
151
Member Avatar for madhan

string s = "true"; string w = "false"; Console.Write(s +"\r"+w); output:false I don't understand how \r works. why is the true missed? please explain .

Software Development
Member Avatar for kvprajapati
0
98
Member Avatar for xsach

i need to read a text file and find a particular column in that text file ..i have no idea on how to do it ..can anyone help please..

Software Development shell-scripting
Member Avatar for cfajohnson
0
184
Member Avatar for achieve_goals

Hi, I am confused in making circular linked list. This is what I have. CircularLinkedList.h [CODE]#ifndef CircularLinkedList_H #define CircularLinkedList_H class CircularLinkedList { public: void remove(); void set_number_people(int); void print(); }; #endif[/CODE] CircularLinkedList.cpp [CODE]#include "CircularLinkedList.h" #include "Node.h" #include <stdio.h> void CircularLinkedList::set_number_people(int num_people) //This is where I am confused { Node *head …

Software Development c++ linked-list
Member Avatar for ctaylo21
0
130
Member Avatar for dj_saxy

Is is possible to take an array full of characters and then make the characters into numbers? i.e. a =1, b=2 etc. I'm trying to write a program that deciphers ceasar shift ciphers. Any ideas would be really helpful, Thanks dj_saxy

Software Development c++
Member Avatar for mrnutty
0
236
Member Avatar for BuhRock

I have to write a program that creates a GUI and asks the user to select from a group of buttons which time of the day they made the call, and input in a text field how many minutes the call was. for the day time, it's supposed to be …

Software Development gui java java-swing
Member Avatar for NormR1
0
765
Member Avatar for RayvenHawk

Ok I have a program that reads in a .TXT file and displays it as tokens. What I'm trying to do now is read the file and print out only the reserved words for C++ and the variable it uses. For example: int main() { double e = 24; int …

Software Development c++ storage
Member Avatar for mrnutty
0
165
Member Avatar for hypernova

As the title says it, I have made a program to implement adjacency list representation of graph. I wish to use it in implementing various graph algorithms like DFS, BFS, Dijkstra, etc. The program works fine for the test cases I put in it. But I am sure that there …

Software Development c++
Member Avatar for daviddoria
0
141
Member Avatar for GAME

How would I be able to make a child form come to front on a button click?

Software Development
Member Avatar for GAME
0
142
Member Avatar for mjoshi

I have a code which throws "segmentation fault" after some computation. I was looking for some help with efficient memory management. My program does the following: I have a grid with min. i,j,k coordinates -52, -34, -35 and max. i,j,k coordinates 53, 37, 33. (In i, j, k loop). I …

Software Development c
Member Avatar for arld101
0
136
Member Avatar for Joslup

Can i put a flash aplication in on my program on python?

Software Development flash python
Member Avatar for Joslup
0
314
Member Avatar for GAME

How would I be able to check if a checkbox is checked from a childform and use that information on the parent?

Software Development
Member Avatar for finito
0
78
Member Avatar for spartanace

Hey for some reason my rectangles are being drawn after the start variable has been incremented all the way through. This is causing them to go off the screen. What i wanted, is like in the code, i want it to draw, increment draw increment until the loop is finished.[CODE]import …

Software Development java java-swing
Member Avatar for NormR1
0
609
Member Avatar for lewashby

[CODE]def save_transaction(price, credit_card, description): file = open("transactions.txt", "a") # the "a" means you are always going to append to this file file.write("%s%07d%s\n" % (credit_card, price, description)) file.close() items = ["DONUT", "LATTE", "FILTER", "MUFFIN"] prices = [1.50, 2.0, 1.80, 1.20] running = True while running: option = 1 for choice in …

Software Development python
Member Avatar for lewashby
0
110
Member Avatar for Alex_

I'm trying to make a html editor. I need to set different colors for different words... I managed to the change text's background color, but not it's foreground. Can some one help me? this is my code [code=java] public class HEditorView extends FrameView { public HEditorView(SingleFrameApplication app) { super(app); initComponents(); …

Software Development java java-swing
Member Avatar for Alex_
0
328
Member Avatar for G_S

Hi I'm using python 3.1 and Windows. My program writes xml code to a text file, the problem is that windows needs to know that this file's encoding is utf-8. Right now it does write the proper code, but other programs (firefox, for instance) fail to read it because it …

Software Development python xml
Member Avatar for Gribouillis
0
187
Member Avatar for MrBlack

There is an error , it is cannot find Symbol [CODE] import java.sql.*; public class Main { public static void main(String[] args) { try { Class.forName("com.mysql.jdbc.Driver"); String connectionUrl = "jdbc:mysql://localhost/mytestdb?" + "user=root&password=PHP"; Connection con = DriverManager.getConnection(connectionUrl); } catch (SQLException e) { System.out.println("SQL Exception: "+ e.toString()); } catch (ClassNotFoundException cE) { …

Software Development java
Member Avatar for MrBlack
0
4K
Member Avatar for G_S

Hello, I am making a file comparing program, and I want it to display line numbers permanently, like any normal text editor does. Is it possible to do this with tkinter? thanks

Software Development display python tkinter
Member Avatar for G_S
0
2K
Member Avatar for ceyesuma

Hello: Soon I will need to have my foriegn keys working. I have tried to set them up with no luck. Could someone show me how to set the payee_uid below? I am using an Apache Derby Embbeded Db 10.5.3. Thanks [code] <entry key="createStudentTable"> CREATE TABLE student ( stu_uid VARCHAR(11) …

Software Development apache java
Member Avatar for ceyesuma
0
93
Member Avatar for kenji

Hey, Iv decided to tackle a bit off C++ before I start it in college in fall and Im sort of stuck on a problem. The book im reading is Accelerated C++ and its exercise 3.2. Basically the question asks to get values from the user and take for at …

Software Development algorithm c++ ios
Member Avatar for arkoenig
0
154
Member Avatar for niehaoma

Answered my own question. Wish I could figure out how to delete this post.

Software Development python
Member Avatar for niehaoma
0
106

The End.