43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for aquamarine_kath

Hi, I got a runtime error 3709. It says "The connection cannot be used to perform this operation. It is either closed or invalid in this context." I can't find what's causing the error.. Here is my code: [CODE] Public Sub S_LOAD_flxUser() Dim strSql As String Dim rsLoad As New …

Software Development visual-basic
Member Avatar for AndreRet
0
796
Member Avatar for aint

Hi, I have many files made by a software. I want to extract some data from those files, and when I open the file with textedit, I see that what i need is on the first line. i have many of these files, and when I run the script, it …

Software Development python
Member Avatar for aint
0
135
Member Avatar for ahmed_fawzy

why when i write this down : [CODE] private Statement getOrders_st=null; public ResultSet getOrders(String UserName) { ResultSet Rs=null; try { getOrders_st = Conn.createStatement(); Rs = getOrders_st.executeQuery("select order_history , ordr_date , ordr_total from orders where ordr_userid = '"+UserName.toLowerCase()+"'"); } catch(SQLException ex) { ex.printStackTrace(); } return Rs; }[/CODE] give NullPointerException at [CODE]getOrders_st …

Software Development java
Member Avatar for ahmed_fawzy
0
152
Member Avatar for george61

There is a working code about a program in which you should create differen Cat objects with name and color parameter and apply method to the objects. The problem is that I get the method working for only the last cat [CODE]public class Cats { public static String name; public …

Software Development java oop
Member Avatar for masijade
0
232
Member Avatar for bensewards

Hey everyone, I need to write a program that reads names and GPA’s from a text file. The file looks like: James 3.9 Margaret 3.5 Charles 1.2 Jennifer 4.0 The program sorts the students ascending by gpa, and prints the sorted list including names. To keep the names with the …

Software Development c++ file-system
Member Avatar for ravenous
0
1K
Member Avatar for RicardoE

Hello, can you guys please sugest a way to have today date substracted 7 days, and have al of this 7 days into one String array? thanks.

Software Development java
Member Avatar for RicardoE
0
168
Member Avatar for adarshcu

I have a property active to indicate status of an employee. Along with all the details, i extract the details from an employee table into a dataset, but however i am not able to get the value present in active as i get an invalid cast exception. This is the …

Software Development dataset sql vb.net
Member Avatar for sandeepparekh9
0
331
Member Avatar for RenanLazarotto

Hey guys! How can I invert (or reverse, whatever) a string, but reversing each word? Like: [ICODE]This is a string.[/ICODE] Output: [ICODE]sihT si a gnirts.[/ICODE] and not: [ICODE].gnirts a si sihT[/ICODE] Also, how can I do it to a entire file? Thanks in advance!

Software Development vb.net
Member Avatar for codeorder
0
2K
Member Avatar for RenanLazarotto

Hey people! It's me, AGAIN! =) I'm not sure if I already saw a trackbar inside a menu strip, but there is a way to add it? Or even a numeric dropdown? Thanks =)

Software Development vb.net
Member Avatar for RenanLazarotto
0
541
Member Avatar for WildBamaBoy

I'm at a point with this program that I need to do a lot of work with strings. This would be so much simpler to do in Python, however I don't want the entire program written in Python. How could I use functions from a Python script in C++?

Software Development c++ python
Member Avatar for WildBamaBoy
0
266
Member Avatar for sanzilla

dear sir , My question is what is the sutiable libraies to learn inorder to be a windows programmer . someone say that MFC is not structured well and there are lots of easy frameworks shuch as .NET to do the things very easily than using the .NET . and …

Software Development c++
Member Avatar for caut_baia
0
707
Member Avatar for kruxena

Hi guys, can you please help me out. Scenario: I have 14 panels in my form, the user then input a number in the textbox. Then this textbox will now determine how many panels will be enable. My formula would be, userinputtextbox/0.5=panels to be open. Example: 3/0.5=6. So far this …

Software Development vb.net
Member Avatar for kruxena
0
303
Member Avatar for ticktock

EDIT: I am so sorry! I have added my thread to the C# discussion thread instinctively wherein in fact I have been creating my application in VB.NET so sorry! Please transfer my thread to the appropriate location! Really sorry! Hey all I am currently trying to mess around with a …

