132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Plantcode

Hello, I'm a newbie working with vbnet but i'm trying to create a project were I enter a name in a textbox and save it to a access database. I'm trying to create the OledbConnection but i'm getting this error: "oleDbException was unhandled" this is the code i'm using: [CODE]Private …

Software Development dataset microsoft-access vb.net
Member Avatar for Plantcode
0
252
Member Avatar for strongguy12345

alright well i have already posted in the python forum part, now this question is the same one as the one i did for college level computer science but this is for university. any way im pretty sure i have it but before when it was working it would say …

Software Development java
Member Avatar for strongguy12345
0
252
Member Avatar for peuceul

Hi all, I have a question regarding an extern variable. ---test.c [CODE]#include <stdio.h> #include </home/peuceul/debug/test.h> extern int a; int print1() { printf("value of a in extern is %d\n", a); int a = 2; printf("value of a is %d\n", a); } int print2() { printf("value of a in second method is …

Software Development c
Member Avatar for WaltP
0
1K
Member Avatar for circles

Hi all, 2nd week programming and face first into the wall again haha. As always I appreciate any advice or critique. I have a small c++ program that reads through log files from a program and scans for errors. For the most part it works really well but I'm trying …

Software Development c++
Member Avatar for WaltP
0
192
Member Avatar for Dmiller071

