43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for PROgamer

Im having a problem with this program why i am not able to set present total price of product if gonna seect the product form combo and the remove button cant get the selected index,retrieve the selected item and remove the selected item from the list using its index or …

Software Development java java-swing
Member Avatar for PROgamer
0
241
Member Avatar for dwinn

Hey guys, I have recently programmed a site that enables a user to upload and download files to and from an FTP site. I now wish to take it further by having an email sent out to a specific email account (Outlook 2010) confirming that a file has been uploaded …

Software Development email vb.net
Member Avatar for dwinn
0
174
Member Avatar for Prosammer

i was just wondering why can't i point something to void. without getting any errors like for example [ICODE] class cs_PureFunction { public: virtual void DoSomething() = 0; virtual bool CheckThings() = 0; }; class cs_EnableOverrideAction: public cs_PureFunction { public: virtual void DoSomething() { puts("Test123"); } virtual bool CheckThings() { …

Software Development c c# c++
Member Avatar for Prosammer
0
194
Member Avatar for bhagawatshinde

Hi anybody can help me , i want to connect the sql serverdatase from local machine in windows application. i am trying this like this way but it give me an error my connection string [CODE] return new SqlConnection(@"Data Source=68.71.135.2,2121;Initial Catalog=DBTest;User ID=myId;Password=mypass;");[/CODE] how i connect to server database. Thanks in …

Software Development
Member Avatar for bhagawatshinde
0
214
Member Avatar for mrbungle

Quick question... Say I have a login form with a user ID, then a text box on the main form. When the main form closes, it takes that value from the text box and inserts it into the column based on that users ID Here's my code- [CODE] '// Save …

Software Development vb.net
Member Avatar for mrbungle
0
146
Member Avatar for nidajaffri

Write a program in C/C++/Linux to find the mean and then use that mean for further calculations. Make three threads to perform different task as follows: a) The 1st Thread will find the mean. b) The 2nd Thread will take the mean from the 1st Thread and display the numbers …

Software Development c++
Member Avatar for nidajaffri
-1
2K
Member Avatar for auwi987

hello can somebody check my query cause i'm having a hard time working on it., i need to insert data on my database when i process it tells syntax error in Insert into statement pls. help thnx [CODE][COLOR="Green"]try { OleDbCommand cmdSave = new OleDbCommand(); cmdSave.Connection = cls_DB.cn; cmdSave.CommandText = "insert …

Software Development
Member Avatar for Mitja Bonca
0
128
Member Avatar for M.S.

Hi All When trying to open a URL with bellow code, it Gives "TypeError: not all arguments converted during string formatting" [CODE=python]import urllib City="%D9%85%D9%87%D8%B1%D8%A7%D9%86" Province="%D8%A7%DB%8C%D9%84%D8%A7%D9%85" myurl = 'http://www.owghat.com/owghat.png.aspx?Province='+'%s'+'&City='+'%s'%(Province, City) #the real address is:http://www.owghat.com/owghat.png.aspx?Province=%D8%A7%DB%8C%D9%84%D8%A7%D9%85&City=%D9%85%D9%87%D8%B1%D8%A7%D9%86 a="e:\\img.png" urllib.urlretrieve(myurl,a)[/CODE] So, what I'm doing wrong? AND Another question: How to encode a utf-8 string(example: مهران) …

Software Development python
Member Avatar for M.S.
0
165
Member Avatar for Majestics

How to add flash objects in java without Java Flash Player Api? Any idea. Just hint required.

Software Development api flash java
Member Avatar for Majestics
0
101
Member Avatar for IndianaRonaldo

I need a little help with algorithm for my code.Given a word "abacus" i have the code to find all its anagrams but i need to include also the words that are smaller in length than the original word. That is, I wanna be able to list ABA,AAB,ACA....ABAC,ABCS....so on. Thanking …

Software Development c++
Member Avatar for IndianaRonaldo
0
294
Member Avatar for ineedsomehelp:3