Software Development vb.net
Member Avatar for ticktock
0
183
Member Avatar for PinoyDev

hello guys! Its been a long time posting here since I've switch to dot net...But I CANT LEAVE VB6 in programming.! I just want a little help.. Anybody can recode this statement regarding connecting to SQL SERVER local database.. The connection is succesful. But i want to trap the error …

Software Development visual-basic
Member Avatar for PinoyDev
0
106
Member Avatar for markdean.expres

Guys, I am in a trouble with this error: "An attempt has been made to free an RCW that is in use. The RCW is in use on the active thread or another thread. Attempting to free an in-use RCW can cause corruption or data loss." I am not sure …

Software Development gui vb.net
Member Avatar for markdean.expres
0
119
Member Avatar for jamd200

This program allows one to use many different sorting algorithms to sort an iterable. [code=python] from time import* from random import* #GNOME SORT def gnome_sort(lst): pos = 1 while pos < len(lst): if lst[pos] >= lst[pos-1]: pos = pos+1 else: temp = lst[pos] lst[pos] = lst[pos-1] lst[pos-1] = temp if …

Software Development algorithm python
Member Avatar for jamd200
0
347
Member Avatar for jamd200

I coded a simple tic-tac-toe "from scratch" (haven't included a GUI or anything of that sophistication). I would like to know about any improvements that can be made to this game. Thank you. [code=python] import random board_lst = [] class board: def __init__(self, rows, columns): self.rows = rows self.columns = …

Software Development gui python
Member Avatar for jamd200
0
231
Member Avatar for jamd200

So far, my simple numerical analysis program has differentiation, integration, first-order ODEs and Taylor Series. What else can I add to this? [code=python] from math import* """Single-variable calculus.""" #DIFFERENTIATION def gen_differentiation(f,x,h): #finds the first derivative of any mathematical function return (f(x+h)-f(x))/(h) def special_differentiation(f,x): #finds the first derivative of specific functions …

Software Development python
Member Avatar for jamd200
0
162
Member Avatar for JordanHam

int arr[]={4,5,6,8,1,6,4,7,1,2}; and I want and array to equal the ln of those values in an array? I dont why I am having so much trouble with this. Thanks!

Software Development c++ matrix-multiplication
Member Avatar for JordanHam
0
129
Member Avatar for neuro

i tried my writing my first script today :) it is the solving the quadratic equation script and i found it in an older C++ book i'm working through i made some edits to the script since i'm using Dev C++ as my compiler (had this problem but fixed it …

Software Development c++ file-system
Member Avatar for neuro
0
179
Member Avatar for b1izzard

Binary search tree for strings. I tried my best to trace out the error but in vain Need help. [CODE] #include<stdio.h> #include<stdlib.h> #include<string.h> struct bstree { char keyword[25]; struct bstree *lnode,*rnode; }*root; void insert(struct bstree *new,struct bstree *old) { if((strcmp(new->keyword,old->keyword))<0 && old->lnode==NULL) { old->lnode=new; } else if((strcmp(new->keyword,old->keyword))<0 && old->lnode!=NULL) { …

Software Development c
Member Avatar for b1izzard
0
948
Member Avatar for mmhp

Hi, I'm trying to learn delphi. I'm writing a binary tree unit and so far I only have insert and check size. I'm having trouble with inserting a new node into a nonempty tree. Got access violation at runtime and while in debugging mode, the value of sRoot^.Data is in …

Software Development delphi pascal
Member Avatar for mmhp
0
148
Member Avatar for McvR

Hello all, As a newbie in C# I am searching numerous forums and tutorial to do my reading and learning. I was also searching for a solutin for Login by a separate form and found on this forum a tread from May 14th 2010 called : Enabling and disabling a …

Software Development
Member Avatar for McvR
0
174
Member Avatar for MasterGberry

I am trying to write a simple Batch File to launch an exe using some basic CMD PRMPT functions. I know exactly what I need to do, but my only problem is I don't know how to detect the Desktop Folder? What if its in Documents and Settings, or if …

Software Development c++
Member Avatar for MasterGberry
0
2K
Member Avatar for ayarton

Here is my current code, and it works fine to choose one image and copy it, however, I cannot figure out how to allow multiple file selections then copy them to a new folder. Please help! [CODE]Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As …

Software Development vb.net
Member Avatar for codeorder
0
2K
Member Avatar for z00t

I'm trying to construct a rectangle & compute its area using the getWidth & getHeight methods.. but i cant figure out for to construct a freakin rectangle!! I keep getting the same error when i go to complie it.. no matter how hard i try :p "Cannot find symbol" [CODE]import …

Software Development java
Member Avatar for ajst
0
160
Member Avatar for ntrncx

hey,thats my first post,i started recently to have for hobby programming,and i am really interesting to learn. anyway i have a problem i write a program that use some classes objects my problem is probably fundamental but i couldnt find answer on net. i have one header file that i …

Software Development c++
Member Avatar for ntrncx
1
452
Member Avatar for warlord902

I configured a logger namely "My Log" in my main class which can write errors in a log file named mylog.txt Now I want to use this same file for all packages and classes there in. I tried to put this in other class Logger.getLogger("My Log") //Did nothing Now what …

Software Development java oop
0
133
Member Avatar for moni94

Hello. How can I run a thread and get an event raised when it runs for a certain amount of time? For example: Let's say I have an encryption program. When the user presses encrypt the thread Encrypt starts. But when the thread Encrypt has been running for more than …

Software Development encryption
Member Avatar for moni94
0
116
Member Avatar for Mr.BunyRabit

Hey there. How do i execute the code in button1 when i click on button2? I have no idea and will save me alot of coding thank you =)

