132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for domingo

hi i have a datagridview showing the data from a database. Now i have a problem because i want the selected row from the datagridview to be shown on another datagridview near it on button click. I managed to make it from datagridview to listbox but from datagridview to listbox …

Software Development
Member Avatar for domingo
0
2K
Member Avatar for pythonpro

Hi, I have installed Python2.6 and wxPython. I wish to use wxPython together with Matplotlib to generate times series graphs. I am unable to install Matplotlib it always throws the following error "Python 2.6 required, but not found in registry". Please help me

Software Development python
Member Avatar for vegaseat
0
88
Member Avatar for chern4ever

i m trying to write a gui java program. i have a main screen, i declared my object in the main screen class. in the main screen, i will call 2 jpanel. from different class how can i make the 2 jpanel use the same object i declared on my …

Software Development gui java
Member Avatar for chern4ever
0
161
Member Avatar for bigbiboun

Hi, I'm have to create a neural network concerning a work about Milling process, I have my inputs and outputs (cutting speed, cutting force, depth of cut, feed rate and surace roughness) but I have no idea what to put in Target ?? If you can help me please...

Software Development
Member Avatar for jonsca
0
339
Member Avatar for Idontknowc

I seriously have no clue why it isn't working, it compiles but no luck getting any of the options to work besides input entry any suggestions will be so greatful![CODE]#include<stdio.h> #include<ctype.h> #include<string.h> #include<stdlib.h> #define NAME 30 #define ADDRESS 80 #define PHONE 11 #define EMAIL 50 #define SIZE 500 void Insert(); …

Software Development c
Member Avatar for Idontknowc
0
220
Member Avatar for foodman123321

I am a newbie Well i was just reading a book named c++ primer and got bored so i just wanted to create a c++ consol game just for some fun I have created this thing any more idea and some repair in code? [CODE] void welcome() { cout<<"Welcome to …

Software Development c++
Member Avatar for strmstn
0
118
Member Avatar for hiz460

Hi, Im trying to add a code which adds a record for me and then saves it. I am also trying to add a code which deletes the record for me. So far, my "Add" button, clears the form, which is what I want. Then when I click on save, …

Software Development vb.net visual-basic
Member Avatar for hiz460
0
193
Member Avatar for vAshunk

I created a program To return if a String entry is equal to "password". Sort of a password program. As you can see from the output the entry and expression are both equal. Why then does it print wrong?? [CODE]package Main; import java.io.*; class password { public void password() throws …

Software Development java
Member Avatar for ~s.o.s~
0
143
Member Avatar for Artgenos

We use Netmeeting alot where I work and to make life easier I am trying to write a program that will find the machine name, IP address and MAC address with just a login name. Right now I can get the IP address from the DNS entry. But I am …

Software Development dns vb.net
Member Avatar for peter_budo
0
144
Member Avatar for replic

Hey everyone, i've been trying to send some words seperated by spaces to a server and only the first word arrives. The connection stuff is all fine but i have absolutely no idea whatsoever how to make it send more than one word at once. This is what i'm talking …

Software Development c++ microsoft
Member Avatar for Salem
0
737
Member Avatar for akssps011

Hi all I have two questions: 1) I want to create a custom report in VB6. The report format consists of labels for name, designation etc against which data has to be populated by MS Access DB. Below this a table has to be printed consisting of data from some …

Software Development visual-basic
Member Avatar for akssps011
0
86
Member Avatar for Ultratermi

Hey, time_t sec = time(NULL); gives me the seconds since 1970. But... It works with the system clock... So maybe the system clock is not synchron on two computers... Is there a way to get the seconds since 1970 WITHOUT the system clock, so that it is synchron on two …

Software Development c++
Member Avatar for Ancient Dragon
0
118
Member Avatar for ejazmusavi

Hi Experts I m trying to retry images from database. My code is as below [CODE] DataTable tab = obj.createtable("Select pics from picto");//obj is the class in which createtable(string query) is function which returns datatable according to query byte[] ImgByte = (byte[])tab.Rows[0][0]; FileStream fs = new FileStream("test.GIF", FileMode.Create); fs.Write(ImgByte, 0, …

Software Development image
Member Avatar for kvprajapati
0
140
Member Avatar for litchi

Hi :) I am Writing a program that takes text from a JTextArea and uses the string to do things upon clicking a button. I used an ActionListener for the button. My problem is that I recieve an empty string when I try to access the text from the JTextArea …