Hi all! The past couple times I posted they were all about 2D arrays.. and here I am again with them =( I cannot escape them! Anyway, the project I'm working on requires a Maze class that holds a 2D array and different types of robots that will find their …

Software Development java
Member Avatar for Dmiller071
0
293
Member Avatar for sha11e

[CODE] //Creating a variable for the connection called //"con" Connection con = DriverManager.getConnection("jdbc:mysql://IP_ADDRESS:3306/DATABASE_NAME", "USERNAME", "PASSWORD"); ... [/CODE] If I don't want at least the username and password to be shown in clear text... is there something I can do? Have them in a file thats encrypted or... I don't know.. …

Software Development java sql
Member Avatar for ~s.o.s~
0
107
Member Avatar for jhudielpeco

Please repair my loop. [CODE]#include <iostream> using namespace std; int main(){ int size; cout << "How large a triangle do you want? "; cin >> size; for (int r = 0; r < size; r++) { for (int c = 1; c <= size; c++) { if (c <= r) …

Software Development c++
Member Avatar for WaltP
0
137
Member Avatar for greenq

I am implementing Selection sort in doubly - linked list. I have to sort list by surnames by finding smallest element and inserting it into beginning of the list But there are some troubles when I run my program I have NIL exception in Sort Method in while loop. Help …

Software Development java linked-list programming-construct
Member Avatar for Taywin
0
2K
Member Avatar for amitshree

[CODE]#include<stdio.h> #include<conio.h> struct node{ int data; struct node *next; }; struct node *creat_list(struct node *start); void display(struct node *start); struct node *addatbeg(struct node *start,int data); struct node *addatend(struct node *start,int data); int main(void) { struct node *start=NULL; int choice,data; while(1) { printf("1.creat linklist\n"); printf("2.display\n"); printf("3.add at beg\n"); printf("4.adda t end\n"); …

Software Development c
Member Avatar for amitshree
0
170
Member Avatar for BoBok2002

Hi, I have drawn a human face using simple shapes such as big circle for the face, little circles for the eyes, lines for eyebrows and triangle for the nose. I have been asked to create a template for various expressions of the face (fear, happiness, disgust, etc). Once I'm …

Software Development c++ opengl
Member Avatar for BoBok2002
0
453
Member Avatar for smepperson

Hi Everyone, It has been some time since I've posted here but I am truly having trouble seeing the forest for the trees so to speak. I have changed my code so many times I missed the time it worked because I want it to do more. Upon Exit btn …

Software Development c#
Member Avatar for smepperson
0
1K
Member Avatar for Kalys3

Its all in the question really! My datagrids work fine! Using visual basic 2010 please help!!!

Software Development vb.net visual-basic
Member Avatar for Kalys3
0
108
Member Avatar for ktsangop

Hi there! I would like a little help regarding the following code. The following code will wait for a non-blocking socket connection, and then wait to receive a certain packet. When the packet arrives, it will do something and then close connection and reinitialize it in order to be able …

Software Development c++ javascript socket-programming
Member Avatar for ktsangop
0
391
Member Avatar for kei01040

import java.util.*; import static java.lang.System.*; public class tester { public static void main(String args[]) { Scanner kbReader = new Scanner (in); System.out.print("Enter your integer here."); //enter 3001 int i = kbReader.nextInt( ); int count =0; for(int i = 100; i <= 999; i++) { int factors = 0 ; for …

Software Development java
Member Avatar for Taywin
0
7K
Member Avatar for Dann0

Hey guys, hope I'm in the right section here, I presume Pygame falls under python. I'm trying to make a circle move left,right,up or down depending on the users input (e.g if the user presses the "a" key then the circle will move left by itself, rebound off the edge …

Software Development python
Member Avatar for Dann0
0
198
Member Avatar for Vaspar

Hello I am trying to make a bot which will download files and upload on server. I have no idea how to do that (yet) can someone guide me which methods will be used in downloading file and uploading (ftp server) and one more thing is there any size limitation …

Software Development
Member Avatar for vijayvishwanath
0
153
Member Avatar for sanzhar

how to play from bytes (like sound) but without filename.... I read from InputStream by bytes, it must play... It is like sound streaming...

Software Development java
Member Avatar for sanzhar
0
54
Member Avatar for dark_sider_1

I'd like to add (using the mathematical term) two Integer ArrayLists in Java, as well as divide them and multiply. How would I go about this algorithmically? I can't for the life of me think of something, perhaps having to do with two's complements. Okay, so let's say that I …

Software Development java
Member Avatar for Taywin
0
217
Member Avatar for Panathinaikos22

Hello, is possible in C# create a file with custom extension? and the file can be open only from progra and not from others text editors. I have a login form were i store logs in txt file for now, that i want is to create an file named *.lst …

Software Development encryption file-system
Member Avatar for Panathinaikos22
0
147
Member Avatar for noobies

Could ANYONE check on my code. As I compare the DSO with the DSO para, it seems doesn't compare both data at all. I have been converting the DSO as double first between comparing it as if i compare with string it doesn't work. anyone could help me please. I …

Software Development vb.net
Member Avatar for hericles
0
212
Member Avatar for jackmaverick1

I need to access a file that isn't relative to the directory that the .jar file is in. I got lucky with another part of the program doing this, but I really don't know how. Thanks, Jack

Software Development java
Member Avatar for JamesCherrill
0
107
Member Avatar for euclid135

Hello all, I got some problem in handling thread so my form is not hang when performing a long time computing, Here is my simple simulation of my program, first time my program start, it will make a form that contains a button that will perform a long time computing …

Software Development
Member Avatar for euclid135
0
155
Member Avatar for ChaseRLewis

Alright I've been writing C/C++ code for a few years but recently got into helping make an indie game with a few guys. We are scripting in C# but i'm just a bit lost on how to do some stuff without pointers. Its a generic class that holds the non-work …

Software Development c#
Member Avatar for ChaseRLewis
0
258
Member Avatar for dwiniers

Hello there Good Day! Anybody can help me or teach me the code on how to lock the text box on my program. I have the navigation keys and add, edit, delete search command button. What i want is during the run time you cannot changed everything information in the …

Software Development visual-basic
Member Avatar for dwiniers
0
193
Member Avatar for infantheartlyje

Hi i could not specific Record from my binary file. This is the method to list out all records. [code] int student :: showall(fstream &fp) { student rec; fp.seekg(0,ios::beg); int i=0; cout<<"Position\tRoll No\t\tName\tBalance"<<endl; while(fp.read((char*)&rec,sizeof rec)) { cout<<i*sizeof rec<<"\t"; rec.show(); i++; } } [/code] While running this i got the below …

Software Development c++ ios microsoft-access
0
104
Member Avatar for poker158149

Hey there, everyone. My friend and I are looking into writing a very simple game in Python. We're gonna use PyGame for it as well. It's a top-down view 2D game where you play as a guy with an ax who kills zombies. There are not different levels; it's all …

Software Development python
Member Avatar for Greeky
0
165
Member Avatar for shack99

Hello all, I'm trying to read an ant script through java and find where all its .java files and libraries are located. I've gone through the Apache ant API but couldn't find an appropriate method. So far all I could come up was the below code, it gives the properties …

Software Development apache api java
Member Avatar for peter_budo
0
293
Member Avatar for ooops.789

hello i am trying to broadcast some values, but i dont see the function of broadcast happening....the code i had written to broadcast is #include <stdio.h> #include <stdlib.h> #include <mpi.h> int main(int argc, char *argv[]) { int rank, size, i, n, num, send; n=atoi(argv[1]); MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD,&size); MPI_Comm_rank(MPI_COMM_WORLD,&rank); if(rank==0) { …

Software Development c
Member Avatar for Mouche
0
131
Member Avatar for maybnxtseasn

Working on an assignment for class. I was able to get the sorts created buy for some reason im having a problem with reducing redundant code within my int main() function [code] /* 1.) create 10, 100, 1000, and 10000 randomly generated elements 2.) Perform The Following Sorts on the …

Software Development algorithm c
Member Avatar for Adak
0
181
Member Avatar for carolinatech

Hey everyone, I'm need help with a problem I'm working on. I am trying to write a code that will tell how many coins are in the amount of change from 0 to 99. My algorithm is: Get total value of change Set value of quarters to q=.25 Set value …

Software Development algorithm c++
Member Avatar for Stazloz
0
130
Member Avatar for strongguy12345

ok well this is my first thread that im asking 2 questions, im new here, these are from my high school college computer science class, one is newer and one is older, i went back to the older one because I still want to finish it and try and extend …

Software Development python
Member Avatar for woooee
0
195
Member Avatar for Himajin Breaker

Is it possible to create a dynamic-sized array of structures within a structure? To provide some info, I want to read some student info off an input file, which includes some miscellaneous information, subject codes and corresponding marks. The number of subjects taken is also provided as a number in …

Software Development c++
Member Avatar for Himajin Breaker
0
178
Member Avatar for FloridaJoe55

Ok, to the point as suggested. Second semester CS assignment to write program that reads maze info in from txt file to create maze a solves the maze recusively. I've got a dynamically allocated 2D array wtih each cell containing number that detemines the walls by bit values and it …

Software Development c
Member Avatar for FloridaJoe55
0
175
Member Avatar for Stazloz

I am writing a recursive function to return an integer after converting a string. I am very close. This was already quite the brain teaser, and recursion is not my cup of tea. Perhaps somebody can help with this small little problem I am having. The last thing I need …

Software Development c++
Member Avatar for Stazloz
0
3K
Member Avatar for linhj

Hi all, I am doing the assignment as below. It is nothing wrong but just I think I complied c code and c++ code in the program. Now I would like to change it to work under c complier, but just dont know which part is wrong. Can anyone of …

Software Development c++ file-stream
Member Avatar for Panathinaikos22
0
255
Member Avatar for Manswab

hi i tried a code to implement non repeating random numbers from1 to 25..but its showing only 24 numbers..code is below..pls help me..or sujjest me a good code for non repeating random numbers[CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace teasting { class Program { static void Main(string[] …

Software Development
Member Avatar for Manswab
0
287
Member Avatar for juniorsilver

I'm writing an application to update a database with student records. I've used this particular code before, but with just a single column, but i added multiple columns to this one. when i call the sub to save the records it gives me this exception: syntax error in INSERT INTO …

Software Development dataset open-source vb.net
Member Avatar for Reverend Jim
0
154
Member Avatar for tallygal

I have to create a cafeteria survey application. Twenty students were asked to reate, on a scale of 1 to 10, the quality of the food in the student cafeteria, with 1 being "awful" and 10 being "excellent." Allow the user input to be entered using a ComboBox. Use an …

Software Development vb.net
Member Avatar for Reverend Jim
0
211
Member Avatar for optimus_prime_1

please install this C++ software and according to image i am getting few errors will some one help me solve this problem ? software link : http://www.ziddu.com/download/17082595/turboc.zip.html image link : http://www.ziddu.com/download/17082611/untitled.JPG.html thank you ....................

Software Development c++
Member Avatar for Stazloz
0
1K
Member Avatar for Howdydoody

I'm writing an alphabet cipher that ciphers at random. It looks like it should work when I'm debugging it but when I look at the cipher key it comes out with duplicate letters like some of them weren't switched during the for loop. Any help is much appreciated. WasSwapped is …

Software Development c++
Member Avatar for Howdydoody
0
151
Member Avatar for rahman86

hello everyone. I have a program that should display report let say from a date to date. but i am using string compare and not date compare. what is my problem is it is not displaying the correct output and always shows a dialog box that request parameter. -how do …

Software Development vb.net
Member Avatar for rahman86
0
117
Member Avatar for Interista

Hi i have about 5 types of strings having information in each string i need to transfer them into a binarytree so i need them in one node only i cant work out what i have to do.. every time i add a string it adds a node i want …

Software Development c++
Member Avatar for rubberman
0
103
Member Avatar for jenbrandau341

Hello, I am new to C++ and very lost. I have attempted this program but my output displays file was unable to open. I am not sure I am even on the right track. Here is my project: Write a program that reads strings from a file into a vector. …

Software Development c++
Member Avatar for jenbrandau341
0
111
Member Avatar for Lomholdt

So im making a anagram detector that reads all the words in a string. I already have the anagram funktion working (returning true if it is a anagram, and false otherwise) But i am having trouble making a loop that reads all the words in the string, and returning the …

Software Development python
Member Avatar for Lomholdt
0
158
Member Avatar for KhaosElement

I'm 'spose to be making a screen saver-ish program where objects bounce off the walls, but I'm stuck getting multiple objects to show up on the screen at once. This is my object to make a square: [CODE]package movingshape; import java.awt.Graphics; import javax.swing.JPanel; import java.awt.*; import java.util.Random; public class Shapes …

Software Development java java-swing
Member Avatar for mKorbel
0
1K
Member Avatar for wfws

I'm working on a lab for my C++ class that is the first to use classes and objects. It requires a search function that lists tasks found for a target course. I can't get the search function to work. Here is the relevant code: from main source code: [CODE] void …

Software Development c++
Member Avatar for MonsieurPointer
0
168
Member Avatar for mags11

I am new to VB. I use Visual Studio 2010. I got most of my rental program to work, but I am having trouble with the easy part. The First Name and Last Name are supposed to combine to the FullName. I know I have to use the assigning textbox …

Software Development vb.net visual-studio
Member Avatar for codeorder
0
159
Member Avatar for Bobonoinc

I am developing an application in which I have two JPanels (aPanel and bPanel) added to a parent JPanel (cPanel). I need to be able to double click on either aPanel or bPanel to change its color. If I double click on aPanel, it changes color as desired. When I …

Software Development cpanel java
Member Avatar for mKorbel
0
127
Member Avatar for RedexProGamma

Alright, so in yesterday's thread, I asked for the codes to copy the contents of a directory to a separate directory. The code: My.Computer.FileSystem.CopyDirectory( , , ) worked fine. However, I have decided that I wish to add a progress bar into the mix so that the user can see …

Software Development asp.net file-system vb.net
Member Avatar for codeorder
0
2K
Member Avatar for renzlo

Hi Guys, I am almost done with my program, until this problem arises and I can't solve. I have two forms. First form has 1 listbox and 2 buttons. Second form has 1 datagridview and 1 button. The first form opens the csv and list the location+filename of the CSV …

Software Development vb.net
Member Avatar for renzlo
0
152

The End.