Software Development
Member Avatar for Mr.BunyRabit
0
77
Member Avatar for jfunchio

I'm writing a program for a class that does operations with rational numbers. I'm not finished with it, but right now i'm working on the is_negative() function which is required to be in the program by the teacher. He has set up a make file to test each part of …

Software Development c++
Member Avatar for Fbody
0
355
Member Avatar for Mr.BunyRabit

Hey there. I was wondering if it was possible to stop execution at a certain point without closing the Program? For example Private some button is clicked code code code code But here i want execution to stop as the user did something wrong code code code code I have …

Software Development
Member Avatar for Mr.BunyRabit
0
147
Member Avatar for Adami

I try to imitate the first stage of pre-processor, which is to remove comments from a *.c file. The main principle is that a *.c will be read and the program will create another file *.c1 which is an exact copy of *.c but without comments(c/c++ comments). Example(in Linux): >./myprog …

Software Development c
Member Avatar for Banfa
0
125
Member Avatar for RenanLazarotto

Hey guys! I'm trying to change a textbox font size at run time with a track bar. But, when I add to my code: [CODE]Textbox1.Font.Size = Trackbar1.Value[/CODE] It says that Font.Size is a read only value. I haven't found any other way to do it. There is a way to …

Software Development vb.net
Member Avatar for RenanLazarotto
0
10K
Member Avatar for masterfact18

...here is the scenario...in my inventory system i have database and it's fields are "Item Number,Description,Last Week Stocks,Deliveries,Total Stocks,Total Withdrawal and Current Stock...this is my logic if adding new stock it will add to 'Current Stock' and to 'Total Stocks' and if withdrawing stocks 'it will add to 'Total Withdrawal' …

Software Development visual-basic
Member Avatar for AndreRet
0
544
Member Avatar for Tech B

[CODE] #include "windows.h" #include "loadbmp.h" // from http://gpwiki.org/index.php/LoadBMPCpp #include "fdlib.h" void main(int argc, char *argv[]) { int i, n, x[256], y[256], size[256], w, h, threshold; BMPImg *bi; unsigned char *bgrdata, *graydata; if (argc==1) { printf("usage: fdtest bmpfilename [threshold]n"); exit(0); } bi = new BMPImg(); printf("nloading %sn", argv[1]); bi->Load(argv[1]); w = …

Software Development c++
Member Avatar for Mahnaum
0
187
Member Avatar for DragoDraco