Software Development java
Member Avatar for litchi
0
128
Member Avatar for lorenb

Hi, I have been struggling with receiving events from a server to a client (using .NET remoting) for quite a long time now but I keep receiving the following message on client side (ā€œException has been thrown by the target of an invocation.ā€). This message is received as the server …

Software Development assembly client-server gui
Member Avatar for lorenb
0
90
Member Avatar for xav.vijay

Hi Is there a way to hide the python source code from being copied or hacked? I am planning to write and distribute some python code to my team, but I would prefer not to reveal the code. Is it possible in Linux? In windows I wud probably create an …

Software Development python
Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for danieldot

Hello there, I got some strings of "x10" "x11" "x2" and stuff like that. Is there a way to take only the number from the string and convert it to int ? lets say [CODE]label1.Test = "x11";[/CODE] I want to take the 11 to some int.

Software Development
Member Avatar for danieldot
0
157
Member Avatar for CreativeCoding

So i'm working on this program. And long story short, I need something that will allow the user to choose the dir/file and have the system set read-only to true. Here is a piece that I worked on. Only it crashes on the system line. [CODE]try { clear; char* dir; …

Software Development c++
Member Avatar for thomas_naveen
0
202
Member Avatar for mebob

how would i make a new type of variable, like instead of int or double? would i use classes or something like that?

Software Development c++
Member Avatar for Stefano Mtangoo
0
98
Member Avatar for seeker55

I'm just finishing up my project for school but I've seem to have hit a speed bump. Here's the code I'm working on : [CODE]Private Sub Command1_Click() cnt = 0 search = Val(Text1(1).Text) For cnt = 0 To 7 If search = memberarray(cnt, 0) Then memberLbl = "Member ID:" & …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
98
Member Avatar for sid78669

OK, so I am redirecting the input from a file. The input is read into a string. The problem is, when the input file ends, the program still reads empty lines and goes into an endless loop. I have added an if statement for it to detect 5 empty entries …

Software Development c++
Member Avatar for sid78669
0
139
Member Avatar for theforgotten

