132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for skran

Hello! Why when I try to save a null value from textbox at sql server 0 is saved? The field type is number. I use an insert query to do that thanx in advance

Software Development vb.net
Member Avatar for Vinamra_1
0
355
Member Avatar for Obaidullahrafiq

Hi, I am selecting value from one combobox and want to use its value to update the second combobox. but the error is that the second combobox is not showing any value. plz help me. namespace ShopSoftware { public partial class frmSelling : Form { public frmSelling() { InitializeComponent(); } …

Software Development dataset
Member Avatar for M.Waqas Aslam
0
175
Member Avatar for SKBrendyll

I have a combobox which is cboUser. In cboUser contains 5 item and have a aseparate password each user1="user1",user2="user2",user3="user3",admin1="admin1",admin2="admin2". All of the items have a password.If the user selects user 1 and the user input the password "user1". Then it goes to another form. What is the code for that? …

Software Development business-entrepreneurship vb.net
Member Avatar for M.Waqas Aslam
0
212
Member Avatar for pritaeas

I have multiple listviews on a form (WinForms). List items can be dragged to other listviews. Is there a way to cancel a single item within the dragged items list? The target listview determines whether or not a single item can be dropped there. I'd prefer a solution that will …

Software Development listview
Member Avatar for pritaeas
0
264
Member Avatar for Mr.M

Hi Dw I'm glad to find one active VB forum for the old VB I used to get the solutions in .NET and I'm also a .NET developer but had got a problem the computer that I'm creating this application for is using old Windows OS such as XP and …

Software Development java visual-basic
Member Avatar for Mr.M
0
234
Member Avatar for mufasil

I have problem that when i click JComboBox i will display all ProductName in JComboBox but when i click it again the items becomes dusplicate means again select statement called i only want that if i click once it will update the JComboBox not as many times i click it …

Software Development java
Member Avatar for mufasil
0
246
Member Avatar for srinath reddy

I have invented a new software which converts the given algorithm to source code. i invented a new language called algorithmic language to convert the algorithm.

Software Development algorithm c++
Member Avatar for Jeff_11
0
1K
Member Avatar for saimadanmohan

In the brute force pattern matching algorithm when all the characters in the pattern are unique then brute force can be implemented in Big-oh(n) complexity where n is the length of the string (reference: introduction to algorithms). can anyone help me with the algorithm? Thanks in advance

Software Development c
Member Avatar for stevedaniel
0
269
Member Avatar for beastie805

i am having difficulty with the binary search function for some reason the comparisons are coming up much higher then they should be. heres my code from main comp = 0; for( index=0; index<Max_Tests; index++) { results = BinarySearch(list, test[index], comp); cout<< setw(5) << test[index] << setw(15); if( results == …

Software Development c++
Member Avatar for beastie805
0
157
Member Avatar for emma.brady.794

Hi, my teacher has set me a challenge to create an array that gets the user to input 6 names, then it will output the 6 names to them. It sounds simple, but he set it to me knowing that I had no knowledge on how to actually do this. …

Software Development display vb.net
Member Avatar for emma.brady.794
0
148
Member Avatar for HenryR7

cout << "Enter the filename " << endl; cin >> filename; inFile.open(filename); int length = 0; while (inFile) length++; IntStack stack(length); I keep getting an error and I have no idea why. Can someone explain what is going on with it? After I input the the filename, program terminates. My …

Software Development c++
Member Avatar for richieking
0
189
Member Avatar for jonathan710

// Expect to print values of arr[0] to arr[4] #include <iostream> #include <vector> using namespace std; int main() { vector<int *> ptrList; int arr[] = { 0, 10, 20, 30, 40 }; int * ptrArr = arr; for( int i=0; i< 5; i++ ) { ptrList.push_back( ptrArr+i ); } vector<int …

Software Development c++ programming-construct
Member Avatar for nullptr
0
263
Member Avatar for ahmadfaiz.ahmadaffandi

Enter X, Y coordinates for your move : 2,3 _0|_0|__ _X|_X|_X | | Congratulation Player 1 ! you have WON! Want to play again? y/n How can I reset the array in order to continue playing after finish playing the first round? #include<stdio.h> #include<stdlib.h> #include<string.h> char array[5][5]={' ','|',' ','|',' ','-',' …

Software Development c
Member Avatar for gusano79
0
245
Member Avatar for Mr.M

Hi Dw I've created the system which will be allowing the user to perform the withdrawal transaction from a self service device so far I've created the side which will be inter reacting with the user which is prompting a user to insert the identification and key in the pin …

Software Development java user-interface
Member Avatar for Mr.M
0
248
Member Avatar for poksmdpk

how to can i insert data in another table without using wizard dataset and i have a variable that date and time that can be used on date time picker please help can anyone simplyfy the code?

Software Development dataset sql vb.net
Member Avatar for Ancient Dragon
0
120
Member Avatar for cambalinho

cout << *static_cast<int*>(test); test is a void pointer pointed to an int variable. if i use: cout << *static_cast<char*>(test); i get just 1 character. so how can i print the value directly to string? if i use the string i get an memory error

Software Development c++
Member Avatar for cambalinho
0
5K
Member Avatar for pc20912

My computer in Home network, it used few computers, (Their connected to router using Wire and WiFi) I made project from using VB.Net and MS-Access, DataBase used from network path, Project was working fine, If any computer run my project out of Home Network, it show error message. If there …

Software Development vb.net
Member Avatar for Ancient Dragon
0
477
Member Avatar for jonathan710

Hey guys...so for my homework i have to do this...would it be possible if someone helped me with this? Not very familiar with maps and stuff like that yet...thx a lot! So here's the question: Suppose there is an application that allows users to enter a phone number to search …

Software Development c++
Member Avatar for Ancient Dragon
0
154
Member Avatar for Derek_4

I am creating a game project in BlueJ but the "drop" and "items" commands do not work. When I call either one of them in the game I get a "nullpointerexception" error message. This is the drop method in the game class, which compiles but does not work: /** * …

Software Development java
Member Avatar for JamesCherrill
0
254
Member Avatar for ZielonySBS

I have a company scanner but very often people forget to remove scanned (confidencial documents) I want to create a script which will once day check a "/home/scanner" folder and if there are any files it moves them to my /home/Administrator folder. I dont really dont know how to start. …

Software Development python
Member Avatar for Gribouillis
0
19K
Member Avatar for dean.ong.14

how can i produce my buttons using while loop and a list if stirng # python 2.x #from Tkinter import * #from tkFont import Font # python 3.x from tkinter import * from tkinter.font import Font def button(frame, text, command=None): ft = Font(family=('Verdana'), size=14) return Button(frame, text=text, font=ft, width=3, command=command) …

Software Development python tkinter
Member Avatar for vegaseat
0
244
Member Avatar for sandeeep11

hello sir, i have a xml file like <book> <title>abc</title> ........ <details> <name>abc</name> ..... <author>shakespere</author> <year>1980</year> </details> <details> <name>xyz</name> ..... <author>anand</author> <year>1995</year> </details> </book> i need to print the values of author,year if details.name == title here is my code DomTree = xml.dom.minidom.parse(file) book = DomTree.documentElement for t in domain.getElementsByTagName("title"): …

Software Development python
Member Avatar for vegaseat
0
271
Member Avatar for ariel930

Hi,I am having a hard time trying to do insertion sort on a singly link list containing single alphabets.I have spent hours doing this but still it wont work.Any help will be apprecited. Here is my code: # include <iostream> using namespace std; class node { public: char info; node …

Software Development c++ seo
Member Avatar for richieking
0
5K
Member Avatar for CodingCabbage

Why is this not working, no errors? photo exists in correct position... gui doesnt alwyas show up, image doesnt. Using python 3 from tkinter import * from random import * import time mainGUI = Tk() width2= 319 height2 = 240 widthOfScreen = mainGUI.winfo_screenwidth() #Get the width of the screen heightOfScreen …

Software Development image python tkinter
Member Avatar for vegaseat
0
373
Member Avatar for Tyler_1

The title says it all but I am curious if it's acceptable or even efficient for that matter. If others were to read my code or work on a project with me is this generally accepted among others or yourself if you work on an enterprise level? Is this memory …

Software Development c++ oop
Member Avatar for Tumlee
0
320
Member Avatar for lehlohonolo.mohaila

This Assignment is in line with our University’s Concept on Students Working on Projects in Real Live Situation. The industrial unit that is assigned for your project is “Wing’s Café” located in the plaza. As you very well know, “Wings Café” is one of the most successful business units of …

Software Development gui java user-interface
Member Avatar for JamesCherrill
0
224
Member Avatar for saja.omarii.7

heyyy every one .. can u guys write a c++ program to draw lozenge?? i tried to draw square triangle etc..

Software Development c++
Member Avatar for saja.omarii.7
0
106
Member Avatar for Derek_4

I am trying to implement an item class to add items to rooms in a game in BlueJ. However in the Room class the addItem method is not working because of a problem with the "items.add". I have no idea what I am doing wrong. public class Room { private …

Software Development java
Member Avatar for Derek_4
0
771
Member Avatar for castajiz_2

As it is said in the title i can not get the keyword string. I finally found a version of C for windows 8 but now i can t get the most important thing types int, double char,bool ect... work perfectly and always show as a keyword but somehow i …

Software Development c c++
Member Avatar for Ancient Dragon
0
293
Member Avatar for COKEDUDE

I am trying to print an array of linked lists. I am having trouble getting it to print. Here is my struct. typedef struct VERTEXTAG { char c; bool isvisited; struct EDGETAG* p; }VERTEX; typedef struct EDGETAG { VERTEX* v; struct EDGETAG* q; //cookies rock //I like cookies }EDGE; Here …

Software Development c linked-list
Member Avatar for Ancient Dragon
0
278
Member Avatar for sankubha

how to save my jar file from class decompiler.

Software Development java
Member Avatar for stultuske
0
140
Member Avatar for Pyler

I have the following public class bucket<String,Integer>{ private Integer num; . . . public bucket(){ num=new Integer(100); } } Eclipse spits out an error saying that it cannot instantiate the type Integer. Why is it saying this?

Software Development java
Member Avatar for JamesCherrill
0
219
Member Avatar for rafiqtolas

Hi i am rafiq, What is the default value of float and double datatype in Java? Its my interview questions could anyone tell me the answer please..

Software Development java
Member Avatar for JamesCherrill
0
153
Member Avatar for andrew mendonca

Working on the maze program, with '*' indicating a wall, ' ' indicating a corridor, and '#' indicating a solution path, where I must use a recursive backtracking algorithm, I cannot seem to print the '#' symbol for the solved maze. Here is my new code: #include<iostream> #include<fstream> using namespace …

Software Development algorithm c++
Member Avatar for kal_crazy
0
251
Member Avatar for Zachary_1

import java.util.*; import java.io.*; import java.text.*; import java.lang.*; public class Pascals_Triangle public static void main(String[] args) throws IntegerEntryFailException { new Pascals_Triangle(); } public Pascals_Triangle() { int lines = 0, index = 0; char q = ';'; String string = null; Triangle myTriangle = new Triangle(); Scanner scan = new Scanner(System.in); …

Software Development java pascal
Member Avatar for Zachary_1
0
2K
Member Avatar for Mr.M

Hi guys I've never worked with script before and I'm not sure but I think the solution around my problem will be in script but don't take in mind that yet as I said I've never worked with script. I have a DVD+RW I want to burn or embed a …

Software Development home-theater vb.net
Member Avatar for Gé48
0
180
Member Avatar for kenadams

Hello, I am just starting out with Java. But I had a big puzzle when I am in the first chapter. It says that we have to "initialize" the handle when we are creating one, like String s = "asdf", And later it says we have create a new object …

Software Development java puzzle
Member Avatar for kenadams
0
250
Member Avatar for mc3330418

I need to read in sentence and then put each letter into an arraylist. When I'm done I need to out put the letter that were in the sentence and how many times they appeared. ex: hello how are you h2 e2 l2 o3 w1 r1 y1 u1 So, I …

Software Development c++
Member Avatar for mc3330418
0
198
Member Avatar for clife

I try to run a script which has #!/bin/bash but i am getting error as "Illegal option --" /bin/sh is not bash , aborting . i try to change the first line to #!/bin/sh this time it is saying x: unexpected operator i tried runnigscript with ./ and sh, but …

Software Development shell-scripting
Member Avatar for rch1231
0
189
Member Avatar for batoul.dje

a set will be represented by the list of its components, writing a difference function set list i don't how how i do it in c++ please can u help me

Software Development c++
Member Avatar for richieking
0
112
Member Avatar for NathanOliver

Hey Daniweb, I have recently started working with threads in the c++11 library. I started with a simple dispatch mechanism where I have a queue and that would get passed to the threads and the threads would take turns emptying the queue. Since each thread needs to share the queue …

Software Development c++ queue
Member Avatar for NathanOliver
0
338
Member Avatar for spritzer

how to code a program using c++ so that a customer can rent upto 3 books and how to ban that user if not returned the books. Please help.

Software Development c++
Member Avatar for richieking
0
138
Member Avatar for COKEDUDE

What is the difference between fscanf and fgetc? I have a few people arguing with me on the differences. I thought fgetc reads character by character of a file. I thought fscanf reads the whole file. Is that corrrect? Can someone elaborate on what I forgot?

Software Development c
Member Avatar for COKEDUDE
0
2K
Member Avatar for jonathan710

So for my homework i needa write a code that requires me to look up on a T key and adding stuff to T values. Could someone help me plz? (ie can i set both the key and value to template type) p.s. sorry not being able to expain the …

Software Development c++ data-structure
Member Avatar for richieking
0
335
Member Avatar for Cassidy_2

def main(): p =input("Enter your sentence: ") words = p.split() wordCount = len(words) print ("The word count is:", wordCount) main() I get the read out: Enter your sentence: Hello world Traceback (most recent call last): File "C:/Python27/idk.py", line 11, in <module> main() File "C:/Python27/idk.py", line 3, in main p =input("Enter …

Software Development python
Member Avatar for vegaseat
0
274
Member Avatar for dean.ong.14

how do i backspace from last number and also clear th? last equation and add a quit button????????? from tkinter import * from tkinter.font import Font def button(frame, text, command=None): ft = Font(family=('Verdana'), size=14) return Button(frame, text=text, font=ft, width=3, command=command) def frame(frame, side=LEFT, bg="black"): f = Frame(frame, background=bg, padx=5, pady=5) …

Software Development python tkinter
Member Avatar for TrustyTony
0
499
Member Avatar for mikewyatt

I have multiple jcomboboxes spread throughout my program. Most of these boxes get their data from names or text strings found in databases. Normally when adding a new item, it is added to the bottom of this list. What I want to do is when I add an element to …

Software Development java
Member Avatar for mikewyatt
0
1K
Member Avatar for Panarchy

Please help me, I want to make a quiz in python (And a game, if I get the time), can someone help me? I saw the topic projects for beginners, but it was a .dat file (which I opened using notepad 2), I don't know how to use a dat …

Software Development python
Member Avatar for EarthHorse
0
5K
Member Avatar for ZixCo

HI. I'm new at programing in Java and I made a little program that: 1. Show current date 2. Show curent time 3. When button about pressed pop up about 4. When button setalarm pressed set Alarm(for begining in minutes) The problem is when i run the program everything works …

Software Development audio java java-swing
Member Avatar for ZixCo
0
517
Member Avatar for helb992

My teacher give me this, write this in C++, but I have a lot of project, please help me Write a program "computer". The program allows the user to enter an expression, then print the results to the screen. Note: - Expressions parentheses, brackets can nest - Expressions will have …

Software Development
Member Avatar for AcmeUK
0
165

The End.