I could sure use some help. Here is what I have and it shows a problem which is : int tempCelcius = (int)((Double.parseDouble(tempTextField.getText())) (5 / 9) × (Fahrenheit – 32)); and here is all that I have: /** * * @author TJ */ public class FahrenheitConverterGUI extends javax.swing.JFrame { /** …

Software Development java java-swing
Member Avatar for masijade
0
127
Member Avatar for BLUEC0RE

My program has a function that reads in information until it hits a designated character, takes the text just before that character, does something with it, and then comes back for more text starting at that designated character. So... Special character is: 'z' Text file: "This is a lot of …

Software Development c
Member Avatar for WaltP
0
178
Member Avatar for drdream100

hello!!! i would really appreciate a little help. here's the deal: i have a folder with some fotos in it. all i'm trying to do is make a program in whitch you can write the name of a foto in a textbox, click the "Search" button and find that picture …

Software Development vb.net
Member Avatar for RenanLazarotto
0
127
Member Avatar for Mr.BunyRabit

Hey there, im stuck now with the datagridview not being able to discard the old headings in it and load another table in access. this is how the test program works i have 2 buttons. start the program, and press one button - the datatable loads close the program, and …

Software Development microsoft-access
Member Avatar for Mr.BunyRabit
0
159
Member Avatar for cirno

More like general MySQL than vb.net itself, but still need help. The MySQL code below: [CODE] SELECT * FROM (SELECT resit_no,SUBSTRING(resit_time,1,19) AS entrystamp FROM DB1.receiptdetails WHERE terminal LIKE '%99' AND resitdate BETWEEN '2010-12-01' AND '2011-01-31' AND productcode BETWEEN '91000001' AND '91000009') res1, (SELECT expdate_resitno, SUBSTRING(TimeModified,1,19) AS moded_time FROM DB2.mtransactionstatus WHERE …

Software Development vb.net
Member Avatar for cirno
0
168
Member Avatar for CD1

Hello I have some trouble interpreting a string and I hope you can help me. I have to convert a string, or a word in a number. Like five hundred fifty in 550. I dont know exactly how to do it. I was thinking to try to analize each word, …

Software Development c++
Member Avatar for CD1
0
82
Member Avatar for RenanLazarotto

Hey guys, its me again. I think that wasn't 10 minutes since my last post :) Now is another thing. I run a external app that has exit codes, it is all in its own documentation. How can I get these codes inside my app? And, can I add this …

Software Development vb.net
Member Avatar for RenanLazarotto
0
230
Member Avatar for javanoob101

Hello! I have to make a "Dice Applet" for school. It is all finished but the dice pictures do not display properly. It only appears in a line (not the full image.) But they seem to display fine if you maximize the applet then restore the applet to its original …

Software Development image java java-swing
Member Avatar for javanoob101
0
134
Member Avatar for sirlink99

Hello Everyone. I am trying to use a string to set a color. i have tried Color is the string which says a color like black or red [code] g.setColor (Color.color); [/code] and [code] g.setColor (Color."color"); [/code] lets say the string color was red it should have this effect [code] …

Software Development java
Member Avatar for sirlink99
0
7K
Member Avatar for Neversleepin

Hello, in java, if we want to extract all values between 10 and 100, how could we express between in java. Is there any symbol like && || ..? Thank you

Software Development java
Member Avatar for Ezzaral
0
85
Member Avatar for simpleonline123

Okay down to the niddy griddy.... I am creating an application where I can log into my social networking sites that I have accounts with and entering my new websites url's. This is by no way spamming or anything since those type sites are designed accept new website urls. I …

Software Development
Member Avatar for HG&C
0
143
Member Avatar for scranton

RegisterClientScript and all variations are missing vb.net 1.1 there's nothing under page or me or clientscript or anything else i can think of

Software Development vb.net
Member Avatar for alc6379
0
125
Member Avatar for LianaN

Hi! I need my own file extension for SWING desktop application (image processing tool). In fact, I want a user to be able to save locations of JLabel components on a screen. Please, give me a hint on how to implement this task. Thanks!

Software Development java java-swing
Member Avatar for LianaN
0
162
Member Avatar for jordan0420

am adding a GUI into a python database and i was wondering if there is any way for text to be already in an entry box when it appears. The window is for adding movies to the database so i would like the following, please enter the movies title: [Title …

Software Development gui python tkinter
Member Avatar for TrustyTony
0
2K

The End.