i have an insert function: [code=c] template <typename T> void insert(T item) { string T_id = typeid(T).name(); int compare; if(T_id == "char *") compare = stricmp(this.item, item); else compare = this.item < item; // ... insert here } [/code] i'm trying to compare numbers,strings,classes but when T is <char*> i …

Software Development c++
Member Avatar for theforgotten
0
139
Member Avatar for calypso8

Hi, I am fairly new to C++ but love to learn, so I wanted to create a simple program base on the group-party game mafia A.K.A "werewolf." Just so whoever is not familiar gets the background. I will use just an example of 10 players. In a ten player game, …

Software Development c++
Member Avatar for calypso8
0
1K
Member Avatar for programer25

Hello guys... I wanna write a program that calculates a customer’s bill for the electric company. But there are two types of customers: residential and commercial. There are two rates for calculating an electric bill. Resident rates – Bill processing fee = $12.50 Service fee = $30.50 Alternative energy fee …

Software Development c++
Member Avatar for mrnutty
0
91
Member Avatar for bsbomb21

we are suppose to write a nice display code for natural numbers in Resolve its OSU version of C++, everytime I enter code and compile it though i get this error? heres my code [CODE] concrete_instance class Queue_Of_Naturals: instantiates Queue_Kernel_1a_C <Natural_Put_To_With_Commas_1> {}; concrete_instance class Sequence_Of_Queue_Of_Naturals: instantiates Sequence_Kernel_1a_C <Queue_Of_Naturals> {}; …

Software Development c++
Member Avatar for jonsca
0
535
Member Avatar for greatunknown

I have a class with private strings and after I set information I want to the given strings in that class I need to push that data to a vector, which is stored privately in a separate class...I feel as though my code makes logical sense but obviously I am …

Software Development c++
Member Avatar for greatunknown
0
111
Member Avatar for muthu1802

I got an error in ths code... cannot implicitly convert type string to string[].... [code] public string[] SelectTable(String pSqlstmt) { string[] sTable; string str; if(pSqlstmt.Contains("from")) { int strlen=pSqlstmt.Length; int strindfrom = pSqlstmt.IndexOf("from"); if (pSqlstmt.Contains("where")) { int strindwhere = pSqlstmt.IndexOf("where"); sTable = pSqlstmt.Substring(strindfrom, strindwhere); } else { sTable = pSqlstmt.Substring(strindfrom, strlen); …

Software Development
Member Avatar for apegram
0
187
Member Avatar for ganesanronaldo

[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { int code; char name; float amount; int shares; float c_price; }DATA; typedef struct stockList { DATA stock; stockList* link; }STOCK; STOCK* insertStock(STOCK* pList, STOCK* pPre, DATA item); STOCK* buildList(char* fileID); void printList(STOCK* pList); void fprintList(STOCK* pList); bool searchList(STOCK* pList, STOCK** pPre, …

Software Development c file-system
Member Avatar for ganesanronaldo
0
139
Member Avatar for twgood

Here is my assignment:Choose a product that lends itself to an inventory (for example, products at your workplace, office supplies, music CDs, DVD movies, or software). • Create a product class that holds the item number, the name of the product, the number of units in stock, and the price …

Software Development java
Member Avatar for Sister_loulou
0
138
Member Avatar for xfrolox

Well I'm trying to make a tool for a game for learning purposes and i can't figure it out, I have Checkbox1 and a button The button saves the ini with the checkbox1.CheckState correctly and when i open it the Checkbox1.CheckState is checked so it works, but when i Delete …

Software Development api vb.net
Member Avatar for xfrolox
0
271
Member Avatar for Tech B

Is there a way to grab values from a basic stamp with python? I just bought a Accelerometer and want to read the values with python.

Software Development python
Member Avatar for Tech B
0
329
Member Avatar for tyliang

I tried to change for loop to do while loop so that I no need to control the value of i in the future. But seems my program crashes. [code] #include<stdio.h> #include<stdlib.h> struct stock { char code[10]; char name[10]; float amt; int held; float price; struct stock *next; }; int …

Software Development c
Member Avatar for uskok
0
265
Member Avatar for =OTS=G-Man

Hello everyone I have an issue here that I couldn't find much info about, I saw a lot about it when people where selecting a lot of data but not on an insert. Heres some background. I have an application that adds items from our in house order/inventory manager to …

Software Development mysql
Member Avatar for kvprajapati
0
963
Member Avatar for piecykoos

hi, can anyone help me with my assignment, I'm new in c++ and any help will be much appreciated: "You must design, implement and test a simple board game. The design should follow object oriented principles and use the UML tools that were introduced earlier in the module. The coding …

Software Development c++ gui user-interface
Member Avatar for totalwar235
0
841
Member Avatar for navaidstech

Just when I thought I was comfortable with SQL queries, another one popped up that I can't get around with.... I'm ALMOST there but not quite. Here is the situation... I'm dealing with two tables [B]PoolTeams[/B] and [B]PlayerStats[/B] The PoolTeams table has two columns: [B]PoolTeamID[/B] and [B]TeamName[/B] The PlayerStats table …

Software Development mathematics sql visual-basic
Member Avatar for navaidstech
0
211
Member Avatar for steviebax

HI. I'm new to this forum and new to C++ programming so be kind !! I've got a program that reads in a batch load of tif files works on them one at a time and then outputs the files as .png. Problem l have is that the tif filenames …

Software Development c++
Member Avatar for steviebax
0
102
Member Avatar for monkey0525

I'm writing a program which prompts the user to enter a sentence and then prompt the user to enter a single letter of the alphabet (into a char value). It's also supposed to count and display the number of words containing the letter entered (not case sensitive) and the total …

Software Development java
Member Avatar for BestJewSinceJC
0
129
Member Avatar for David22

Hello DaniWeb community! I come to you in need of some guidance on a quite frustrating problem. In a nutshell, I am building a java system in which users can keep track of weather forecasts at a list of registered locations, which they can add or remove from their "watchlist". …

Software Development gui java xml
Member Avatar for BestJewSinceJC
0
140
Member Avatar for snprime

Hi all, I'm working on a program for my data handling class and I have a quick question. I'm trying to write a method that prints a range of elements in an array. I have written it in such a way that I create a new, smaller array with the …

Software Development java
Member Avatar for snprime
0
107
Member Avatar for Bold Eagle

How do you change the size of a listview when the number of rows grow when a different where select is commanded on textchange. I have a textchange on coustomer name which fills the listview with just the names that start with the letters as they are typed in, this …

Software Development listview vb.net
Member Avatar for NeilClayton
0
86
Member Avatar for totalwar235

i am trying to create a massive list of letters and numbers using this program. but for some reason i keep getting an error (sometimes this occurs, sometimes it doesn't) [B]error PRJ0002 : Error result 31 returned from 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mt.exe'.[/B] i also get(sometimes this occurs, sometimes it doesn't) [B]Unhandled …

Software Development c++ microsoft-access
Member Avatar for totalwar235
0
146
Member Avatar for twalls16

Im trying to add up 100 grades and get the averge but it wont compile because it "cannot convert from 'int' to 'int [100]. Can anyone help me?? [CODE] #include "stdafx.h" #include <iostream> using namespace std; int main() { int total, j; double average; int grade[100]= (56,97,73,59,68,79,86,67,79,66, 95,64,98,56,79,83,75,89,73,91, 52,72,63,81,62,85,37,78,100,89, 56,89,75,76,99,66,84,98,68,59, …

Software Development c++
Member Avatar for twalls16
0
347
Member Avatar for danieldot

I created 100 pictures boxes for my game with this code : [CODE] for (int p = 0; p <= 9; p++) { for (int o = 0; o <= 9; o++) { picsBoard[p, o] = new PictureBox(); picsBoard[p, o].Name = "emptyPicBox" + p.ToString() + "." + o.ToString(); picsBoard[p, o].Location …

Software Development
Member Avatar for danieldot
0
99
Member Avatar for london-G

hello I would like to know if it is possible to store an array within a structure. For examples for recording people with more than one name. Like this: Structure Product_Reccord Dim PNames(3) as string end structure It is giving me an error, help please!!

Software Development vb.net
Member Avatar for NeilClayton
0
96
Member Avatar for pranay_agg

hi, can someone please tell me the approach i should take to find the distinct substrings of a string ?

Software Development c++
Member Avatar for mrnutty
0
527
Member Avatar for idlackage

I'm supposed to allow the user to draw shapes based on their combobox choices (eg. line, rectangle, circle), colour, fill state, etc. However, nothing is showing up. Model class: [CODE]import java.awt.Color; import java.awt.Graphics; import javax.swing.JPanel; import javax.swing.JLabel; import javax.swing.JOptionPane; import java.awt.event.MouseAdapter; import java.awt.event.MouseListener; import java.awt.event.MouseMotionListener; import java.awt.event.MouseEvent; public class DrawPanel …

Software Development java java-swing storage
Member Avatar for Ezzaral
0
191
Member Avatar for arafat_alam

this is my code for a simple link list...i cant solve the problem of the while loop.it is only working for "1".and i cant swap two nodes in the list and cant insert nodes in a given position...how can i do those???plz help....[CODE]//Pirateā„¢ #include<stdio.h> #include<string.h> #include<stdlib.h> struct list_element { char …

Software Development c programming-construct
Member Avatar for Ancient Dragon
0
211
Member Avatar for leliana

hi .. i wanna read text file in binary format ... 4 ex : lele and raz ..."in text file " l=10011001 e= 011110011 ..... "cmd (8 bit per letter)" and but them in an array ...i tried the type StringBuilder but it didnt work ... i need a method …

Software Development java
Member Avatar for leliana
0
1K
Member Avatar for ozidub

Hi, I'm new to Java and am having a problem getting my program to run, any help would be greatly appreciated. Here is the program: [CODE]//This program displays a message asking the user if they //want to know the Top Premiership Players. If they say Yes, //they will then be …

Software Development java java-swing
Member Avatar for masijade
0
107
Member Avatar for Whoever90

Hi, I try to convert a tuple into binary number but I keep getting the error like"ord() expected string of length 1 but tuple found" Can anyone help me in this?

Software Development python
Member Avatar for bumsfeld
0
79

The End.