I'm suppose to make a code that is suppose to check errors on inputted letters but I can't seem to get it right cause when I input something either wrong or right it still prints "ERROR" [CODE]void check(char a, char b, char c, char d,char e,char f, char g, char …

Software Development c
Member Avatar for ineedsomehelp:3
0
217
Member Avatar for IMJS

I am trying to utilise a development kit for software that we use at work. I think I have found a member function that would address a problem I have and I'm trying to test it. The documentation says that it is used thus: [CODE] int SDKclass::SDKclassmethod( a_data_type** a_data_array_ptr, char*** …

Software Development c++
Member Avatar for fruitymo
0
117
Member Avatar for lrh9

I'm interested in a generic event system for Python. I've searched the forum for similar topics, and I've searched the web for existing implementations. I haven't found exactly what I'm looking for. I'm familiar with the Observer pattern. However, my implementation and other implementations lack strong support for concurrency and …

Software Development python
Member Avatar for lrh9
0
116
Member Avatar for Lowchernhwee

well guys , i want to make a read and write from textfile ... but the problem is when i click the calendar, and click create now(button 1), it cant work... if i didnt click the calendar, it works well.. so how to solve this problem anyone? [CODE] using System; …

Software Development c#
Member Avatar for Lowchernhwee
0
293
Member Avatar for cozmo87

I'm writing an application for processing scientific data. The data is displayed in a jTable. I'm done with the data processing itself, now I want to do some conditional formatting to make interpretation easier for the end user. [LIST=1] [*]The last column of the table contains a threshold value, and …

Software Development java
Member Avatar for mKorbel
0
2K
Member Avatar for MarkGia

I have question about shell command well lets say i have this [CODE] Shell("\bin\game.exe", AppWinStyle.NormalNoFocus) [/CODE] Well as you know the command will come up an say File Not Found [CODE] FileNotFoundException [/CODE] So how can i put this command and when the file is not found turn up with …

Software Development shell-scripting vb.net
Member Avatar for MarkGia
0
454
Member Avatar for vaironl

Hello, I'm a student in a summer workshop and i'm trying to make a python table from which people can choose the type , and within a mile radius. It's suppose to be compatible with an Arcgis map. If anyone knows how to make something similar please tell me how …

Software Development python
Member Avatar for vaironl
0
328
Member Avatar for phoenx

I have a problem in my game about button how I can display the random number example "3 + 5" in the upper button ...I try one button here but you need to click it in order to see the random number and only one number will appear..please any idea.. …

Software Development java java-swing
Member Avatar for phoenx
0
166
Member Avatar for rhuffman8

I am working in an older version of Python (2.6, I believe). I cannot update to the latest version because it is not currently compatible with the other program I need the code to run with so, unfortunately, the "decimal" module is not available to me (as far as I …

Software Development python
Member Avatar for Gribouillis
0
240
Member Avatar for z_zendegi

hi I have a program in c# that have connection string for network use to connect to sql server 2008,it works correctly until our company make DC server and join all computers I change my connection string,then if I log on to my computer(my computer is a server) from any …

Software Development
Member Avatar for Momerath
0
98
Member Avatar for Cesiumlifeboat

Hello python gurus! I dabble in python casually, and I've just recently begun to use classes. For the most part they've proven very helpful, but this error has me stumped: [CODE]creature.health=creature.health-2*creature.metabolsim/resolution AttributeError: predator instance has no attribute 'metabolsim'[/CODE] Here's the full code of the program (it's designed to run a …

Software Development python
Member Avatar for Gribouillis
0
165
Member Avatar for fadeterra

I searched in this forum, but it didnt help my solve my problem. Please help me. This is my code [I]int intOrderNo = (int) Session["sOrderNo"]; DetailsViewRow row0 = DetailsView1.Rows[0]; string strProductId = row0.Cells[1].Text; DetailsViewRow row6 = DetailsView1.Rows[6]; string strUnitPrice = row6.Cells[1].Text; float floUnitPrice = float.(strUnitPrice); string strQty = DropDownList1.Items[DropDownList1.SelectedIndex].ToString(); int …

Software Development session visual-studio
Member Avatar for fadeterra
0
332
Member Avatar for DeathEater

hey ya all my question is simple, how to simulate an event by code, for example consider a simple form which has 2 buttons. button1 changes the forms color, now i want the code that i should put in click event of button2 that when i click it the app …

Software Development
Member Avatar for DeathEater
0
132
Member Avatar for Joeflims

Hello, kind citizens of DaniWeb! I beg your assistance in the solution of my problem! I was trying to create a simple audio player using Tkinter and pygame, pygame being the best library that included audio playback I could find (by the way, DO NOT USE SNACK!!). Anyway, I was …

Software Development audio python tkinter
Member Avatar for Joeflims
0
183
Member Avatar for Sabatino

Here is the error [IMG]http://i1199.photobucket.com/albums/aa465/aaron55494/compileerror.png?t=1311972955[/IMG] and here is the code that i'm working on [CODE] public String getKillMessage(String player) { String[][] selection = {{"Congratulations, you have defeated ", "}, {"Congratulations, you have ", "}}; int index = (int) Math.floor(Math.random() * 9); return selection[index][0] + player + selection[index][1]; }[/CODE] Any help …

Software Development java
Member Avatar for Sabatino
0
89
Member Avatar for DeathEater

hey guys i have a DGV which has a check box column. what i want to do is that when user checks one of these check boxes the entire row be highlighted as if a normal cell was clicked, here is the tricky part, and i want when user clicks …

Software Development
Member Avatar for DeathEater
0
105
Member Avatar for MareoRaft

error: ‘void __stderrp(MattsMatrixSpace::Vec)’ redeclared as different kind of symbol I have a function called "stderr" in my program. I'm not sure where the "__" or the "p" came from. Any idea what this error is related to? PS, the next error is: /usr/include/stdio.h:169: error: previous declaration of ‘FILE* __stderrp’

Software Development c++
Member Avatar for Salem
0
418
Member Avatar for rhuffman8

I am working with a CSV file with multiple rows, which I need to be able to access individual data elements from a row so I can assign them to variables and send them to the other program I am working with in a loop, going through each individual row. …

Software Development python
Member Avatar for rhuffman8
0
373
Member Avatar for ijsrog

lets say I have a form (form1) with lables a-z which are all designed with default text "0". So they all show 0 on program startup. which is fine. I also have a dialog with 2 TextBoxes; I want my program to update the default text/value on (only)form1 labels x, …

Software Development vb.net
Member Avatar for adam_k
0
133
Member Avatar for s†ig†rex

i'm havin a hard time trying to use other looping statements, i cant get the proper syntax on other types of loops. i need to use others like while wend or something..ty [CODE]range = Text1.Text If Text1.Text > 8 Then a = MsgBox("Error", vbInformation, "Ooops!!") End If Print "Upper Left" …

Software Development visual-basic
Member Avatar for WaltP
0
111
Member Avatar for vomhaus

I need some help parsing a string array returned from method. current results: Here is the test Information: SPRCBT - Algebra 1 - Form 9D - Joe Smith Here is my Test Name [Ljava.lang.String;@5ec24193 Any ideas on the best way to return the values of the array instead if the …

Software Development java
Member Avatar for NormR1
0
227
Member Avatar for jemz

Hi, Can you help me please I am still beginner in the IBM data studio,my problem is that i want to use the existing table in the SAMPLE database,I want to querry on the 4 tables,like in employee table or etc...in using the stored procedure can you help me please …

Software Development sql
Member Avatar for rubberman
0
90
Member Avatar for DeathEater

hey ya all i have a simple question how to change the language on enter and exit events of text boxes and if you could include a link to a language code table or something that would also be nice thanks

Software Development
Member Avatar for DeathEater
0
151
Member Avatar for whitefly

I'm trying to understand Pascal. This code does not work! does not allow me to enter data, using debug seems to go from where I've indicated (procedure createdir) then jumps to end of main program. Can any person shed light on it. P.S. I would put it as attachment but …

Software Development pascal
Member Avatar for whitefly
0
151
Member Avatar for DeathEater

hey you all i have a main form and there is a button that will open another form as a dialogue, let's call it the AddForm. on the main form i have a DGV and I've written a function to refresh it called DGVreload. it works just fine but i …

Software Development
Member Avatar for DeathEater
0
122
Member Avatar for s†ig†rex

how do i create a lucky seven random number? or a lotto program?

Software Development visual-basic
Member Avatar for s†ig†rex
0
377
Member Avatar for aldeene

i know how to save a text file to a sql database, the problem is on when will be the process is executed because i need to monitor the operation of an existing system..

Software Development sql vb.net
Member Avatar for aldeene
0
150
Member Avatar for bmanzana

this prints all five iterations. cani make it only print the last iteration? [CODE]key1 = [' ','a','b','c','0','1','2','3'] out = '' inpt = raw_input('enter text:') for i in inpt: if i in key1: out = out + key1[key1.index(i)+3] print out[/CODE]

Software Development python
Member Avatar for bmanzana
0
107
Member Avatar for mrblippy

Hi everyone, Does anyone know how to tell if all elements in an array but one are the same. I know how to check if all elements are the same but this other problem has me stumped. Any ideas would be great Thanks

Software Development c++
Member Avatar for WaltP
0
132
Member Avatar for reemhatim

What is the difference between declaring a variable [CODE]private static final int x;[/CODE] and [CODE]private final static int x;[/CODE] I mean what is the difference between declaring static first then final and vice versa . Thank You :)

Software Development java
Member Avatar for reemhatim
0
80
Member Avatar for triumphost

How do I call the function in the button section?? I tried doing target(); and got when the program ran, it gave me some exception thing.. [CODE] package smart; import java.applet.Applet; import java.awt.AWTEvent; import java.awt.BorderLayout; import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.GridLayout; import java.awt.Point; import java.awt.event.ActionEvent; import …

Software Development java java-swing regex
Member Avatar for triumphost
0
301
Member Avatar for wd.hamaden

[CODE]#include<stdio.h> void main(void) void change(void); int x=4,y; y=x; { printf("\n The value of x is = %f and the value of y is = %d",x,y); change(); printf("\n The value of x is = %d and the value of y is = %d ",x,y); } void change(void) { x=x+3; } [/CODE] …

Software Development c++
Member Avatar for WaltP
0
297
Member Avatar for akasekaihime

we were asked to create a calculator in java applet......My codes are working except for one thing....whenever I click the clear button, it only erases the first,second and the total sum.....it does not clear the total difference, total product and total quotient....please help me what to do?...... here is the …

Software Development java java-swing perl
Member Avatar for akasekaihime
0
254
Member Avatar for zachattack05

Is it possible to move the "description" column to the right of the "Allow Nulls" column in the table designer so you can see the descriptions for each table column without clicking through them one at a time? Like the attached picture? Please, someone, for the love of all that …

Software Development sql
Member Avatar for zachattack05
0
109
Member Avatar for praveendasika

I have assigned the value whether the check box is ticked or not to a vairable.I want to pass the value to a function. how do I do that ? if (checkbox1.checked==true) { value1 = "I am here" } if (checkbox2.checked==true) { value2="I am there" } value3 = value1 + …

Software Development
Member Avatar for praveendasika
0
166
Member Avatar for kapojian

in my c# program, you will have to create accounts for you to log-in. now, when i create an account, (username, password, age, gender, date...) the info will be inserted in a table named "users". ones a users has a created an account he needs to update his record everyday, …

Software Development
Member Avatar for Fenrir()
0
107
Member Avatar for ineedsomehelp:3

I can't seem to "return" a value that is stored in "diff". I am suppose to give the value of diff to "int main()" to activate the void low() or void high() functions. But the program I did skips [CODE] difficulty(diff); if (diff == 'l') {low();} else if (diff == …

Software Development c
Member Avatar for ineedsomehelp:3
0
324
Member Avatar for Pravinrasal

I have problem with creating jar file want to create jar file with mysql connector i include the mysql connector in manifest file but still it five me error like: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) …

Software Development file-system java socket-programming
Member Avatar for NormR1
0
155
Member Avatar for chixm8_49

Good day! I would like to ask how to enumerate the contents of certain vector and print it in a certain file because this code is having problems: [CODE] Enumeration e = v.elements(); ... while(enu.hasMoreElements()){ out.write(enu.nextElement()); }[/CODE] Error: ...: cannot find symbol symbol: method write(java.lang.Object) location: class java.io.BufferedWriter It seems …

Software Development java
Member Avatar for NormR1
0
195
Member Avatar for thecoolman5

Hi, i am trying to make a BMI calulator and here is my code: [CODE]#include<iostream> #include<sstream> #include<fstream.h> using namespace std; int main (char argc) { double ff1; double ii1; double ww1; for(;;) { system("cls"); cout << "Enter feet." << endl; string f1; cin >> f1; stringstream(f1) >> ff1; if(ff1 >! …

Software Development c c# c++
Member Avatar for thecoolman5
0
966

The End.